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