ref: 8784d2d0ea623b3a6ea77ffb3559b2a6985ee5a5 dir: /sys/src/libstdio/fileno.c/
/* * Posix stdio -- fileno */ #include "iolib.h" int fileno(FILE *f){ if(f==NULL) return -1; else return f->fd; }