diff options
Diffstat (limited to 'lib/libpthread/pthread_specific.c')
| -rw-r--r-- | lib/libpthread/pthread_specific.c | 11 |
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); +} |
