ref: 5ec91a6413dbf87a9fc0aa3e8038d81d2054bb0a 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; }