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