X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/fef179d8e2bbb251f8b90aedb29179c6a53529b2..ced0bbf43860a2e4ddc88e3ba20ae731324586c5:/src/OS/os.c-GNU diff --git a/src/OS/os.c-GNU b/src/OS/os.c-GNU index 59ebdf32a..2b2aeed22 100644 --- a/src/OS/os.c-GNU +++ b/src/OS/os.c-GNU @@ -2,6 +2,8 @@ * Exim - an Internet mail transport agent * *************************************************/ +/* Copyright (c) The Exim Maintainers 2020 */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* See the file NOTICE for conditions of use and distribution. */ /* GNU-specific code. This is concatenated onto the generic src/os.c file. @@ -52,42 +54,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 */