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