ref: 46dc0c56b3e24cf04c7f699bd8f01ee24d3f63c9 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; }