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