summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/lockfile.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-25 20:35:27 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-25 20:35:27 +0000
commit312e822571217b30e7ecd7843621c57d4af6f835 (patch)
tree9ae2f1b93348d24f285a8029f298c0fb2d56fe4c /libpthread/linuxthreads.old/lockfile.c
parentc24a610e7adc577dd888154169a98616c455452e (diff)
Modify the earlier changes, because libc-lock references __pthread_mutex*, dont use hidden_strong_alias
Diffstat (limited to 'libpthread/linuxthreads.old/lockfile.c')
-rw-r--r--libpthread/linuxthreads.old/lockfile.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libpthread/linuxthreads.old/lockfile.c b/libpthread/linuxthreads.old/lockfile.c
index 48131bb4a..453a7e936 100644
--- a/libpthread/linuxthreads.old/lockfile.c
+++ b/libpthread/linuxthreads.old/lockfile.c
@@ -20,9 +20,9 @@
#include <stdio.h>
#include <pthread.h>
-libpthread_hidden_proto(pthread_mutexattr_init)
-libpthread_hidden_proto(pthread_mutexattr_settype)
-libpthread_hidden_proto(pthread_mutexattr_destroy)
+extern __typeof(pthread_mutexattr_init) __pthread_mutexattr_init attribute_hidden;
+extern __typeof(pthread_mutexattr_settype) __pthread_mutexattr_settype attribute_hidden;
+extern __typeof(pthread_mutexattr_destroy) __pthread_mutexattr_destroy attribute_hidden;
/* Note: glibc puts flockfile, funlockfile, and ftrylockfile in both
* libc and libpthread. In uClibc, they are now in libc only. */
@@ -33,11 +33,11 @@ __fresetlockfiles (void)
FILE *fp;
pthread_mutexattr_t attr;
- pthread_mutexattr_init(&attr);
- pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+ __pthread_mutexattr_init(&attr);
+ __pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
for (fp = _stdio_openlist; fp != NULL; fp = fp->__nextopen)
__pthread_mutex_init(&fp->__lock, &attr);
- pthread_mutexattr_destroy(&attr);
+ __pthread_mutexattr_destroy(&attr);
}