This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

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



------- 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 <stdio.h> header of your linux machine. A quick look
to the man page reveals that the function is declared when, e.g., _POSIX_SOURCE
is defined.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
            Summary| warning: implicit          |warning: implicit
                   |declaration of function     |declaration of function
                   |'fileno'                    |'fileno'


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37771


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