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