summaryrefslogtreecommitdiff
path: root/lib/libpthread/pthread_specific.c
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2008-03-22 14:19:27 +0000
committerad <ad@NetBSD.org>2008-03-22 14:19:27 +0000
commit783e2f6db5806a1c899ed1dd3e1bfb32ea612c7e (patch)
tree2e5e26c47c97aecfe5457f9a617b944b20e51400 /lib/libpthread/pthread_specific.c
parent978a8525ecf7fc1437eb9e8acbe49a387b1043f8 (diff)
Back out previous. It seems to expose another bug in libpthread/libc,
potentially errno being used before threading is up and running.
Diffstat (limited to 'lib/libpthread/pthread_specific.c')
-rw-r--r--lib/libpthread/pthread_specific.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/libpthread/pthread_specific.c b/lib/libpthread/pthread_specific.c
index 29f1cafe3f9..47bcc1f192f 100644
--- a/lib/libpthread/pthread_specific.c
+++ b/lib/libpthread/pthread_specific.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_specific.c,v 1.18 2008/03/21 21:35:43 ad Exp $ */
+/* $NetBSD: pthread_specific.c,v 1.19 2008/03/22 14:19:27 ad Exp $ */
/*-
* Copyright (c) 2001, 2007 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_specific.c,v 1.18 2008/03/21 21:35:43 ad Exp $");
+__RCSID("$NetBSD: pthread_specific.c,v 1.19 2008/03/22 14:19:27 ad Exp $");
/* Functions and structures dealing with thread-specific data */
@@ -87,10 +87,3 @@ pthread_curcpu_np(void)
return cpu;
}
-
-int *
-pthread__errno(void)
-{
-
- return &(pthread__self()->pt_errno);
-}