mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
linux: Remove INTERNAL_SYSCALL_DECL
With all Linux ABIs using the expected Linux kABI to indicate syscalls errors, the INTERNAL_SYSCALL_DECL is an empty declaration on all ports. This patch removes the 'err' argument on INTERNAL_SYSCALL* macro and remove the INTERNAL_SYSCALL_DECL usage. Checked with a build against all affected ABIs.
This commit is contained in:
@@ -1028,11 +1028,10 @@ setxid_signal_thread (struct xid_command *cmdp, struct pthread *t)
|
||||
|
||||
int val;
|
||||
pid_t pid = __getpid ();
|
||||
INTERNAL_SYSCALL_DECL (err);
|
||||
val = INTERNAL_SYSCALL_CALL (tgkill, err, pid, t->tid, SIGSETXID);
|
||||
val = INTERNAL_SYSCALL_CALL (tgkill, pid, t->tid, SIGSETXID);
|
||||
|
||||
/* If this failed, it must have had not started yet or else exited. */
|
||||
if (!INTERNAL_SYSCALL_ERROR_P (val, err))
|
||||
if (!INTERNAL_SYSCALL_ERROR_P (val))
|
||||
{
|
||||
atomic_increment (&cmdp->cntr);
|
||||
return 1;
|
||||
@@ -1158,13 +1157,12 @@ __nptl_setxid (struct xid_command *cmdp)
|
||||
|
||||
/* This must be last, otherwise the current thread might not have
|
||||
permissions to send SIGSETXID syscall to the other threads. */
|
||||
INTERNAL_SYSCALL_DECL (err);
|
||||
result = INTERNAL_SYSCALL_NCS (cmdp->syscall_no, err, 3,
|
||||
result = INTERNAL_SYSCALL_NCS (cmdp->syscall_no, 3,
|
||||
cmdp->id[0], cmdp->id[1], cmdp->id[2]);
|
||||
int error = 0;
|
||||
if (__glibc_unlikely (INTERNAL_SYSCALL_ERROR_P (result, err)))
|
||||
if (__glibc_unlikely (INTERNAL_SYSCALL_ERROR_P (result)))
|
||||
{
|
||||
error = INTERNAL_SYSCALL_ERRNO (result, err);
|
||||
error = INTERNAL_SYSCALL_ERRNO (result);
|
||||
__set_errno (error);
|
||||
result = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user