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