ref: 2ca3934809cc51fed6a386eb13f67f08fd89fdf2 dir: /sys/src/ape/lib/ap/stdio/fileno.c/
/* * Posix stdio -- fileno */ #include "iolib.h" int fileno(FILE *f){ if(f==NULL) return -1; else return f->fd; }