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