delorie.com/archives/browse.cgi | search |
From: | Martin Str|mberg <ams AT ludd DOT luth DOT se> |
Message-Id: | <200110141001.MAA00556@father.ludd.luth.se> |
Subject: | Re: fgetpos doesn't check ftell's return code |
In-Reply-To: | <3BC94DFF.69F35BA0@phekda.freeserve.co.uk> from Richard Dawe at "Oct 14, 2001 09:34:07 am" |
To: | djgpp-workers AT delorie DOT com |
Date: | Sun, 14 Oct 2001 12:01:00 +0200 (MET DST) |
X-Mailer: | ELM [version 2.4ME+ PL54 (25)] |
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 |
According to Richard Dawe: > One thing that worries me is that ftell could return a negative offset. > But I think we now use negative off_t to mean the 2GB of >2GB files. So > maybe this isn't a problem. You don't need to worry (any more than you've already did). Return values in [-2^31 - -2] should be interpreted as big positive ones. -1 signals error. (That's one reason why FAT32 only supports file sizes up to 2^31-2, I suppose.) > OK to commit? Looks ok. (I have not time to run your program in your other post right now. I'll be back with results perhaps next week-end.) Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |