1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Add namespace protected alias.

This commit is contained in:
Ulrich Drepper
2002-12-15 19:59:08 +00:00
parent 7ad6b6eb3a
commit 8361400815
26 changed files with 50 additions and 24 deletions

View File

@ -25,7 +25,7 @@
int int
pthread_attr_destroy (attr) __pthread_attr_destroy (attr)
pthread_attr_t *attr; pthread_attr_t *attr;
{ {
/* Enqueue the attributes to the list of all known variables. */ /* Enqueue the attributes to the list of all known variables. */
@ -64,3 +64,4 @@ pthread_attr_destroy (attr)
return 0; return 0;
} }
strong_alias (__pthread_attr_destroy, pthread_attr_destroy)

View File

@ -22,7 +22,7 @@
int int
pthread_attr_getdetachstate (attr, detachstate) __pthread_attr_getdetachstate (attr, detachstate)
const pthread_attr_t *attr; const pthread_attr_t *attr;
int *detachstate; int *detachstate;
{ {
@ -36,3 +36,4 @@ pthread_attr_getdetachstate (attr, detachstate)
return 0; return 0;
} }
strong_alias (__pthread_attr_getdetachstate, pthread_attr_getdetachstate)

View File

@ -22,7 +22,7 @@
int int
pthread_attr_getinheritsched (attr, inherit) __pthread_attr_getinheritsched (attr, inherit)
const pthread_attr_t *attr; const pthread_attr_t *attr;
int *inherit; int *inherit;
{ {
@ -37,3 +37,4 @@ pthread_attr_getinheritsched (attr, inherit)
return 0; return 0;
} }
strong_alias (__pthread_attr_getinheritsched, pthread_attr_getinheritsched)

View File

@ -23,7 +23,7 @@
int int
pthread_attr_getschedparam (attr, param) __pthread_attr_getschedparam (attr, param)
const pthread_attr_t *attr; const pthread_attr_t *attr;
struct sched_param *param; struct sched_param *param;
{ {
@ -37,3 +37,4 @@ pthread_attr_getschedparam (attr, param)
return 0; return 0;
} }
strong_alias (__pthread_attr_getschedparam, pthread_attr_getschedparam)

View File

@ -22,7 +22,7 @@
int int
pthread_attr_getschedpolicy (attr, policy) __pthread_attr_getschedpolicy (attr, policy)
const pthread_attr_t *attr; const pthread_attr_t *attr;
int *policy; int *policy;
{ {
@ -36,3 +36,4 @@ pthread_attr_getschedpolicy (attr, policy)
return 0; return 0;
} }
strong_alias (__pthread_attr_getschedpolicy, pthread_attr_getschedpolicy)

View File

@ -22,7 +22,7 @@
int int
pthread_attr_getscope (attr, scope) __pthread_attr_getscope (attr, scope)
const pthread_attr_t *attr; const pthread_attr_t *attr;
int *scope; int *scope;
{ {
@ -37,3 +37,4 @@ pthread_attr_getscope (attr, scope)
return 0; return 0;
} }
strong_alias (__pthread_attr_getscope, pthread_attr_getscope)

View File

@ -23,7 +23,7 @@
int int
pthread_attr_setdetachstate (attr, detachstate) __pthread_attr_setdetachstate (attr, detachstate)
pthread_attr_t *attr; pthread_attr_t *attr;
int detachstate; int detachstate;
{ {
@ -45,3 +45,4 @@ pthread_attr_setdetachstate (attr, detachstate)
return 0; return 0;
} }
strong_alias (__pthread_attr_setdetachstate, pthread_attr_setdetachstate)

View File

@ -23,7 +23,7 @@
int int
pthread_attr_setinheritsched (attr, inherit) __pthread_attr_setinheritsched (attr, inherit)
pthread_attr_t *attr; pthread_attr_t *attr;
int inherit; int inherit;
{ {
@ -44,3 +44,4 @@ pthread_attr_setinheritsched (attr, inherit)
return 0; return 0;
} }
strong_alias (__pthread_attr_setinheritsched, pthread_attr_setinheritsched)

View File

@ -24,7 +24,7 @@
int int
pthread_attr_setschedparam (attr, param) __pthread_attr_setschedparam (attr, param)
pthread_attr_t *attr; pthread_attr_t *attr;
const struct sched_param *param; const struct sched_param *param;
{ {
@ -47,3 +47,4 @@ pthread_attr_setschedparam (attr, param)
return 0; return 0;
} }
strong_alias (__pthread_attr_setschedparam, pthread_attr_setschedparam)

View File

@ -23,7 +23,7 @@
int int
pthread_attr_setschedpolicy (attr, policy) __pthread_attr_setschedpolicy (attr, policy)
pthread_attr_t *attr; pthread_attr_t *attr;
int policy; int policy;
{ {
@ -41,3 +41,4 @@ pthread_attr_setschedpolicy (attr, policy)
return 0; return 0;
} }
strong_alias (__pthread_attr_setschedpolicy, pthread_attr_setschedpolicy)

View File

@ -23,7 +23,7 @@
int int
pthread_attr_setscope (attr, scope) __pthread_attr_setscope (attr, scope)
pthread_attr_t *attr; pthread_attr_t *attr;
int scope; int scope;
{ {
@ -48,3 +48,4 @@ pthread_attr_setscope (attr, scope)
return 0; return 0;
} }
strong_alias (__pthread_attr_setscope, pthread_attr_setscope)

View File

