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