OSDN Git Service

finish the pthread locking cleanups. This should get things compiling again
authorEric Andersen <andersen@codepoet.org>
Fri, 8 Dec 2006 03:19:36 +0000 (03:19 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 8 Dec 2006 03:19:36 +0000 (03:19 -0000)
though I still need to silence the warnings about _pthread_cleanup_push_defer

include/libc-internal.h
libc/misc/pthread/Makefile.in
libc/sysdeps/linux/common/bits/uClibc_mutex.h
libc/sysdeps/linux/common/bits/uClibc_pthread.h
libpthread/linuxthreads.old/sysdeps/pthread/pthread.h
libpthread/linuxthreads/sysdeps/pthread/pthread.h

index 80bac23..2f4f7fa 100644 (file)
@@ -56,6 +56,8 @@ extern char *__glibc_strerror_r (int __errnum, char *__buf, size_t __buflen);
 #   define __pthread_mutex_lock(mutex)                    ((void)0)
 #   define __pthread_mutex_trylock(mutex)                 ((void)0)
 #   define __pthread_mutex_unlock(mutex)                  ((void)0)
+#   define _pthread_cleanup_push_defer(mutex)             ((void)0)
+#   define _pthread_cleanup_pop_restore(mutex)            ((void)0)
 #  endif
 
 /* internal access to program name */
index fc138c9..a768ac8 100644 (file)
@@ -8,7 +8,7 @@
 MISC_PTHREAD_DIR := $(top_srcdir)libc/misc/pthread
 MISC_PTHREAD_OUT := $(top_builddir)libc/misc/pthread
 
-libc-static-$(UCLIBC_HAS_THREADS) += $(MISC_PTHREAD_OUT)/weaks.o
+libc-$(UCLIBC_HAS_THREADS) += $(MISC_PTHREAD_OUT)/weaks.o
 
 objclean-y += misc_pthread_objclean
 
index 5464c22..45b4b07 100644 (file)
@@ -13,6 +13,7 @@
 #ifdef __UCLIBC_HAS_THREADS__
 
 #include <pthread.h>
+#include <bits/uClibc_pthread.h>
 
 #define __UCLIBC_MUTEX_TYPE                            pthread_mutex_t
 
index a3be2ca..f247ea6 100644 (file)
@@ -28,8 +28,7 @@
 #endif
 
 extern int __pthread_mutex_init (pthread_mutex_t *__restrict __mutex,
-                                                                __const pthread_mutexattr_t *__restrict
-                                                                __mutex_attr) attribute_hidden;
+               __const pthread_mutexattr_t *__restrict __mutex_attr) attribute_hidden;
 extern int __pthread_mutex_trylock (pthread_mutex_t *__mutex) attribute_hidden;
 extern int __pthread_mutex_lock (pthread_mutex_t *__mutex) attribute_hidden;
 extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex) attribute_hidden;
index 0cee6a8..448636b 100644 (file)
@@ -24,9 +24,6 @@
 #include <signal.h>
 #include <bits/pthreadtypes.h>
 #include <bits/initspin.h>
-#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
-#include <bits/uClibc_pthread.h>
-#endif
 
 
 __BEGIN_DECLS
index 08843d1..0fa3be1 100644 (file)
@@ -24,9 +24,6 @@
 #include <signal.h>
 #include <bits/pthreadtypes.h>
 #include <bits/initspin.h>
-#if defined _LIBC && ( defined IS_IN_libc || defined NOT_IN_libc )
-#include <bits/uClibc_pthread.h>
-#endif
 
 
 __BEGIN_DECLS