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