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