henesyinit from p9fce6d0435 years agoHistory
18 lines · 260 B · C
RawDownload
#include <u.h>#include <libc.h>#include <auth.h>#include "authlocal.h" int_asrdfile(char *file, char *buf, int len){	int n, fd; 	memset(buf, 0, len);	fd = open(file, OREAD);	if(fd < 0)		return -1;	n = read(fd, buf, len-1);	close(fd);	return n;}