X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Flinux%2Fsendfile.c;h=9afe6dd61c203122e671ee0e5743d4b022834485;hb=0296baff0ed5199612768db8bdf653b1930bbc66;hp=bfbc40ae61d4da817ae7784527fa056dabb1e31f;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/linux/sendfile.c b/src/linux/sendfile.c index bfbc40ae..9afe6dd6 100644 --- a/src/linux/sendfile.c +++ b/src/linux/sendfile.c @@ -1,10 +1,9 @@ -#include +#include #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); + return syscall(SYS_sendfile, out_fd, in_fd, ofs, count); } -LFS64(sendfile); +weak_alias(sendfile, sendfile64);