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