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