diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-05-27 00:11:37 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-05-27 00:11:37 -0400 |
commit | 9b880a6b4112b0b3c0bd07949f7836daeea4e712 (patch) | |
tree | 2c72938189961c2c48b93632435236e11d923ed7 | |
parent | 92899314462192f763ca8cd1582882bd55ce5470 (diff) | |
download | musl-9b880a6b4112b0b3c0bd07949f7836daeea4e712.tar.gz musl-9b880a6b4112b0b3c0bd07949f7836daeea4e712.tar.xz musl-9b880a6b4112b0b3c0bd07949f7836daeea4e712.zip |
fix sys_open macro for archs without the plain open syscall
-rw-r--r-- | src/internal/syscall.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/internal/syscall.h b/src/internal/syscall.h index b6b39aec..08a85784 100644 --- a/src/internal/syscall.h +++ b/src/internal/syscall.h @@ -192,10 +192,10 @@ long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...), #define __sys_open_cp2(x,pn,fl) __syscall_cp2(SYS_open, pn, (fl)|O_LARGEFILE) #define __sys_open_cp3(x,pn,fl,mo) __syscall_cp3(SYS_open, pn, (fl)|O_LARGEFILE, mo) #else -#define __sys_open2(x,pn,fl) __syscall2(SYS_openat, AT_FDCWD, pn, (fl)|O_LARGEFILE) -#define __sys_open3(x,pn,fl,mo) __syscall3(SYS_openat, AT_FDCWD, pn, (fl)|O_LARGEFILE, mo) -#define __sys_open_cp2(x,pn,fl) __syscall_cp2(SYS_openat, AT_FDCWD, pn, (fl)|O_LARGEFILE) -#define __sys_open_cp3(x,pn,fl,mo) __syscall_cp3(SYS_openat, AT_FDCWD, pn, (fl)|O_LARGEFILE, mo) +#define __sys_open2(x,pn,fl) __syscall3(SYS_openat, AT_FDCWD, pn, (fl)|O_LARGEFILE) +#define __sys_open3(x,pn,fl,mo) __syscall4(SYS_openat, AT_FDCWD, pn, (fl)|O_LARGEFILE, mo) +#define __sys_open_cp2(x,pn,fl) __syscall_cp3(SYS_openat, AT_FDCWD, pn, (fl)|O_LARGEFILE) +#define __sys_open_cp3(x,pn,fl,mo) __syscall_cp4(SYS_openat, AT_FDCWD, pn, (fl)|O_LARGEFILE, mo) #endif #define __sys_open(...) __SYSCALL_DISP(__sys_open,,__VA_ARGS__) |