This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
[PATCH] glibc-2.0.7 fix for pthread_initialize
- To: libc-hacker@cygnus.com
- Subject: [PATCH] glibc-2.0.7 fix for pthread_initialize
- From: "David S. Miller" <davem@dm.cobaltmicro.com>
- Date: Mon, 19 Oct 1998 12:23:01 -0700
Somebody just plain removed the underbars in the name and made it
static without considering who referenced it. Here is a fix.
The bogus change happened somewhere between glibc-2.0.5 and now, back
then it was just like this patch makes it.
--- linuxthreads/pthread.c.~1~ Sun Dec 7 20:25:24 1997
+++ linuxthreads/pthread.c Mon Oct 19 07:35:21 1998
@@ -132,9 +132,9 @@
mask with e.g. sigsetjmp before creating the first thread);
- a regular function called from pthread_create when needed. */
-static void pthread_initialize(void) __attribute__((constructor));
+void __pthread_initialize(void) __attribute__((constructor));
-static void pthread_initialize(void)
+void __pthread_initialize(void)
{
struct sigaction sa;
sigset_t mask;
@@ -181,7 +181,7 @@
/* If basic initialization not done yet (e.g. we're called from a
constructor run before our constructor), do it now */
- if (__pthread_initial_thread_bos == NULL) pthread_initialize();
+ if (__pthread_initial_thread_bos == NULL) __pthread_initialize();
/* Setup stack for thread manager */
__pthread_manager_thread_bos = malloc(THREAD_MANAGER_STACK_SIZE);
if (__pthread_manager_thread_bos == NULL) return -1;