From: Mihai Pogonaru Date: Mon, 28 Oct 2019 23:40:01 +0000 (+0200) Subject: Import sendfile.h from musl X-Git-Tag: RELEASE-0.4~23 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2866aab7d5a281689c926d7223459fbe55d16489;p=unikraft%2Flibs%2Flwip.git Import sendfile.h from musl Copied as is from the official musl git mirror git://git.musl-libc.org/musl, commit 06d4075a. Signed-off-by: Mihai Pogonaru Reviewed-by: Costin Lupu --- diff --git a/musl-imported/include/sys/sendfile.h b/musl-imported/include/sys/sendfile.h new file mode 100644 index 0000000..e7570d8 --- /dev/null +++ b/musl-imported/include/sys/sendfile.h @@ -0,0 +1,22 @@ +#ifndef _SYS_SENDFILE_H +#define _SYS_SENDFILE_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include + +ssize_t sendfile(int, int, off_t *, size_t); + +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) +#define sendfile64 sendfile +#define off64_t off_t +#endif + +#ifdef __cplusplus +} +#endif + +#endif