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