From 763bbf9e9a27426c9be8322dca5ddf2cb4dbc464 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 9 Jul 2009 15:09:29 -0400 Subject: syscall: unify part 2: NCS variety Declare common NCS (non-constant syscall) variants and convert the existing ports over to this. Signed-off-by: Mike Frysinger --- libc/sysdeps/linux/ia64/bits/syscalls.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'libc/sysdeps/linux/ia64') diff --git a/libc/sysdeps/linux/ia64/bits/syscalls.h b/libc/sysdeps/linux/ia64/bits/syscalls.h index 81b2cf402..9fda3d07a 100644 --- a/libc/sysdeps/linux/ia64/bits/syscalls.h +++ b/libc/sysdeps/linux/ia64/bits/syscalls.h @@ -61,12 +61,9 @@ : "memory" ASM_CLOBBERS_##nr); \ _retval = _r8; -#define DO_INLINE_SYSCALL(name, nr, args...) \ - DO_INLINE_SYSCALL_NCS (__NR_##name, nr, ##args) - -#define INLINE_SYSCALL(name, nr, args...) \ +#define INLINE_SYSCALL_NCS(name, nr, args...) \ ({ \ - DO_INLINE_SYSCALL_NCS (__NR_##name, nr, args) \ + DO_INLINE_SYSCALL_NCS (name, nr, args) \ if (_r10 == -1) \ { \ __set_errno (_retval); \ @@ -81,8 +78,6 @@ DO_INLINE_SYSCALL_NCS (name, nr, args) \ err = _r10; \ _retval; }) -#define INTERNAL_SYSCALL(name, err, nr, args...) \ - INTERNAL_SYSCALL_NCS (__NR_##name, err, nr, ##args) #define INTERNAL_SYSCALL_ERROR_P(val, err) (err == -1) -- cgit v1.2.3