mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Add namespace protected alias.
This commit is contained in:
parent
7ad6b6eb3a
commit
8361400815
@ -25,7 +25,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_attr_destroy (attr)
|
||||
__pthread_attr_destroy (attr)
|
||||
pthread_attr_t *attr;
|
||||
{
|
||||
/* Enqueue the attributes to the list of all known variables. */
|
||||
@ -64,3 +64,4 @@ pthread_attr_destroy (attr)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_attr_destroy, pthread_attr_destroy)
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_attr_getdetachstate (attr, detachstate)
|
||||
__pthread_attr_getdetachstate (attr, detachstate)
|
||||
const pthread_attr_t *attr;
|
||||
int *detachstate;
|
||||
{
|
||||
@ -36,3 +36,4 @@ pthread_attr_getdetachstate (attr, detachstate)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_attr_getdetachstate, pthread_attr_getdetachstate)
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_attr_getinheritsched (attr, inherit)
|
||||
__pthread_attr_getinheritsched (attr, inherit)
|
||||
const pthread_attr_t *attr;
|
||||
int *inherit;
|
||||
{
|
||||
@ -37,3 +37,4 @@ pthread_attr_getinheritsched (attr, inherit)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_attr_getinheritsched, pthread_attr_getinheritsched)
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_attr_getschedparam (attr, param)
|
||||
__pthread_attr_getschedparam (attr, param)
|
||||
const pthread_attr_t *attr;
|
||||
struct sched_param *param;
|
||||
{
|
||||
@ -37,3 +37,4 @@ pthread_attr_getschedparam (attr, param)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_attr_getschedparam, pthread_attr_getschedparam)
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_attr_getschedpolicy (attr, policy)
|
||||
__pthread_attr_getschedpolicy (attr, policy)
|
||||
const pthread_attr_t *attr;
|
||||
int *policy;
|
||||
{
|
||||
@ -36,3 +36,4 @@ pthread_attr_getschedpolicy (attr, policy)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_attr_getschedpolicy, pthread_attr_getschedpolicy)
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_attr_getscope (attr, scope)
|
||||
__pthread_attr_getscope (attr, scope)
|
||||
const pthread_attr_t *attr;
|
||||
int *scope;
|
||||
{
|
||||
@ -37,3 +37,4 @@ pthread_attr_getscope (attr, scope)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_attr_getscope, pthread_attr_getscope)
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_attr_setdetachstate (attr, detachstate)
|
||||
__pthread_attr_setdetachstate (attr, detachstate)
|
||||
pthread_attr_t *attr;
|
||||
int detachstate;
|
||||
{
|
||||
@ -45,3 +45,4 @@ pthread_attr_setdetachstate (attr, detachstate)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_attr_setdetachstate, pthread_attr_setdetachstate)
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_attr_setinheritsched (attr, inherit)
|
||||
__pthread_attr_setinheritsched (attr, inherit)
|
||||
pthread_attr_t *attr;
|
||||
int inherit;
|
||||
{
|
||||
@ -44,3 +44,4 @@ pthread_attr_setinheritsched (attr, inherit)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_attr_setinheritsched, pthread_attr_setinheritsched)
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_attr_setschedparam (attr, param)
|
||||
__pthread_attr_setschedparam (attr, param)
|
||||
pthread_attr_t *attr;
|
||||
const struct sched_param *param;
|
||||
{
|
||||
@ -47,3 +47,4 @@ pthread_attr_setschedparam (attr, param)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_attr_setschedparam, pthread_attr_setschedparam)
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_attr_setschedpolicy (attr, policy)
|
||||
__pthread_attr_setschedpolicy (attr, policy)
|
||||
pthread_attr_t *attr;
|
||||
int policy;
|
||||
{
|
||||
@ -41,3 +41,4 @@ pthread_attr_setschedpolicy (attr, policy)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_attr_setschedpolicy, pthread_attr_setschedpolicy)
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_attr_setscope (attr, scope)
|
||||
__pthread_attr_setscope (attr, scope)
|
||||
pthread_attr_t *attr;
|
||||
int scope;
|
||||
{
|
||||
@ -48,3 +48,4 @@ pthread_attr_setscope (attr, scope)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_attr_setscope, pthread_attr_setscope)
|
||||
|
@ -21,10 +21,11 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_cond_broadcast (cond)
|
||||
__pthread_cond_broadcast (cond)
|
||||
pthread_cond_t *cond;
|
||||
{
|
||||
lll_cond_broadcast (cond);
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_cond_broadcast, pthread_cond_broadcast)
|
||||
|
@ -22,8 +22,9 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_cond_destroy (cond)
|
||||
__pthread_cond_destroy (cond)
|
||||
pthread_cond_t *cond;
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_cond_destroy, pthread_cond_destroy)
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_cond_init (cond, cond_attr)
|
||||
__pthread_cond_init (cond, cond_attr)
|
||||
pthread_cond_t *cond;
|
||||
const pthread_condattr_t *cond_attr;
|
||||
{
|
||||
@ -35,3 +35,4 @@ pthread_cond_init (cond, cond_attr)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_cond_init, pthread_cond_init)
|
||||
|
@ -21,10 +21,11 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_cond_signal (cond)
|
||||
__pthread_cond_signal (cond)
|
||||
pthread_cond_t *cond;
|
||||
{
|
||||
lll_cond_wake (cond);
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_cond_signal, pthread_cond_signal)
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_cond_wait (cond, mutex)
|
||||
__pthread_cond_wait (cond, mutex)
|
||||
pthread_cond_t *cond;
|
||||
pthread_mutex_t *mutex;
|
||||
{
|
||||
@ -64,3 +64,4 @@ pthread_cond_wait (cond, mutex)
|
||||
|
||||
return err;
|
||||
}
|
||||
strong_alias (__pthread_cond_wait, pthread_cond_wait)
|
||||
|
@ -21,9 +21,10 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_condattr_destroy (attr)
|
||||
__pthread_condattr_destroy (attr)
|
||||
pthread_condattr_t *attr;
|
||||
{
|
||||
/* Nothing to be done. */
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_condattr_destroy, pthread_condattr_destroy)
|
||||
|
@ -22,10 +22,11 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_condattr_init (attr)
|
||||
__pthread_condattr_init (attr)
|
||||
pthread_condattr_t *attr;
|
||||
{
|
||||
memset (attr, '\0', sizeof (*attr));
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_condattr_init, pthread_condattr_init)
|
||||
|
@ -21,9 +21,10 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_equal (thread1, thread2)
|
||||
__pthread_equal (thread1, thread2)
|
||||
pthread_t thread1;
|
||||
pthread_t thread2;
|
||||
{
|
||||
return thread1 == thread2;
|
||||
}
|
||||
strong_alias (__pthread_equal, pthread_equal)
|
||||
|
@ -22,10 +22,11 @@
|
||||
|
||||
|
||||
void
|
||||
pthread_exit (value)
|
||||
__pthread_exit (value)
|
||||
void *value;
|
||||
{
|
||||
THREAD_SETMEM (THREAD_SELF, result, value);
|
||||
|
||||
__do_cancel ();
|
||||
}
|
||||
strong_alias (__pthread_exit, pthread_exit)
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_getschedparam (thread_id, policy, param)
|
||||
__pthread_getschedparam (thread_id, policy, param)
|
||||
pthread_t thread_id;
|
||||
int *policy;
|
||||
struct sched_param *param;
|
||||
@ -49,3 +49,4 @@ pthread_getschedparam (thread_id, policy, param)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_getschedparam, pthread_getschedparam)
|
||||
|
@ -27,3 +27,4 @@ __pthread_mutex_destroy (mutex)
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_mutex_destroy, pthread_mutex_destroy)
|
||||
INTDEF(__pthread_mutex_destroy)
|
||||
|
@ -53,3 +53,4 @@ __pthread_mutex_init (mutex, mutexattr)
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_mutex_init, pthread_mutex_init)
|
||||
INTDEF(__pthread_mutex_init)
|
||||
|
@ -22,7 +22,8 @@
|
||||
|
||||
|
||||
pthread_t
|
||||
pthread_self (void)
|
||||
__pthread_self (void)
|
||||
{
|
||||
return (pthread_t) THREAD_SELF;
|
||||
}
|
||||
strong_alias (__pthread_self, pthread_self)
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_setcancelstate (state, oldstate)
|
||||
__pthread_setcancelstate (state, oldstate)
|
||||
int state;
|
||||
int *oldstate;
|
||||
{
|
||||
@ -66,3 +66,4 @@ pthread_setcancelstate (state, oldstate)
|
||||
|
||||
return 0;
|
||||
}
|
||||
strong_alias (__pthread_setcancelstate, pthread_setcancelstate)
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
|
||||
int
|
||||
pthread_setschedparam (thread_id, policy, param)
|
||||
__pthread_setschedparam (thread_id, policy, param)
|
||||
pthread_t thread_id;
|
||||
int policy;
|
||||
const struct sched_param *param;
|
||||
@ -57,3 +57,4 @@ pthread_setschedparam (thread_id, policy, param)
|
||||
|
||||
return result;
|
||||
}
|
||||
strong_alias (__pthread_setschedparam, pthread_setschedparam)
|
||||
|
Loading…
Reference in New Issue
Block a user