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