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