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