This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37771] warning: implicit declaration of function 'fileno'
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2008 12:48:37 -0000
- Subject: [Bug c/37771] warning: implicit declaration of function 'fileno'
- References: <bug-37771-9357@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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