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