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