www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/02/02/20:32:07

Message-Id: <5.0.2.1.0.20010202202533.03ad6ec0@pop5.banet.net>
X-Sender: usbanet DOT farley3 AT pop5 DOT banet DOT net
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Fri, 02 Feb 2001 20:32:14 -0500
To: djgpp-workers AT delorie DOT com
From: "Peter J. Farley III" <pjfarley AT banet DOT net>
Subject: Re: lfilelength doc change
Cc: "Mark E." <snowball3 AT bigfoot DOT com>
In-Reply-To: <3A7ACD7F.17659.AE1F6A@localhost>
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 03:08 PM 2/2/01 -0500, Mark E. wrote:
 >Hi guys,
 >After reading through the single Unix online docs and the LFS docs,
 >negative offsets
 >aren't considered valid. Therefore, I'd like to change 2^64 back to
 >2^63 and be done with it.

OK by me, but then make it 2^63-1 instead of 2^64-2.  2^63-1 is the 
largest *positive* integer that will fit into a "long long", if I'm not 
forgetting my binary arithmetic.  The "-2" in "2^64-2" was to exclude 
the equivalent of a signed return value of "-1" (which is, of course, 
unsigned 2^64-1).

---------------------------------------------------------
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