PSXDLL: RtlNtStatusToPsxErrno moved to PSX subsystem client library from NTDLL.

svn path=/trunk/; revision=5753
This commit is contained in:
Emanuele Aliberti 2003-08-22 13:55:15 +00:00
parent c07929b227
commit b5984d7099
3 changed files with 38 additions and 3 deletions

View file

@ -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 */

View file

@ -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

View file

@ -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