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
15 #include <sys/sendfile.h>
18 os_sendfile(int out, int in, off_t * off, size_t cnt)
21 return sendfile(in, out, *off, cnt, NULL, &written, 0) < 0
22 ? (ssize_t) -1 : (ssize_t) written;
25 /* End of os.c-Linux */