From: Martin Stromberg Message-Id: <200012130834.JAA15590@lws256.lu.erisoft.se> Subject: Re: Locking fcntl changes #2 To: djgpp-workers AT delorie DOT com Date: Wed, 13 Dec 2000 09:34:16 +0100 (MET) In-Reply-To: <5.0.2.1.0.20001212202947.025a4c70@pop5.banet.net> from "Peter J. Farley III" at Dec 12, 2000 08:32:54 PM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Precedence: bulk > > At 09:11 AM 12/12/00 +0100, you wrote: > > >> + 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. But llseek will do the job as well and better. Right, MartinS