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