aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-02-19 05:44:33 +0000
committerUlrich Drepper <drepper@redhat.com>2007-02-19 05:44:33 +0000
commit858ee15decf0c6d6ff74ae5c1baae1652b3b5e84 (patch)
tree5a69e68d8bed42611c141da225b21fc74863a175 /nptl
parentecb72bd5b640497474ceae8d5e991b88c0c032e2 (diff)
downloadglibc-858ee15decf0c6d6ff74ae5c1baae1652b3b5e84.tar
glibc-858ee15decf0c6d6ff74ae5c1baae1652b3b5e84.tar.gz
glibc-858ee15decf0c6d6ff74ae5c1baae1652b3b5e84.tar.bz2
glibc-858ee15decf0c6d6ff74ae5c1baae1652b3b5e84.zip
* sysdeps/unix/closedir.c: Outside libc don't use locking.
* sysdeps/unix/opendir.c: Likewise. * sysdeps/unix/readdir.c: Likewise.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/sysdeps/pthread/pthread-functions.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/nptl/sysdeps/pthread/pthread-functions.h b/nptl/sysdeps/pthread/pthread-functions.h
index f8c1e92371..ff1e6e9c49 100644
--- a/nptl/sysdeps/pthread/pthread-functions.h
+++ b/nptl/sysdeps/pthread/pthread-functions.h
@@ -97,16 +97,22 @@ struct pthread_functions
void (*ptr__nptl_deallocate_tsd) (void);
int (*ptr__nptl_setxid) (struct xid_command *);
void (*ptr_freeres) (void);
+ void (*ptr_wait_lookup_done) (int);
};
/* Variable in libc.so. */
extern struct pthread_functions __libc_pthread_functions attribute_hidden;
extern int __libc_pthread_functions_init attribute_hidden;
-#define PTHFCT_CALL(fct, params) \
+#ifdef PTR_DEMANGLE
+# define PTHFCT_CALL(fct, params) \
+ __libc_pthread_functions.fct params
+#else
+# define PTHFCT_CALL(fct, params) \
({ __typeof (__libc_pthread_functions.fct) __p; \
__p = __libc_pthread_functions.fct; \
PTR_DEMANGLE (__p); \
__p params; })
+#endif
#endif /* pthread-functions.h */