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