blob: d6e4e9b527ab909204d8bba8fa939f758055d8c5 [file] [log] [blame]
#include "stdioint.h"
int fileno(FILE *file)
{
struct _IO_file_pvt *f = stdio_pvt(file);
if (f->isfile)
return (int)(intptr_t)f->cookie;
errno = EBADF;
return -1;
}