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