ref: 3d0ebdc439039f1e01ee5fa0f75b1de1a12c12f1 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; }