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