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