Move pthread__errno() into pthread_specific.c so it gets the "no stack
frame" treatment.
This commit is contained in:
parent
6a0fa0e83c
commit
159f554369
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user