blob: 1d37bd554925446637fc6fcf1650d32f2c2195d6 (
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>
ssize_t fd_send (int fd, char const *buf, size_t len, unsigned int flags)
{
register ssize_t r ;
do r = send(fd, buf, len, (int)flags) ;
while ((r == -1) && (errno == EINTR)) ;
return r ;
}
|