blob: 592dc8e5852e4b9f0c28050268671bf7fbe1a592 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* ISC license. */
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#include <skalibs/allreadwrite.h>
int fd_recv (int fd, char *buf, unsigned int len, unsigned int flags)
{
register int r ;
do r = recv(fd, buf, len, (int)flags) ;
while ((r == -1) && (errno == EINTR)) ;
return r ;
}
|