summaryrefslogtreecommitdiff
path: root/lib/libpthread
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
parent6a0fa0e83c97d52f4e5e3826c4c36c03a69a522c (diff)
Move pthread__errno() into pthread_specific.c so it gets the "no stack
frame" treatment.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/pthread.c14
-rw-r--r--lib/libpthread/pthread_specific.c11
2 files changed, 11 insertions, 14 deletions
diff --git a/lib/libpthread/pthread.c b/lib/libpthread/pthread.c
index 49824f53cc2..2123873f0ea 100644
--- a/lib/libpthread/pthread.c
+++ b/lib/libpthread/pthread.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread.c,v 1.97 2008/03/08 13:23:13 ad Exp $ */
+/* $NetBSD: pthread.c,v 1.98 2008/03/21 21:35:43 ad Exp $ */
/*-
* Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread.c,v 1.97 2008/03/08 13:23:13 ad Exp $");
+__RCSID("$NetBSD: pthread.c,v 1.98 2008/03/21 21:35:43 ad Exp $");
#define __EXPOSE_STACK 1
@@ -918,16 +918,6 @@ pthread__cleanup_pop(int ex, void *store)
}
-int *
-pthread__errno(void)
-{
- pthread_t self;
-
- self = pthread__self();
-
- return &(self->pt_errno);
-}
-
ssize_t _sys_write(int, const void *, size_t);
void
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);
+}