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