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