[uClibc-cvs] uClibc/libc/misc/time time.c,1.18,1.19

Manuel Novoa III mjn3 at uclibc.org
Sat Dec 27 23:30:37 UTC 2003


Update of /var/cvs/uClibc/libc/misc/time
In directory nail:/tmp/cvs-serv11655/libc/misc/time

Modified Files:
	time.c 
Log Message:
Fix a long-standing bug with pthreads.  A couple of linuxthreads files
were including libc-lock.h which had a bunch of weak pragmas.  Also,
uClibc supplied a number of no-op weak thread functions even though
many weren't needed.  This combined result was that sometimes the
functional versions of thread functions in pthread would not override
the weaks in libc.

While fixing this, I also prepended double-underscore to all necessary
weak thread funcs in uClibc, and removed all unused weaks.

I did a test build, but haven't tested this since these changes are
a backport from my working tree.  I did test the changes there and
no longer need to explicitly add -lpthread in the perl build for
perl to pass its thread self tests.



Index: time.c
===================================================================
RCS file: /var/cvs/uClibc/libc/misc/time/time.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- time.c	14 Dec 2003 23:51:30 -0000	1.18
+++ time.c	27 Dec 2003 23:30:34 -0000	1.19
@@ -202,8 +202,8 @@
 
 extern pthread_mutex_t _time_tzlock;
 
-#define TZLOCK		pthread_mutex_lock(&_time_tzlock)
-#define TZUNLOCK	pthread_mutex_unlock(&_time_tzlock)
+#define TZLOCK		__pthread_mutex_lock(&_time_tzlock)
+#define TZUNLOCK	__pthread_mutex_unlock(&_time_tzlock)
 
 #else
 




More information about the uClibc-cvs mailing list