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