mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +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:
@ -26,17 +26,15 @@
|
||||
static void
|
||||
collect_default_sched (struct pthread *pd)
|
||||
{
|
||||
INTERNAL_SYSCALL_DECL (scerr);
|
||||
|
||||
if ((pd->flags & ATTR_FLAG_POLICY_SET) == 0)
|
||||
{
|
||||
pd->schedpolicy = INTERNAL_SYSCALL (sched_getscheduler, scerr, 1, 0);
|
||||
pd->schedpolicy = INTERNAL_SYSCALL_CALL (sched_getscheduler, 0);
|
||||
pd->flags |= ATTR_FLAG_POLICY_SET;
|
||||
}
|
||||
|
||||
if ((pd->flags & ATTR_FLAG_SCHED_SET) == 0)
|
||||
{
|
||||
INTERNAL_SYSCALL (sched_getparam, scerr, 2, 0, &pd->schedparam);
|
||||
INTERNAL_SYSCALL_CALL (sched_getparam, 0, &pd->schedparam);
|
||||
pd->flags |= ATTR_FLAG_SCHED_SET;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user