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