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