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