summaryrefslogtreecommitdiff
path: root/source3/lib/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r--source3/lib/system.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index d9a4bbd83b..dfd206027e 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -81,7 +81,6 @@ ssize_t sys_read(int fd, void *buf, size_t count)
ssize_t ret;
do {
- errno = 0;
ret = read(fd, buf, count);
} while (ret == -1 && errno == EINTR);
return ret;
@@ -96,7 +95,6 @@ ssize_t sys_write(int fd, const void *buf, size_t count)
ssize_t ret;
do {
- errno = 0;
ret = write(fd, buf, count);
} while (ret == -1 && errno == EINTR);
return ret;
@@ -111,7 +109,6 @@ ssize_t sys_send(int s, const void *msg, size_t len, int flags)
ssize_t ret;
do {
- errno = 0;
ret = send(s, msg, len, flags);
} while (ret == -1 && errno == EINTR);
return ret;
@@ -126,7 +123,6 @@ ssize_t sys_sendto(int s, const void *msg, size_t len, int flags, const struct
ssize_t ret;
do {
- errno = 0;
ret = sendto(s, msg, len, flags, to, tolen);
} while (ret == -1 && errno == EINTR);
return ret;
@@ -141,7 +137,6 @@ ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *f
ssize_t ret;
do {
- errno = 0;
ret = recvfrom(s, buf, len, flags, from, fromlen);
} while (ret == -1 && errno == EINTR);
return ret;
@@ -156,7 +151,6 @@ int sys_fcntl_ptr(int fd, int cmd, void *arg)
int ret;
do {
- errno = 0;
ret = fcntl(fd, cmd, arg);
} while (ret == -1 && errno == EINTR);
return ret;
@@ -171,7 +165,6 @@ int sys_fcntl_long(int fd, int cmd, long arg)
int ret;
do {
- errno = 0;
ret = fcntl(fd, cmd, arg);
} while (ret == -1 && errno == EINTR);
return ret;