Sign in
gnu
/
gcc
/
refs/tags/misc/start
/
.
/
libio
/
stdio
/
fileno.c
blob: c0bc55ce9a1b0f7c892e1b7e8030fe76ea34a78f [
file
] [
log
] [
blame
]
#include
"libioP.h"
#include
"stdio.h"
int
fileno
(
fp
)
_IO_FILE
*
fp
;
{
CHECK_FILE
(
fp
,
EOF
);
if
(!(
fp
->
_flags
&
_IO_IS_FILEBUF
))
return
EOF
;
return
_IO_fileno
(
fp
);
}