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