Fix SYSCALL_CANCEL for empty argumetns
authorAdhemerval Zanella <adhemerval.zanella@linaro.com>
Sat, 17 Oct 2015 19:56:27 +0000 (16:56 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 17 Dec 2015 20:16:59 +0000 (18:16 -0200)
commitfc48bfbc796e3825b6048df9146ce91c0baec0c8
tree56c6a81e4e88e8bd6764fdaa4cc6f3d13d28928e
parent8ead7a9b94a085e6fba69b8b22e2ba0e2677f0d5
Fix SYSCALL_CANCEL for empty argumetns

This patch fixes the SYSCALL_CANCEL macro for usage with zero argument
number (for instance SYSCALL_CANCEL (pause)) using a similar approach
used for SOCKETCALL_CANCEL.

GLIBC build still does not hit this issue still since SYSCALL_CANCEL
is not currently being used for zero arguments calls.

Tested on i386, x86_64, powerpc64le, aarch64.

* sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
syscalls.
(__SYSCALL0): New macro.
(__SYSCALL1): Likewise.
(__SYSCALL2): Likewise.
(__SYSCALL3): Likewise.
(__SYSCALL4): Likewise.
(__SYSCALL5): Likewise.
(__SYSCALL6): Likewise.
(__SYSCALL7): Likewise.
(__SYSCALL_CONCAT_X): Likewise.
(__SYSCALL_CONCAT): Likewise.
(__SYSCALL_DIST): Likewise.
(__SYSCALL_CALL): Likewise.
ChangeLog
sysdeps/unix/sysdep.h