[uClibc-cvs] uClibc/test/dlopen dltest.c,1.1,1.2 libtest.c,1.1,1.2
Erik Andersen
andersen at uclibc.org
Mon Sep 1 23:55:18 UTC 2003
Update of /var/cvs/uClibc/test/dlopen
In directory winder:/tmp/cvs-serv17366
Modified Files:
dltest.c libtest.c
Log Message:
Use "__pthread_once", since that is weak and present in both
glibc and uClibc.
Index: libtest.c
===================================================================
RCS file: /var/cvs/uClibc/test/dlopen/libtest.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- libtest.c 1 Sep 2003 23:43:27 -0000 1.1
+++ libtest.c 1 Sep 2003 23:55:15 -0000 1.2
@@ -2,15 +2,11 @@
#include <pthread.h>
#include <stdint.h>
-extern int __pthread_return_0(void);
+extern int __pthread_once(void);
void dltest(uint32_t **value1, uint32_t **value2)
{
- *value1 = (uint32_t *) __pthread_return_0;
+ *value1 = (uint32_t *) __pthread_once;
*value2 = (uint32_t *) pthread_self;
-#if 0
- printf("dltest: __pthread_return_0=%p\n", __pthread_return_0);
- printf("dltest: pthread_self=%p\n", pthread_self);
-#endif
}
Index: dltest.c
===================================================================
RCS file: /var/cvs/uClibc/test/dlopen/dltest.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- dltest.c 1 Sep 2003 23:43:27 -0000 1.1
+++ dltest.c 1 Sep 2003 23:55:15 -0000 1.2
@@ -29,7 +29,7 @@
}
mydltest(&value1, &value2);
- printf("dltest: __pthread_return_0=%p\n", value1);
+ printf("dltest: __pthread_once=%p\n", value1);
printf("dltest: pthread_self=%p\n", value2);
if (value1 == value2) {
ret = EXIT_FAILURE;
More information about the uClibc-cvs
mailing list