mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:36:11 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
|
@ -20,5 +20,38 @@ int * __PdxGetThreadErrNum(void)
|
||||||
return &(((__PPDX_TDATA) (NtCurrentTeb()->TlsSlots[__PdxGetProcessData()->TlsIndex]) )->ErrNum);
|
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 */
|
/* 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
|
; ReactOS POSIX+ Client Library
|
||||||
;
|
;
|
||||||
|
@ -215,6 +215,7 @@ RtlAnsiCharToUnicodeChar
|
||||||
RtlFillMemory
|
RtlFillMemory
|
||||||
RtlMoveMemory
|
RtlMoveMemory
|
||||||
RtlMultiByteToUnicodeN
|
RtlMultiByteToUnicodeN
|
||||||
|
RtlNtStatusToPsxErrno
|
||||||
RtlUnicodeToMultiByteN
|
RtlUnicodeToMultiByteN
|
||||||
RtlUnicodeToMultiByteSize
|
RtlUnicodeToMultiByteSize
|
||||||
RtlUnwind
|
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
|
; ReactOS POSIX+ Client Library
|
||||||
;
|
;
|
||||||
|
@ -215,6 +215,7 @@ RtlAnsiCharToUnicodeChar=NTDLL.RtlAnsiCharToUnicodeChar
|
||||||
RtlFillMemory=NTDLL.RtlFillMemory
|
RtlFillMemory=NTDLL.RtlFillMemory
|
||||||
RtlMoveMemory=NTDLL.RtlMoveMemory
|
RtlMoveMemory=NTDLL.RtlMoveMemory
|
||||||
RtlMultiByteToUnicodeN=NTDLL.RtlMultiByteToUnicodeN
|
RtlMultiByteToUnicodeN=NTDLL.RtlMultiByteToUnicodeN
|
||||||
|
RtlNtStatusToPsxErrno=RtlNtStatusToPsxErrno@4
|
||||||
RtlUnicodeToMultiByteN=NTDLL.RtlUnicodeToMultiByteN
|
RtlUnicodeToMultiByteN=NTDLL.RtlUnicodeToMultiByteN
|
||||||
RtlUnicodeToMultiByteSize=NTDLL.RtlUnicodeToMultiByteSize
|
RtlUnicodeToMultiByteSize=NTDLL.RtlUnicodeToMultiByteSize
|
||||||
RtlUnwind=NTDLL.RtlUnwind
|
RtlUnwind=NTDLL.RtlUnwind
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue