use weak symbols for the POSIX functions that will be used by C threads
authorJens Gustedt <Jens.Gustedt@inria.fr>
Sun, 31 Aug 2014 22:46:23 +0000 (00:46 +0200)
committerRich Felker <dalias@aerifal.cx>
Sat, 6 Sep 2014 22:11:24 +0000 (18:11 -0400)
commitdf7d0dfb9c686df31149d09008ba92834bed9803
tree758743956de08b94514757bda68a628751d0f533
parent6eb19505bc10eb7964c4863e53ef1028944044f2
use weak symbols for the POSIX functions that will be used by C threads

The intent of this is to avoid name space pollution of the C threads
implementation.

This has two sides to it. First we have to provide symbols that wouldn't
pollute the name space for the C threads implementation. Second we have
to clean up some internal uses of POSIX functions such that they don't
implicitly drag in such symbols.
15 files changed:
src/mman/mprotect.c
src/thread/__timedwait.c
src/thread/pthread_cond_timedwait.c
src/thread/pthread_create.c
src/thread/pthread_detach.c
src/thread/pthread_getspecific.c
src/thread/pthread_join.c
src/thread/pthread_key_create.c
src/thread/pthread_mutex_lock.c
src/thread/pthread_mutex_timedlock.c
src/thread/pthread_mutex_trylock.c
src/thread/pthread_mutex_unlock.c
src/thread/pthread_once.c
src/thread/pthread_setcancelstate.c
src/thread/pthread_testcancel.c