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