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