ftp.delorie.com/archives/browse.cgi | search |
Message-Id: | <5.0.2.1.0.20001212202947.025a4c70@pop5.banet.net> |
X-Sender: | usbanet DOT farley3 AT pop5 DOT banet DOT net |
X-Mailer: | QUALCOMM Windows Eudora Version 5.0.2 |
Date: | Tue, 12 Dec 2000 20:32:54 -0500 |
To: | djgpp-workers AT delorie DOT com |
From: | "Peter J. Farley III" <pjfarley AT banet DOT net> |
Subject: | Re: Locking fcntl changes #2 |
In-Reply-To: | <200012120811.JAA14917@lws256.lu.erisoft.se> |
References: | <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20001212000231 DOT 02394850 AT pop5 DOT banet DOT net> |
Mime-Version: | 1.0 |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
At 09:11 AM 12/12/00 +0100, you wrote: <Snipped> >> + cur_pos = lseek(fd, 0, SEEK_CUR); >> + if (cur_pos < 0) >> + return -1; /* Assumes lseek has set errno */ > >Why are you using lseek() here and not llseek? Because this is the 31-bit section, not the FAT32 section. I use llseek in the FAT32 section. <Snipped> >> + cur_pos = llseek(fd, 0L, SEEK_CUR); >> + if (cur_pos < 0) >> + return -1; /* Assumes lseek has set errno */ > ^^^^^ >Don't you mean llseek()? (Several occurences.) Yes, I do. Failed to check all comments match the code, sorry about that. --------------------------------------------------------- Peter J. Farley III (pjfarley AT dorsai DOT org OR pjfarley AT banet DOT net)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |