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