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