diff options
author | midipix <writeonce@midipix.org> | 2018-05-01 21:46:53 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-05-01 21:46:53 -0400 |
commit | 0b7880fa598b71f8c8dd10acda813e645edfe176 (patch) | |
tree | 3ed886ed30081dc975a0c8093de190f7a921fffb | |
parent | 5380056069790fa8b7ce120c8d5747accf970f58 (diff) | |
download | mmglue-0b7880fa598b71f8c8dd10acda813e645edfe176.tar.bz2 mmglue-0b7880fa598b71f8c8dd10acda813e645edfe176.tar.xz |
syscall_arch.h: properly support the mode arg in open(2) and openat(2).
-rw-r--r-- | arch/nt32/syscall_arch.h | 8 | ||||
-rw-r--r-- | arch/nt64/syscall_arch.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/arch/nt32/syscall_arch.h b/arch/nt32/syscall_arch.h index 9a5d4af..ca7ad18 100644 --- a/arch/nt32/syscall_arch.h +++ b/arch/nt32/syscall_arch.h @@ -26,14 +26,14 @@ static __inline long __syscall1(long n, long a1) static __inline long __syscall2(long n, long a1, long a2) { - sysfn_from_fn(__syscall2_fn); - return sysfn ? sysfn(a1, a2) : __syscall_alert(n); + sysfn_from_fn(__syscall3_fn); + return sysfn ? sysfn(a1, a2, 0) : __syscall_alert(n); } static __inline long __syscall3(long n, long a1, long a2, long a3) { - sysfn_from_fn(__syscall3_fn); - return sysfn ? sysfn(a1, a2, a3) : __syscall_alert(n); + sysfn_from_fn(__syscall4_fn); + return sysfn ? sysfn(a1, a2, a3, 0) : __syscall_alert(n); } static __inline long __syscall4(long n, long a1, long a2, long a3, long a4) diff --git a/arch/nt64/syscall_arch.h b/arch/nt64/syscall_arch.h index 9a5d4af..ca7ad18 100644 --- a/arch/nt64/syscall_arch.h +++ b/arch/nt64/syscall_arch.h @@ -26,14 +26,14 @@ static __inline long __syscall1(long n, long a1) static __inline long __syscall2(long n, long a1, long a2) { - sysfn_from_fn(__syscall2_fn); - return sysfn ? sysfn(a1, a2) : __syscall_alert(n); + sysfn_from_fn(__syscall3_fn); + return sysfn ? sysfn(a1, a2, 0) : __syscall_alert(n); } static __inline long __syscall3(long n, long a1, long a2, long a3) { - sysfn_from_fn(__syscall3_fn); - return sysfn ? sysfn(a1, a2, a3) : __syscall_alert(n); + sysfn_from_fn(__syscall4_fn); + return sysfn ? sysfn(a1, a2, a3, 0) : __syscall_alert(n); } static __inline long __syscall4(long n, long a1, long a2, long a3, long a4) |