shithub: riscv

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