mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
errno finally thread-safe
svn path=/trunk/; revision=2960
This commit is contained in:
parent
a97804075b
commit
a2da78fa4e
1 changed files with 5 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: errno.c,v 1.2 2002/02/20 09:17:56 hyperion Exp $
|
/* $Id: errno.c,v 1.3 2002/05/17 01:52:03 hyperion Exp $
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
|
@ -10,15 +10,14 @@
|
||||||
* 27/12/2001: Created
|
* 27/12/2001: Created
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <psx/debug.h>
|
#include <ddk/ntddk.h>
|
||||||
|
#include <psx/pdata.h>
|
||||||
#include <psx/errno.h>
|
#include <psx/errno.h>
|
||||||
|
#include <psx/debug.h>
|
||||||
static int __errno_storage = 0;
|
|
||||||
|
|
||||||
int * __PdxGetThreadErrNum(void)
|
int * __PdxGetThreadErrNum(void)
|
||||||
{
|
{
|
||||||
FIXME("errno currently not thread-safe");
|
return &(((__PPDX_TDATA) (NtCurrentTeb()->TlsSlots[__PdxGetProcessData()->TlsIndex]) )->ErrNum);
|
||||||
return (&__errno_storage);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue