delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/12/02/12:22:53

Message-Id: <5.0.2.1.0.20001202121231.0238eec0@pop5.banet.net>
X-Sender: usbanet DOT farley3 AT pop5 DOT banet DOT net
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Sat, 02 Dec 2000 12:23:16 -0500
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: "Peter J. Farley III" <pjfarley AT banet DOT net>
Subject: Re: Locking fcntl() and flock() patches
Cc: eplmst AT lu DOT erisoft DOT se, djgpp-workers AT delorie DOT com
In-Reply-To: <4331-Sat02Dec2000185420+0200-eliz@is.elta.co.il>
References: <5 DOT 0 DOT 1 DOT 4 DOT 0 DOT 20001202095034 DOT 0259fd60 AT pop5 DOT banet DOT net>
<5 DOT 0 DOT 1 DOT 4 DOT 0 DOT 20001201234954 DOT 0347fec0 AT pop5 DOT banet DOT net>
<200012011435 DOT PAA09759 AT lws256 DOT lu DOT erisoft DOT se>
<200012011435 DOT PAA09759 AT lws256 DOT lu DOT erisoft DOT se>
<5 DOT 0 DOT 1 DOT 4 DOT 0 DOT 20001201234954 DOT 0347fec0 AT pop5 DOT banet DOT net>
<5 DOT 0 DOT 1 DOT 4 DOT 0 DOT 20001202095034 DOT 0259fd60 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 06:54 PM 12/2/00 +0200, Eli Zaretskii wrote:
<Snipped>
 >Via the anon CVS, I suppose.

Sorry to appear dense, but is there a url I need to know, or an ftp 
procedure, or what?  I don't have CVS installed (though I can get it, 
of course), but what do I need to do to get to this anon CVS site and 
get the sources?  Is there a concise doc on this anywhere?  What is the 
address of the site?

<Snipped>
 >I thought we should use F_RDLCK64 regardless, for compatibility with
 >other systems; I doubt if F_RDLCK32 will ever be used by some
 >platform.

OK, I understand now.

 >> You seem to be saying we add 64-bit types, and only use the
 >> low-order 32 bits.
 >Something like that, yes. I thought about some minimal compatibility, 

 >on the source level, to systems which support true 64-bit fileoffsets

So to use these enhanced functions, programmers will use 64-bit values 
in 64-bit structures that parallel the current 32-bit ones, right?  But 
since fcntl uses a vararg plist, they will *not* have to use fcntl64 to 
utilize the new functions, just pass an appropriate command and an 
flock64 structure to the existing fcntl.  And the new flock function 
should also use these new arguments, to support 4GB files?

Please correct me if I have got any of this wrong.

---------------------------------------------------------
Peter J. Farley III (pjfarley AT dorsai DOT org OR
                      pjfarley AT banet DOT net)

- Raw text -


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