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