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