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