@ -21,10 +21,11 @@
int int
pthread_cond_broadcast (cond) __pthread_cond_broadcast (cond)
pthread_cond_t *cond; pthread_cond_t *cond;
{ {
lll_cond_broadcast (cond); lll_cond_broadcast (cond);
return 0; return 0;
} }
strong_alias (__pthread_cond_broadcast, pthread_cond_broadcast)

View File

@ -22,8 +22,9 @@
int int
pthread_cond_destroy (cond) __pthread_cond_destroy (cond)
pthread_cond_t *cond; pthread_cond_t *cond;
{ {
return 0; return 0;
} }
strong_alias (__pthread_cond_destroy, pthread_cond_destroy)

View File

@ -21,7 +21,7 @@
int int
pthread_cond_init (cond, cond_attr) __pthread_cond_init (cond, cond_attr)
pthread_cond_t *cond; pthread_cond_t *cond;
const pthread_condattr_t *cond_attr; const pthread_condattr_t *cond_attr;
{ {
@ -35,3 +35,4 @@ pthread_cond_init (cond, cond_attr)
return 0; return 0;
} }
strong_alias (__pthread_cond_init, pthread_cond_init)

View File

@ -21,10 +21,11 @@
int int
pthread_cond_signal (cond) __pthread_cond_signal (cond)
pthread_cond_t *cond; pthread_cond_t *cond;
{ {
lll_cond_wake (cond); lll_cond_wake (cond);
return 0; return 0;
} }
strong_alias (__pthread_cond_signal, pthread_cond_signal)

View File

@ -22,7 +22,7 @@
int int
pthread_cond_wait (cond, mutex) __pthread_cond_wait (cond, mutex)
pthread_cond_t *cond; pthread_cond_t *cond;
pthread_mutex_t *mutex; pthread_mutex_t *mutex;
{ {
@ -64,3 +64,4 @@ pthread_cond_wait (cond, mutex)
return err; return err;
} }
strong_alias (__pthread_cond_wait, pthread_cond_wait)

View File

@ -21,9 +21,10 @@
int int
pthread_condattr_destroy (attr) __pthread_condattr_destroy (attr)
pthread_condattr_t *attr; pthread_condattr_t *attr;
{ {
/* Nothing to be done. */ /* Nothing to be done. */
return 0; return 0;
} }
strong_alias (__pthread_condattr_destroy, pthread_condattr_destroy)

View File

@ -22,10 +22,11 @@
int int
pthread_condattr_init (attr) __pthread_condattr_init (attr)
pthread_condattr_t *attr; pthread_condattr_t *attr;
{ {
memset (attr, '\0', sizeof (*attr)); memset (attr, '\0', sizeof (*attr));
return 0; return 0;
} }
strong_alias (__pthread_condattr_init, pthread_condattr_init)

View File

@ -21,9 +21,10 @@
int int
pthread_equal (thread1, thread2) __pthread_equal (thread1, thread2)
pthread_t thread1; pthread_t thread1;
pthread_t thread2; pthread_t thread2;
{ {
return thread1 == thread2; return thread1 == thread2;
} }
strong_alias (__pthread_equal, pthread_equal)

View File

@ -22,10 +22,11 @@
void void
pthread_exit (value) __pthread_exit (value)
void *value; void *value;
{ {
THREAD_SETMEM (THREAD_SELF, result, value); THREAD_SETMEM (THREAD_SELF, result, value);
__do_cancel (); __do_cancel ();
} }
strong_alias (__pthread_exit, pthread_exit)

View File

@ -23,7 +23,7 @@
int int
pthread_getschedparam (thread_id, policy, param) __pthread_getschedparam (thread_id, policy, param)
pthread_t thread_id; pthread_t thread_id;
int *policy; int *policy;
struct sched_param *param; struct sched_param *param;
@ -49,3 +49,4 @@ pthread_getschedparam (thread_id, policy, param)
return 0; return 0;
} }
strong_alias (__pthread_getschedparam, pthread_getschedparam)

View File

@ -27,3 +27,4 @@ __pthread_mutex_destroy (mutex)
return 0; return 0;
} }
strong_alias (__pthread_mutex_destroy, pthread_mutex_destroy) strong_alias (__pthread_mutex_destroy, pthread_mutex_destroy)
INTDEF(__pthread_mutex_destroy)

View File

@ -53,3 +53,4 @@ __pthread_mutex_init (mutex, mutexattr)
return 0; return 0;
} }
strong_alias (__pthread_mutex_init, pthread_mutex_init) strong_alias (__pthread_mutex_init, pthread_mutex_init)
INTDEF(__pthread_mutex_init)

View File

@ -22,7 +22,8 @@
pthread_t pthread_t
pthread_self (void) __pthread_self (void)
{ {
return (pthread_t) THREAD_SELF; return (pthread_t) THREAD_SELF;
} }
strong_alias (__pthread_self, pthread_self)

View File

@ -23,7 +23,7 @@
int int
pthread_setcancelstate (state, oldstate) __pthread_setcancelstate (state, oldstate)
int state; int state;
int *oldstate; int *oldstate;
{ {
@ -66,3 +66,4 @@ pthread_setcancelstate (state, oldstate)
return 0; return 0;
} }
strong_alias (__pthread_setcancelstate, pthread_setcancelstate)

View File

@ -25,7 +25,7 @@
int int
pthread_setschedparam (thread_id, policy, param) __pthread_setschedparam (thread_id, policy, param)
pthread_t thread_id; pthread_t thread_id;
int policy; int policy;
const struct sched_param *param; const struct sched_param *param;
@ -57,3 +57,4 @@ pthread_setschedparam (thread_id, policy, param)
return result; return result;
} }
strong_alias (__pthread_setschedparam, pthread_setschedparam)