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