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