public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* EOVERFLOW for ftell, ftello, fgetpos?
@ 2002-10-23 16:58 Roland McGrath
  0 siblings, 0 replies; only message in thread
From: Roland McGrath @ 2002-10-23 16:58 UTC (permalink / raw)
  To: GNU libc hackers

Aren't ftell, ftello, and fgetpos supposed to diagnose EOVERFLOW?
(A program could fopen, fread pieces totalling >4GB, and then call ftell.)

Right now these functions all just truncate the result of _IO_seekoff to 32
bits (and treat 4294967295 as an error).  Unless someone tells me why I'm
wrong about thinking this is a bug, I will fix them to detect overflow.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-23 21:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-23 16:58 EOVERFLOW for ftell, ftello, fgetpos? Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).