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