Skip to content

Commit

Permalink
2005-03-23 Ulrich Drepper <drepper@redhat.com>
Browse files Browse the repository at this point in the history
	* pthread_create.c (__pthread_create_2_1): Rename syscall error
	variable to scerr.
  • Loading branch information
Roland McGrath committed Jul 18, 2005
1 parent f3a112a commit 993e2e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nptl/pthread_create.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,14 +406,14 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg)
&& __builtin_expect ((iattr->flags & ATTR_FLAG_NOTINHERITSCHED) != 0, 0)
&& (iattr->flags & (ATTR_FLAG_SCHED_SET | ATTR_FLAG_POLICY_SET)) != 0)
{
INTERNAL_SYSCALL_DECL (err);
INTERNAL_SYSCALL_DECL (scerr);

/* Use the scheduling parameters the user provided. */
if (iattr->flags & ATTR_FLAG_POLICY_SET)
pd->schedpolicy = iattr->schedpolicy;
else if ((pd->flags & ATTR_FLAG_POLICY_SET) == 0)
{
pd->schedpolicy = INTERNAL_SYSCALL (sched_getscheduler, err, 1, 0);
pd->schedpolicy = INTERNAL_SYSCALL (sched_getscheduler, scerr, 1, 0);
pd->flags |= ATTR_FLAG_POLICY_SET;
}

Expand All @@ -422,14 +422,14 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg)
sizeof (struct sched_param));
else if ((pd->flags & ATTR_FLAG_SCHED_SET) == 0)
{
INTERNAL_SYSCALL (sched_getparam, err, 2, 0, &pd->schedparam);
INTERNAL_SYSCALL (sched_getparam, scerr, 2, 0, &pd->schedparam);
pd->flags |= ATTR_FLAG_SCHED_SET;
}

/* Check for valid priorities. */
int minprio = INTERNAL_SYSCALL (sched_get_priority_min, err, 1,
int minprio = INTERNAL_SYSCALL (sched_get_priority_min, scerr, 1,
iattr->schedpolicy);
int maxprio = INTERNAL_SYSCALL (sched_get_priority_max, err, 1,
int maxprio = INTERNAL_SYSCALL (sched_get_priority_max, scerr, 1,
iattr->schedpolicy);
if (pd->schedparam.sched_priority < minprio
|| pd->schedparam.sched_priority > maxprio)
Expand Down

0 comments on commit 993e2e3

Please sign in to comment.