mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
a2da78fa4e
svn path=/trunk/; revision=2960
24 lines
605 B
C
24 lines
605 B
C
/* $Id: errno.c,v 1.3 2002/05/17 01:52:03 hyperion Exp $
|
|
*/
|
|
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS POSIX+ Subsystem
|
|
* FILE: subsys/psx/lib/psxdll/errno/errno.c
|
|
* PURPOSE: Internal errno implementation
|
|
* PROGRAMMER: KJK::Hyperion <noog@libero.it>
|
|
* UPDATE HISTORY:
|
|
* 27/12/2001: Created
|
|
*/
|
|
|
|
#include <ddk/ntddk.h>
|
|
#include <psx/pdata.h>
|
|
#include <psx/errno.h>
|
|
#include <psx/debug.h>
|
|
|
|
int * __PdxGetThreadErrNum(void)
|
|
{
|
|
return &(((__PPDX_TDATA) (NtCurrentTeb()->TlsSlots[__PdxGetProcessData()->TlsIndex]) )->ErrNum);
|
|
}
|
|
|
|
/* EOF */
|
|
|