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