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