[uClibc-cvs] uClibc/libc/misc/pthread weaks.c,1.5,1.6
Erik Andersen
andersen at uclibc.org
Fri May 14 11:12:27 UTC 2004
Update of /var/cvs/uClibc/libc/misc/pthread
In directory nail:/tmp/cvs-serv22916/libc/misc/pthread
Modified Files:
weaks.c
Log Message:
Joakim Tjernlund writes:
Hi Erik
It seems to me that __pthread_once and __pthread_initialize_minimal could be made
WEAKs with no stub. The code in rpc_thread.c and __uClibc_main.c appears to expect this.
Also, __pthread_return_0 __pthread_return_1 and __pthread_return_void can be static, not to
pollute the name space.
Jocke
Index: weaks.c
===================================================================
RCS file: /var/cvs/uClibc/libc/misc/pthread/weaks.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- a/weaks.c 4 Jan 2004 01:29:01 -0000 1.5
+++ b/weaks.c 14 May 2004 11:12:25 -0000 1.6
@@ -21,9 +21,9 @@
#include <limits.h>
#include <stdlib.h>
-extern int __pthread_return_0 __P ((void));
-extern int __pthread_return_1 __P ((void));
-extern void __pthread_return_void __P ((void));
+static int __pthread_return_0 __P ((void));
+static int __pthread_return_1 __P ((void));
+static void __pthread_return_void __P ((void));
/**********************************************************************/
/* Weaks for application/library use.
@@ -105,25 +105,21 @@
weak_alias (__pthread_return_0, __pthread_mutex_trylock)
weak_alias (__pthread_return_0, __pthread_mutex_unlock)
-/* Weaks used internally by the C library rpc code only. */
-weak_alias (__pthread_return_0, __pthread_once)
-weak_alias (__pthread_return_void, __pthread_initialize_minimal)
-
/**********************************************************************/
-int
+static int
__pthread_return_0 (void)
{
return 0;
}
-int
+static int
__pthread_return_1 (void)
{
return 1;
}
-void
+static void
__pthread_return_void (void)
{
}
More information about the uClibc-cvs
mailing list