libio fflush() bug
Thorsten Kukuk
kukuk@weber-eb.uni-paderborn.de
Fri Aug 7 10:37:00 GMT 1998
Hello,
I have found a big problem. If you do fseek/fread/fflush, the file pointer
is set to the end of the file. If you don't call fseek, the pointer is set
correct to the next byte after the last read one.
I have attached a test program and a patch against libio/fileops.c. Could
somebody, who knows more about the internal, check, if my patch is correct ?
Thorsten
--
Thorsten Kukuk kukuk@vt.uni-paderborn.de
http://www-vt.uni-paderborn.de/~kukuk
Linux is like a Vorlon. It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.
More information about the Libc-hacker
mailing list