Bug#626983: ferror(): return no error when the stream is closed

2014-01-24 Thread Michael Kerrisk (man-pages)
Note that the fclose(3) page does already say: RETURN VALUE Upon successful completion 0 is returned. Otherwise, EOF is returned and errno is set to indicate the error. In either case any further access (including another call to fclose()) to the stream

Bug#626983: ferror(): return no error when the stream is closed

2011-05-16 Thread julien godin
Package: libc6 Version: 2.11.2-10 Severity: normal Hi, As described in the subject, the ferror() function return no error even if the stream as been previously closed : Here is a simple program to test this : #include stdio.h void main() { FILE * f; f=fopen(test,r);

Bug#626983: ferror(): return no error when the stream is closed

2011-05-16 Thread Jonathan Nieder
reassign 626983 manpages-dev 3.27-1 # documentation severity 626983 minor retitle 626983 fclose.3: please clarify stream state after fclose quit Hi, julien godin wrote: As described in the subject, the ferror() function return no error even if the stream as been previously closed As the