mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
PSXDLL: RtlNtStatusToPsxErrno moved to PSX subsystem client library from NTDLL.
svn path=/trunk/; revision=5753
This commit is contained in:
parent
c07929b227
commit
b5984d7099
3 changed files with 38 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: errno.c,v 1.5 2002/10/29 04:45:31 rex Exp $
|
||||
/* $Id: errno.c,v 1.6 2003/08/22 13:55:15 ea Exp $
|
||||
*/
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
|
@ -20,5 +20,38 @@ int * __PdxGetThreadErrNum(void)
|
|||
return &(((__PPDX_TDATA) (NtCurrentTeb()->TlsSlots[__PdxGetProcessData()->TlsIndex]) )->ErrNum);
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
* NAME EXPORTED
|
||||
* RtlNtStatusToPsxErrno
|
||||
*
|
||||
* DESCRIPTION
|
||||
* Convert an Executive status ID into a POSIX error number
|
||||
* (errno.h).
|
||||
*
|
||||
* NOTE
|
||||
* Not present in the legacy WNT (a ReactOS extension to support
|
||||
* the POSIX+ subsystem).
|
||||
*
|
||||
* ARGUMENTS
|
||||
* Status The Executive status ID to convert.
|
||||
*
|
||||
* RETURN VALUE
|
||||
* errno as in errno.h
|
||||
*
|
||||
* REVISIONS
|
||||
* 1999-11-30 ea
|
||||
* 2003-08-22 ea: moved here from NTDLL
|
||||
*/
|
||||
INT STDCALL
|
||||
RtlNtStatusToPsxErrno(IN NTSTATUS Status)
|
||||
{
|
||||
#if 0
|
||||
switch (Status)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
return -1; /* generic POSIX error */
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; $Id: psxdll.def,v 1.10 2002/10/29 04:45:35 rex Exp $
|
||||
; $Id: psxdll.def,v 1.11 2003/08/22 13:55:15 ea Exp $
|
||||
;
|
||||
; ReactOS POSIX+ Client Library
|
||||
;
|
||||
|
@ -215,6 +215,7 @@ RtlAnsiCharToUnicodeChar
|
|||
RtlFillMemory
|
||||
RtlMoveMemory
|
||||
RtlMultiByteToUnicodeN
|
||||
RtlNtStatusToPsxErrno
|
||||
RtlUnicodeToMultiByteN
|
||||
RtlUnicodeToMultiByteSize
|
||||
RtlUnwind
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; $Id: psxdll.edf,v 1.9 2002/10/29 04:45:35 rex Exp $
|
||||
; $Id: psxdll.edf,v 1.10 2003/08/22 13:55:15 ea Exp $
|
||||
;
|
||||
; ReactOS POSIX+ Client Library
|
||||
;
|
||||
|
@ -215,6 +215,7 @@ RtlAnsiCharToUnicodeChar=NTDLL.RtlAnsiCharToUnicodeChar
|
|||
RtlFillMemory=NTDLL.RtlFillMemory
|
||||
RtlMoveMemory=NTDLL.RtlMoveMemory
|
||||
RtlMultiByteToUnicodeN=NTDLL.RtlMultiByteToUnicodeN
|
||||
RtlNtStatusToPsxErrno=RtlNtStatusToPsxErrno@4
|
||||
RtlUnicodeToMultiByteN=NTDLL.RtlUnicodeToMultiByteN
|
||||
RtlUnicodeToMultiByteSize=NTDLL.RtlUnicodeToMultiByteSize
|
||||
RtlUnwind=NTDLL.RtlUnwind
|
||||
|
|
Loading…
Reference in a new issue