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