X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fx86_64%2Fsyscall.h;h=3b6f70e67676bd6e84e9cd21ea5c8d467e5a9579;hb=cda892ddbea3e669ad622ed4aaa766d066ff0d57;hp=274fcd72c37d8d48c7935c8bf896d1d8c3ad6b2a;hpb=1e12632591ab98a6ea3af8680716c28282552981;p=musl diff --git a/arch/x86_64/syscall.h b/arch/x86_64/syscall.h index 274fcd72..3b6f70e6 100644 --- a/arch/x86_64/syscall.h +++ b/arch/x86_64/syscall.h @@ -4,17 +4,7 @@ #define SYSCALL_LL(x) x, 0 #define SYSCALL_SIGSET_SIZE 8 -#if defined(SYSCALL_STANDALONE) -#include -static inline long __syscall_ret(unsigned long r) -{ - if (r >= (unsigned long)-1 - 4096) { - errno = -(long)r; - return -1; - } - return (long)r; -} -#elif defined(SYSCALL_NORETURN) +#if defined(SYSCALL_NORETURN) static inline long __syscall_ret(unsigned long r) { for(;;); @@ -403,9 +393,11 @@ static inline long syscall6(long n, long a1, long a2, long a3, long a4, #undef __NR_fstatat #undef __NR_pread #undef __NR_pwrite +#undef __NR_getdents #define __NR_fstatat __NR_newfstatat #define __NR_pread __NR_pread64 #define __NR_pwrite __NR_pwrite64 +#define __NR_getdents __NR_getdents64 #undef O_LARGEFILE #define O_LARGEFILE 0100000 @@ -427,12 +419,4 @@ static inline long syscall6(long n, long a1, long a2, long a3, long a4, #define __syscall_ioctl(fd,ioc,arg) syscall3(__NR_ioctl, (fd), (ioc), (long)(arg)) #define __syscall_exit(code) syscall1(__NR_exit, code) -#define __NEED_off_t -#include - -static inline off_t __syscall_lseek(int fd, off_t offset, int whence) -{ - return syscall3(__NR_lseek, fd, offset, whence); -} - #endif