OSDN Git Service

Fix a long-standing bug with pthreads. A couple of linuxthreads files
authorManuel Novoa III <mjn3@codepoet.org>
Sat, 27 Dec 2003 23:30:50 +0000 (23:30 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Sat, 27 Dec 2003 23:30:50 +0000 (23:30 -0000)
commitd05dafe2fc23137f8decd641d82d23f45e16281c
tree83fb903ed075f81269ef2b1ee4b0edf0741ff70f
parentcb19f2f71fa01b6d40dae3190cb6dd1d2116f852
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.
37 files changed:
include/pthread.h
libc/inet/getnetent.c
libc/inet/getproto.c
libc/inet/getservice.c
libc/inet/resolv.c
libc/inet/rpc/create_xid.c
libc/misc/dirent/closedir.c
libc/misc/dirent/opendir.c
libc/misc/dirent/readdir.c
libc/misc/dirent/readdir64.c
libc/misc/dirent/readdir64_r.c
libc/misc/dirent/readdir_r.c
libc/misc/dirent/rewinddir.c
libc/misc/dirent/seekdir.c
libc/misc/mntent/mntent.c
libc/misc/pthread/weaks.c
libc/misc/syslog/syslog.c
libc/misc/time/time.c
libc/misc/utmp/utent.c
libc/misc/wchar/wstdio.c
libc/pwd_grp/lckpwdf.c
libc/pwd_grp/pwd_grp.c
libc/stdio/stdio.c
libc/stdlib/abort.c
libc/stdlib/atexit.c
libc/stdlib/malloc-930716/malloc.c
libc/stdlib/malloc-930716/memalign.c
libc/stdlib/malloc-930716/realloc.c
libc/stdlib/malloc/heap.h
libc/stdlib/malloc/malloc.h
libc/stdlib/random.c
libc/stdlib/setenv.c
libc/sysdeps/linux/common/bits/uClibc_pthread.h [new file with mode: 0644]
libc/sysdeps/linux/common/bits/uClibc_stdio.h
libpthread/linuxthreads/lockfile.c
libpthread/linuxthreads/mutex.c
libpthread/linuxthreads/specific.c