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