blob: 22a296b822674fa2e94c9161c3f7b8068cc0795e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* ISC license. */
#include <unistd.h>
#include <errno.h>
#include <skalibs/allreadwrite.h>
int fd_read (int fd, char *buf, unsigned int len)
{
register int r ;
do r = read(fd, buf, len) ;
while ((r == -1) && (errno == EINTR)) ;
return r ;
}
|