We now have a separate errnop() for the kernel, which just references a field in the thread structure. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2376 a95241bf-73f2-0310-859d-f6bbb57e9c96
21 lines
340 B
C
21 lines
340 B
C
/*
|
|
** Copyright 2003, Axel Dörfler, [email protected]. All rights reserved.
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
*/
|
|
|
|
/* Provides user space storage for "errno", located in TLS
|
|
*/
|
|
|
|
#include <errno.h>
|
|
|
|
#include "support/TLS.h"
|
|
#include "tls.h"
|
|
|
|
|
|
int *
|
|
_errnop(void)
|
|
{
|
|
return (int *)tls_address(TLS_ERRNO_SLOT);
|
|
}
|
|
|