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