ref: 6dd2c638b6fa9f891836cd2fceb3e4f996f6e199 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; }