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