diff options
| author | drochner <drochner@NetBSD.org> | 2007-11-14 19:28:23 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2007-11-14 19:28:23 +0000 |
| commit | 095b25e7dd8f3fc22724d05bfa59fd72a9eaafc5 (patch) | |
| tree | 7e08135e63e8f6dc04fc0b228f4e6e9a2a73edd3 /lib/libpthread | |
| parent | 4a0a4d4f3085859fb1dc03116e7b4b3eafc11709 (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')
| -rw-r--r-- | lib/libpthread/pthread.c | 5 | ||||
| -rw-r--r-- | lib/libpthread/pthread.h | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/libpthread/pthread.c b/lib/libpthread/pthread.c index 78de6571e5d..c25f0fdb492 100644 --- a/lib/libpthread/pthread.c +++ b/lib/libpthread/pthread.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread.c,v 1.88 2007/11/13 17:20:09 ad Exp $ */ +/* $NetBSD: pthread.c,v 1.89 2007/11/14 19:28:23 drochner Exp $ */ /*- * Copyright (c) 2001, 2002, 2003, 2006, 2007 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread.c,v 1.88 2007/11/13 17:20:09 ad Exp $"); +__RCSID("$NetBSD: pthread.c,v 1.89 2007/11/14 19:28:23 drochner Exp $"); #define __EXPOSE_STACK 1 @@ -122,6 +122,7 @@ __strong_alias(__libc_thr_create,pthread_create) __strong_alias(__libc_thr_exit,pthread_exit) __strong_alias(__libc_thr_errno,pthread__errno) __strong_alias(__libc_thr_setcancelstate,pthread_setcancelstate) +__strong_alias(__libc_thr_equal,pthread_equal) __strong_alias(__libc_thr_init,pthread__init) /* 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__ */ |
