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