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