[PATCH] Clean pthread functions namespace for C11 threads
Juan Manuel Torres Palma
j.m.torrespalma@gmail.com
Thu Jun 25 21:46:00 GMT 2015
Sorry, wrong list...
2015-06-25 23:44 GMT+02:00 Juan Manuel Torres Palma <j.m.torrespalma@gmail.com>:
> This patch creates weak aliases for all conflicting functions with
> C11 threads.h functions, allowong user to redefine them. Some functions
> do not need aliases as they have already been defined as versioned
> symbols.
>
> Cheers.
>
> * nptl/pthreadP.h (__pthread_mutex_timedlock, __pthread_key_delete)
> (__pthread_detach, __pthread_join): Add functions prototypes.
> * nptl/pthread_detach.c (pthread_detach): Declare as weak alias.
> (__pthread_detach): Rename pthread_detach function.
> * nptl/pthread_equal.c (pthread_equal): Declare as weak alias.
> * nptl/pthread_exit.c (pthread_exit): Likewise.
> * nptl/pthread_getspecific.c (pthread_getspecific): Likewise.
> * nptl/pthread_join.c (pthread_join): Declare as weak alias.
> (__pthread_join): Rename pthread_join function.
> * nptl/pthread_key_create.c (pthread_key_create):
> Declare as weak alias.
> * nptl/pthread_key_delete.c (pthread_key_delete):
> Declare as weak alias.
> (__pthread_key_delete): Rename pthread_key_delete function.
> * nptl/pthread_mutex_destroy.c (pthread_mutex_destroy):
> Declare as weak alias.
> * nptl/pthread_mutex_init.c (pthread_mutex_init): Likewise.
> * nptl/pthread_mutex_lock.c (pthread_mutex_lock): Likewise.
> * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
> (__pthread_mutex_timedlock): Rename pthread_mutex_timedlock function.
> * nptl/pthread_mutex_trylock.c (pthread_mutex_trylock):
> Declare as weak alias.
> * nptl/pthread_mutex_unlock.c (pthread_mutex_unlock): Likewise.
> * nptl/pthread_self.c (pthread_self): Likewise.
> * nptl/pthread_setspecific.c (pthread_setspecific): Likewise.
>
>
>
> --
> Juan Manuel Torres Palma.
> Computer Science Student at Universidad de Granada.
--
Juan Manuel Torres Palma.
Computer Science Student at Universidad de Granada.
More information about the Libc-help
mailing list