RtlNtStatusToPsxErrno stub added.

svn path=/trunk/; revision=823
This commit is contained in:
Emanuele Aliberti 1999-12-04 21:03:22 +00:00
parent ba58b241e5
commit 4b70175e11
3 changed files with 45 additions and 3 deletions

View file

@ -1,4 +1,4 @@
; $Id: ntdll.def,v 1.26 1999/12/01 15:16:04 ekohl Exp $ ; $Id: ntdll.def,v 1.27 1999/12/04 21:03:22 ea Exp $
; ;
; ReactOS Operating System ; ReactOS Operating System
; ;
@ -487,6 +487,7 @@ RtlLockHeap@4
RtlMoveMemory@12 RtlMoveMemory@12
RtlMultiByteToUnicodeN@20 RtlMultiByteToUnicodeN@20
RtlNtStatusToDosError RtlNtStatusToDosError
RtlNtStatusToPsxErrno@4
RtlOemStringToUnicodeSize@4 RtlOemStringToUnicodeSize@4
RtlOemStringToUnicodeString@12 RtlOemStringToUnicodeString@12
RtlOemToUnicodeN@20 RtlOemToUnicodeN@20

View file

@ -1,4 +1,4 @@
; $Id: ntdll.edf,v 1.16 1999/12/01 15:16:05 ekohl Exp $ ; $Id: ntdll.edf,v 1.17 1999/12/04 21:03:22 ea Exp $
; ;
; ReactOS Operating System ; ReactOS Operating System
; ;
@ -484,6 +484,7 @@ RtlLockHeap=RtlLockHeap@4
RtlMoveMemory=RtlMoveMemory@12 RtlMoveMemory=RtlMoveMemory@12
RtlMultiByteToUnicodeN=RtlMultiByteToUnicodeN@20 RtlMultiByteToUnicodeN=RtlMultiByteToUnicodeN@20
RtlNtStatusToDosError RtlNtStatusToDosError
RtlNtStatusToPsxErrno=RtlNtStatusToPsxErrno@4
RtlOemStringToUnicodeSize=RtlOemStringToUnicodeSize@4 RtlOemStringToUnicodeSize=RtlOemStringToUnicodeSize@4
RtlOemStringToUnicodeString=RtlOemStringToUnicodeString@12 RtlOemStringToUnicodeString=RtlOemStringToUnicodeString@12
RtlOemToUnicodeN=RtlOemToUnicodeN@20 RtlOemToUnicodeN=RtlOemToUnicodeN@20

View file

@ -1,4 +1,5 @@
/* /* $Id: error.c,v 1.2 1999/12/04 21:02:25 ea Exp $
*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* PURPOSE: Rtl error functions * PURPOSE: Rtl error functions
@ -6,6 +7,7 @@
* PROGRAMER: Eric Kohl * PROGRAMER: Eric Kohl
* REVISION HISTORY: * REVISION HISTORY:
* 22/07/99: Added RtlNtStatusToDosError. * 22/07/99: Added RtlNtStatusToDosError.
* 1999-11-30: Added RtlNtStatusToPsxErrno.
*/ */
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
@ -616,3 +618,41 @@ STATUS_VERIFY_REQUIRED ERROR_MEDIA_CHANGED
return(0); return(0);
} }
/**********************************************************************
* NAME EXPORTED
* RtlNtStatusToPsxErrno
*
* DESCRIPTION
* Convert an Execute 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
*/
INT
STDCALL
RtlNtStatusToPsxErrno (
IN NTSTATUS Status
)
{
#if 0
switch (Status)
{
}
#endif
return -1; /* generic POSIX error */
}
/* EOF */