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