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