summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/pthread_create.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-09-03 10:03:29 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-09-03 10:03:29 +0000
commit7410da5e36a173772e7fd831933ea946759e4996 (patch)
treef4fe6d924e25716b3638621099473443e2bd1dd4 /libpthread/nptl/pthread_create.c
parent9a3a4b3b3a4451b57d833e0d7dc91b7a14138e43 (diff)
downloaduClibc-alpine-7410da5e36a173772e7fd831933ea946759e4996.tar.bz2
uClibc-alpine-7410da5e36a173772e7fd831933ea946759e4996.tar.xz
Make sure that multi-threaded statically linked applications use the real
locking implementations instead of the empty stubs from libc.a. Removed also old work-around added to opendir, due to wrong pthread_mutex_init (from libc.a) used in static binaries. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libpthread/nptl/pthread_create.c')
-rw-r--r--libpthread/nptl/pthread_create.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpthread/nptl/pthread_create.c b/libpthread/nptl/pthread_create.c
index c544bc267..0b37b3655 100644
--- a/libpthread/nptl/pthread_create.c
+++ b/libpthread/nptl/pthread_create.c
@@ -477,3 +477,8 @@ PTHREAD_STATIC_FN_REQUIRE (pthread_cancel)
PTHREAD_STATIC_FN_REQUIRE (pthread_key_create)
PTHREAD_STATIC_FN_REQUIRE (pthread_setspecific)
PTHREAD_STATIC_FN_REQUIRE (pthread_getspecific)
+
+/* UCLIBC_MUTEX_xxx macros expects to have these as well */
+PTHREAD_STATIC_FN_REQUIRE (pthread_mutex_init)
+PTHREAD_STATIC_FN_REQUIRE (_pthread_cleanup_push_defer)
+PTHREAD_STATIC_FN_REQUIRE (_pthread_cleanup_pop_restore)