Files
haiku-beta6/src/kernel/libroot/posix/errno.c
T
Axel Dörfler ccfdaba3e9 Moved the errnop() function to the new TLS stuff.
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
2003-01-07 09:08:44 +00:00

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);
}