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