summaryrefslogtreecommitdiff
path: root/src/OS/os.c-GNU
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-12-18 16:07:38 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2019-12-21 18:27:36 +0000
commit847a015ae17b3fa66154088009803636f95b2c6f (patch)
tree844abef597c033245bd34b0136bc41f10618896a /src/OS/os.c-GNU
parent59da908cef70461b20f1f717689b490c248962f9 (diff)
Gnu/Hurd: revert pipe-i/o EINTR handling changes
Diffstat (limited to 'src/OS/os.c-GNU')
-rw-r--r--src/OS/os.c-GNU38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/OS/os.c-GNU b/src/OS/os.c-GNU
index a75166322..e5d6ff66c 100644
--- a/src/OS/os.c-GNU
+++ b/src/OS/os.c-GNU
@@ -52,42 +52,4 @@ return -1;
}
#endif /* OS_LOAD_AVERAGE */
-
-ssize_t
-os_pipe_read(int fd, void * buf, size_t count)
-{
-int rc;
-for (int retries = 10; retries > 0; retries--)
- {
- if ((rc = read(fd, buf, count)) >= 0) break;
- if (rc != -1 || errno != EINTR) break;
- }
-return rc;
-}
-
-
-ssize_t
-os_pipe_write(int fd, void * buf, size_t count)
-{
-int rc;
-for (int retries = 10; retries > 0; retries--)
- {
- if ((rc = write(fd, buf, count)) >= 0) break;
- if (rc != -1 || errno != EINTR) break;
- }
-return rc;
-}
-
-ssize_t
-os_pipe_writev(int fd, const struct iovec * iov, int iovcnt)
-{
-int rc;
-for (int retries = 10; retries > 0; retries--)
- {
- if ((rc = writev(fd, iov, iovcnt)) >= 0) break;
- if (rc != -1 || errno != EINTR) break;
- }
-return rc;
-}
-
/* End of os.c-GNU */