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