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