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