ref: faae8eb752fc9df65811ffb1b8cb8f0594cd4b2f 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; }