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