X-Git-Url: https://git.exim.org/users/heiko/exim.git/blobdiff_plain/b8e7b081ba92ee22a76e59280f2a04c8d68ca538..32393657bff79d9925ec865aebb066c9409c4e27:/src/OS/os.c-GNU?ds=sidebyside diff --git a/src/OS/os.c-GNU b/src/OS/os.c-GNU index 2c63ddca8..e5d6ff66c 100644 --- a/src/OS/os.c-GNU +++ b/src/OS/os.c-GNU @@ -52,39 +52,4 @@ return -1; } #endif /* OS_LOAD_AVERAGE */ - -ssize_t -os_pipe_read(int fd, void * buf, size_t count) -{ -for (int rc, 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) -{ -for (int rc, 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 -{ -for (int rc, 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 */