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