mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +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
|
||||
|
@ -10,15 +10,14 @@
|
|||
* 27/12/2001: Created
|
||||
*/
|
||||
|
||||
#include <psx/debug.h>
|
||||
#include <ddk/ntddk.h>
|
||||
#include <psx/pdata.h>
|
||||
#include <psx/errno.h>
|
||||
|
||||
static int __errno_storage = 0;
|
||||
#include <psx/debug.h>
|
||||
|
||||
int * __PdxGetThreadErrNum(void)
|
||||
{
|
||||
FIXME("errno currently not thread-safe");
|
||||
return (&__errno_storage);
|
||||
return &(((__PPDX_TDATA) (NtCurrentTeb()->TlsSlots[__PdxGetProcessData()->TlsIndex]) )->ErrNum);
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue