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