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