return ret;
}
+ssize_t lxc_send_nointr(int sockfd, void *buf, size_t len, int flags)
+{
+ ssize_t ret;
+again:
+ ret = send(sockfd, buf, len, flags);
+ if (ret < 0 && errno == EINTR)
+ goto again;
+
+ return ret;
+}
+
ssize_t lxc_read_nointr(int fd, void *buf, size_t count)
{
ssize_t ret;
/* send and receive buffers completely */
extern ssize_t lxc_write_nointr(int fd, const void *buf, size_t count);
+extern ssize_t lxc_send_nointr(int sockfd, void *buf, size_t len, int flags);
extern ssize_t lxc_read_nointr(int fd, void *buf, size_t count);
extern ssize_t lxc_read_nointr_expect(int fd, void *buf, size_t count,
const void *expected_buf);