ref: a2ebe5c79a45a0f9ed35bbb690f5070cdfded3ad dir: /sys/src/ape/lib/ap/stdio/fileno.c/
/* * Posix stdio -- fileno */ #include "iolib.h" int fileno(FILE *f){ if(f==NULL) return -1; else return f->fd; }