git: 9front

ref: 2d16ebcd8973c4f4f4884a8768f7c71ee6fc58f4
dir: /sys/src/libstdio/fileno.c/

View raw version
/*
 * Posix stdio -- fileno
 */
#include "iolib.h"
int fileno(FILE *f){
	if(f==NULL)
		return -1;
	else
		return f->fd;
}