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