summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-01-14 19:32:10 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-01-14 19:32:10 +0000
commit821b26bf3fe22524a1d1a2c9bc60ad549de82333 (patch)
tree0dc5c690f89b55f1156bcba1b15ee382e4242714 /libc
parenta979d4016db090191fe7ed167d85870338e64604 (diff)
downloaduClibc-alpine-821b26bf3fe22524a1d1a2c9bc60ad549de82333.tar.bz2
uClibc-alpine-821b26bf3fe22524a1d1a2c9bc60ad549de82333.tar.xz
Get rid of more glibc NPTL symbol and alias madness. Also disable usage of
'libc/sysdeps/linux/common/fork.c' when NPTL is being used. Finally, there are additional weak functions that need to be defined when using NPTL which have also been added.
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/pthread/weaks.c5
-rw-r--r--libc/signal/sigfillset.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/libc/misc/pthread/weaks.c b/libc/misc/pthread/weaks.c
index 20a98a3fe..e08812796 100644
--- a/libc/misc/pthread/weaks.c
+++ b/libc/misc/pthread/weaks.c
@@ -36,3 +36,8 @@ weak_alias (__pthread_return_0, __pthread_mutex_init)
weak_alias (__pthread_return_0, __pthread_mutex_lock)
weak_alias (__pthread_return_0, __pthread_mutex_trylock)
weak_alias (__pthread_return_0, __pthread_mutex_unlock)
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+weak_alias (__pthread_return_0, __pthread_mutexattr_init)
+weak_alias (__pthread_return_0, __pthread_mutexattr_destroy)
+weak_alias (__pthread_return_0, __pthread_mutexattr_settype)
+#endif
diff --git a/libc/signal/sigfillset.c b/libc/signal/sigfillset.c
index 84862cfa2..9bf3777d5 100644
--- a/libc/signal/sigfillset.c
+++ b/libc/signal/sigfillset.c
@@ -30,7 +30,11 @@ __sigfillset_internal (sigset_t *set)
return -1;
}
+#ifdef IS_IN_libc
__memset (set, 0xff, sizeof (sigset_t));
+#else
+ memset (set, 0xff, sizeof (sigset_t));
+#endif
/* If the implementation uses a cancellation signal don't set the bit. */
#ifdef SIGCANCEL