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