[libc] Add Linux implementation of GNU extension function sendfile.
authorSiva Chandra Reddy <sivachandra@google.com>
Thu, 25 Aug 2022 22:30:30 +0000 (22:30 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Fri, 26 Aug 2022 19:13:40 +0000 (19:13 +0000)
commitb8be3dabde8add876937400bf2ffda9854219c74
treef2800935594bd9a3d4768607f18f311c4e90e03c
parentcb0644b1cc8a2dc80a322e8fe0527a6337f9b78f
[libc] Add Linux implementation of GNU extension function sendfile.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D132721
17 files changed:
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/include/CMakeLists.txt
libc/include/sys/sendfile.h.def [new file with mode: 0644]
libc/spec/gnu_ext.td
libc/spec/posix.td
libc/spec/spec.td
libc/src/sys/CMakeLists.txt
libc/src/sys/sendfile/CMakeLists.txt [new file with mode: 0644]
libc/src/sys/sendfile/linux/CMakeLists.txt [new file with mode: 0644]
libc/src/sys/sendfile/linux/sendfile.cpp [new file with mode: 0644]
libc/src/sys/sendfile/sendfile.h [new file with mode: 0644]
libc/test/src/sys/CMakeLists.txt
libc/test/src/sys/sendfile/CMakeLists.txt [new file with mode: 0644]
libc/test/src/sys/sendfile/sendfile_test.cpp [new file with mode: 0644]
libc/test/src/sys/sendfile/testdata/CMakeLists.txt [new file with mode: 0644]