summaryrefslogtreecommitdiff
path: root/lib/libpthread/pthread.h
diff options
context:
space:
mode:
authordrochner <drochner@NetBSD.org>2007-11-14 19:28:23 +0000
committerdrochner <drochner@NetBSD.org>2007-11-14 19:28:23 +0000
commit095b25e7dd8f3fc22724d05bfa59fd72a9eaafc5 (patch)
tree7e08135e63e8f6dc04fc0b228f4e6e9a2a73edd3 /lib/libpthread/pthread.h
parent4a0a4d4f3085859fb1dc03116e7b4b3eafc11709 (diff)
Add pthread_equal() to libc stubs; this makes a lot of sense for
threadsafe libraries implementing own locking functions. Ride on yesterday's minor version bumps.
Diffstat (limited to 'lib/libpthread/pthread.h')
-rw-r--r--lib/libpthread/pthread.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libpthread/pthread.h b/lib/libpthread/pthread.h
index 2331a16a11f..f4309a3f7ff 100644
--- a/lib/libpthread/pthread.h
+++ b/lib/libpthread/pthread.h
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread.h,v 1.21 2005/03/21 17:55:07 kleink Exp $ */
+/* $NetBSD: pthread.h,v 1.22 2007/11/14 19:28:24 drochner Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -346,12 +346,14 @@ int __libc_thr_once(pthread_once_t *, void (*)(void));
pthread_t __libc_thr_self(void);
void __libc_thr_exit(void *) __attribute__((__noreturn__));
int __libc_thr_setcancelstate(int, int *);
+int __libc_thr_equal(pthread_t, pthread_t);
__END_DECLS
#define pthread_once __libc_thr_once
#define pthread_self __libc_thr_self
#define pthread_exit __libc_thr_exit
#define pthread_setcancelstate __libc_thr_setcancelstate
+#define pthread_equal __libc_thr_equal
#endif /* __LIBPTHREAD_SOURCE__ */