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