diff options
author | Baruch Siach <baruch@tkos.co.il> | 2013-10-18 08:51:56 +0300 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-11-06 22:22:00 +0100 |
commit | 3a3ad3dfc10876b3648369f22df8fc06661ddef0 (patch) | |
tree | 2d63e9f020587fb3f1ae5c59ae5ca04636919096 /libc/sysdeps/linux/common | |
parent | 931e8391565323ed2e589c83b83a7345813a5514 (diff) |
prctl: fix system call wrapper
The argument names used in the prctl wrapper collide with the internal
variable names in syscall wrapper macros on some architecture. This
currently breaks xtensa. grep for '\b_a[0-9]' indicates that metag and
microblaze might also be affected.
Prefix argument names with '_prctl' to avoid collision.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/prctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/prctl.c b/libc/sysdeps/linux/common/prctl.c index 67732bb90..5f29cdb54 100644 --- a/libc/sysdeps/linux/common/prctl.c +++ b/libc/sysdeps/linux/common/prctl.c @@ -12,5 +12,6 @@ #ifdef __NR_prctl int prctl (int, long, long, long, long); -_syscall5(int, prctl, int, option, long, _a2, long, _a3, long, _a4, long, _a5) +_syscall5(int, prctl, int, option, long, _prctl_a2, long, _prctl_a3, + long, _prctl_a4, long, _prctl_a5) #endif |