[Bug c/37771] warning: implicit declaration of function 'fileno'

2008-10-08 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2008-10-08 12:56 --- Note, anyway, that fileno is not present in CONFORMING TO as a C89 function. Which indeed it is not. In any case, the ultimate reference is the C Standard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37

[Bug c/37771] warning: implicit declaration of function 'fileno'

2008-10-08 Thread mathieu dot malaterre at gmail dot com
--- Comment #2 from mathieu dot malaterre at gmail dot com 2008-10-08 12:52 --- Hum... ok nevermind. My man page must be outdated. ref: FERROR(3) Linux Programmer's Manual FERROR(3) NAME clearerr, feof, ferror, fileno - check and reset stream s

[Bug c/37771] warning: implicit declaration of function 'fileno'

2008-10-08 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2008-10-08 12:48 --- The warning is correct: by default, fileno, not being a standard C function, is simply not declared in the header of your linux machine. A quick look to the man page reveals that the function is declared when,