diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-07-09 15:09:29 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-07-09 15:11:46 -0400 |
commit | 763bbf9e9a27426c9be8322dca5ddf2cb4dbc464 (patch) | |
tree | 1bdc0f8f1b01f27fdf9eb5c919d02ce73630d99e /libc/sysdeps/linux/alpha/bits | |
parent | 5ca445cb7b0e1ed549ff1db454c6a0460e2e0833 (diff) |
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 <vapier@gentoo.org>
Diffstat (limited to 'libc/sysdeps/linux/alpha/bits')
-rw-r--r-- | libc/sysdeps/linux/alpha/bits/syscalls.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/alpha/bits/syscalls.h b/libc/sysdeps/linux/alpha/bits/syscalls.h index 6be26971f..ee56788a6 100644 --- a/libc/sysdeps/linux/alpha/bits/syscalls.h +++ b/libc/sysdeps/linux/alpha/bits/syscalls.h @@ -26,10 +26,10 @@ #ifndef __ASSEMBLER__ -#define INLINE_SYSCALL(name, nr, args...) \ +#define INLINE_SYSCALL_NCS(name, nr, args...) \ ({ \ long _sc_ret, _sc_err; \ - inline_syscall##nr(__NR_##name, args); \ + inline_syscall##nr(name, args); \ if (__builtin_expect (_sc_err, 0)) \ { \ __set_errno (_sc_ret); \ @@ -38,10 +38,10 @@ _sc_ret; \ }) -#define INTERNAL_SYSCALL(name, err_out, nr, args...) \ +#define INTERNAL_SYSCALL_NCS(name, err_out, nr, args...) \ ({ \ long _sc_ret, _sc_err; \ - inline_syscall##nr(__NR_##name, args); \ + inline_syscall##nr(name, args); \ err_out = _sc_err; \ _sc_ret; \ }) |