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