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