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