fd_recv.c (276B)
1 /* ISC license. */ 2 3 #include <sys/socket.h> 4 #include <errno.h> 5 #include <skalibs/allreadwrite.h> 6 7 ssize_t fd_recv (int fd, char *buf, size_t len, unsigned int flags) 8 { 9 ssize_t r ; 10 do r = recv(fd, buf, len, flags) ; 11 while ((r == -1) && (errno == EINTR)) ; 12 return r ; 13 }