henesyinit from p9fce6d0435 years agoHistory
16 lines · 215 B · C
RawDownload
#include <u.h>#include <libc.h>#include "authlocal.h" int_asreadn(int fd, char *buf, int len){	int m, n; 	for(n = 0; n < len; n += m){		m = read(fd, buf+n, len-n);		if(m <= 0)			return -1;	}	return n;}