henesyinit from p9fce6d0435 years agoHistory
20 lines · 262 B · C
RawDownload
#include <u.h>#include <libc.h>#include <auth.h>#include "authsrv.h" /* *  read exactly len bytes */intreadn(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;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t