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