From: Martin Str|mberg 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 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 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