2002-05-17 01:52:03 +00:00
|
|
|
/* $Id: errno.c,v 1.3 2002/05/17 01:52:03 hyperion Exp $
|
2002-02-20 07:06:52 +00:00
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
2002-02-20 09:17:58 +00:00
|
|
|
* PROJECT: ReactOS POSIX+ Subsystem
|
2002-02-20 07:06:52 +00:00
|
|
|
* FILE: subsys/psx/lib/psxdll/errno/errno.c
|
|
|
|
* PURPOSE: Internal errno implementation
|
|
|
|
* PROGRAMMER: KJK::Hyperion <noog@libero.it>
|
|
|
|
* UPDATE HISTORY:
|
|
|
|
* 27/12/2001: Created
|
|
|
|
*/
|
|
|
|
|
2002-05-17 01:52:03 +00:00
|
|
|
#include <ddk/ntddk.h>
|
|
|
|
#include <psx/pdata.h>
|
2002-02-20 07:06:52 +00:00
|
|
|
#include <psx/errno.h>
|
2002-05-17 01:52:03 +00:00
|
|
|
#include <psx/debug.h>
|
2002-02-20 07:06:52 +00:00
|
|
|
|
|
|
|
int * __PdxGetThreadErrNum(void)
|
|
|
|
{
|
2002-05-17 01:52:03 +00:00
|
|
|
return &(((__PPDX_TDATA) (NtCurrentTeb()->TlsSlots[__PdxGetProcessData()->TlsIndex]) )->ErrNum);
|
2002-02-20 07:06:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|
|
|
|
|