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