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