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