delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/12/13/03:35:38

From: Martin Stromberg <eplmst AT lu DOT erisoft DOT se>
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
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.

But llseek will do the job as well and better.


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019