summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/linux/sendfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/linux/sendfile.c')
-rw-r--r--libc-top-half/musl/src/linux/sendfile.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/linux/sendfile.c b/libc-top-half/musl/src/linux/sendfile.c
new file mode 100644
index 0000000..9afe6dd
--- /dev/null
+++ b/libc-top-half/musl/src/linux/sendfile.c
@@ -0,0 +1,9 @@
+#include <sys/sendfile.h>
+#include "syscall.h"
+
+ssize_t sendfile(int out_fd, int in_fd, off_t *ofs, size_t count)
+{
+ return syscall(SYS_sendfile, out_fd, in_fd, ofs, count);
+}
+
+weak_alias(sendfile, sendfile64);