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