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