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