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