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