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