sendfile_linux.c (400B)
- // utils-std: Collection of commonly available Unix tools
- // SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- // SPDX-License-Identifier: MPL-2.0
- // Because that's what our utilities will use :)
- #define _POSIX_C_SOURCE 200809L
- #include <sys/sendfile.h>
- ssize_t
- test(int in, int out, size_t len)
- {
- off_t *offset = NULL;
- return sendfile(out, in, offset, len);
- }