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