summaryrefslogtreecommitdiff
path: root/lib/libpthread/pthread_specific.c
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2008-03-21 21:35:43 +0000
committerad <ad@NetBSD.org>2008-03-21 21:35:43 +0000
commit159f55436912a3fd38e65a55d6127529bc650622 (patch)
tree0adba151f23b29b2982401a382018b43f678e11a /lib/libpthread/pthread_specific.c
parent6a0fa0e83c97d52f4e5e3826c4c36c03a69a522c (diff)
Move pthread__errno() into pthread_specific.c so it gets the "no stack
frame" treatment.
Diffstat (limited to 'lib/libpthread/pthread_specific.c')
-rw-r--r--lib/libpthread/pthread_specific.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libpthread/pthread_specific.c b/lib/libpthread/pthread_specific.c
index a626dc7642d..29f1cafe3f9 100644
--- a/lib/libpthread/pthread_specific.c
+++ b/lib/libpthread/pthread_specific.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_specific.c,v 1.17 2008/01/08 20:55:58 christos Exp $ */
+/* $NetBSD: pthread_specific.c,v 1.18 2008/03/21 21:35:43 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.17 2008/01/08 20:55:58 christos Exp $");
+__RCSID("$NetBSD: pthread_specific.c,v 1.18 2008/03/21 21:35:43 ad Exp $");
/* Functions and structures dealing with thread-specific data */
@@ -87,3 +87,10 @@ pthread_curcpu_np(void)
return cpu;
}
+
+int *
+pthread__errno(void)
+{
+
+ return &(pthread__self()->pt_errno);
+}