X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Funistd%2Flseek.c;h=0a5ed392bc03c231208933ff3c2376bcfcb5f3b3;hb=bac03cdde1137c16b4c194e137310e2748661dcc;hp=0152866f8df42302f9bfb947796fef3c423dbb6a;hpb=2cdfb7ca26f46f151afbc23d5d94fc68597137f5;p=musl diff --git a/src/unistd/lseek.c b/src/unistd/lseek.c index 0152866f..0a5ed392 100644 --- a/src/unistd/lseek.c +++ b/src/unistd/lseek.c @@ -4,11 +4,11 @@ off_t lseek(int fd, off_t offset, int whence) { -#ifdef __NR__llseek +#ifdef SYS__llseek off_t result; - return syscall5(__NR__llseek, fd, offset>>32, offset, (long)&result, whence) ? -1 : result; + return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence) ? -1 : result; #else - return syscall3(__NR_lseek, fd, offset, whence); + return syscall(SYS_lseek, fd, offset, whence); #endif }