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