[uClibc-cvs] uClibc/libpthread/linuxthreads lockfile.c, 1.2, 1.3 mutex.c, 1.6, 1.7 specific.c, 1.5, 1.6

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


Update of /var/cvs/uClibc/libpthread/linuxthreads
In directory nail:/tmp/cvs-serv11655/libpthread/linuxthreads

Modified Files:
	lockfile.c mutex.c specific.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: specific.c
===================================================================
RCS file: /var/cvs/uClibc/libpthread/linuxthreads/specific.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- specific.c	11 Mar 2003 20:07:00 -0000	1.5
+++ specific.c	27 Dec 2003 23:30:50 -0000	1.6
@@ -23,7 +23,6 @@
 #include "internals.h"
 #include "spinlock.h"
 #include "restart.h"
-#include <bits/libc-lock.h>
 
 
 /* Table of keys. */

Index: lockfile.c
===================================================================
RCS file: /var/cvs/uClibc/libpthread/linuxthreads/lockfile.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- lockfile.c	12 Mar 2002 01:18:50 -0000	1.2
+++ lockfile.c	27 Dec 2003 23:30:50 -0000	1.3
@@ -17,7 +17,6 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/*  #include <bits/libc-lock.h> */
 #include <stdio.h>
 #include <pthread.h>
 

Index: mutex.c
===================================================================
RCS file: /var/cvs/uClibc/libpthread/linuxthreads/mutex.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- mutex.c	27 Feb 2003 18:12:43 -0000	1.6
+++ mutex.c	27 Dec 2003 23:30:50 -0000	1.7
@@ -14,7 +14,6 @@
 
 /* Mutexes */
 
-#include <bits/libc-lock.h>
 #include <errno.h>
 #include <sched.h>
 #include <stddef.h>




More information about the uClibc-cvs mailing list