1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
5 /* Copyright (c) Jeremy Harris 2017 */
6 /* See the file NOTICE for conditions of use and distribution. */
8 /* FreeBSD-specific code. This is concatenated onto the generic
17 os_sendfile(int out, int in, off_t * off, size_t cnt)
20 return sendfile(in, out, *off, cnt, NULL, &written, 0) < 0
21 ? (ssize_t) -1 : (ssize_t) written;
24 /* End of os.c-Linux */