This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

EOVERFLOW for ftell, ftello, fgetpos?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]