diff options
Diffstat (limited to 'src/linux/sendfile.c')
-rw-r--r-- | src/linux/sendfile.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/linux/sendfile.c b/src/linux/sendfile.c new file mode 100644 index 0000000..bfbc40a --- /dev/null +++ b/src/linux/sendfile.c @@ -0,0 +1,10 @@ +#include <unistd.h> +#include "syscall.h" +#include "libc.h" + +ssize_t sendfile(int out_fd, int in_fd, off_t *ofs, size_t count) +{ + return syscall4(__NR_sendfile, out_fd, in_fd, (long)ofs, count); +} + +LFS64(sendfile); |