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