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