mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
RtlNtStatusToPsxErrno stub added.
svn path=/trunk/; revision=823
This commit is contained in:
parent
ba58b241e5
commit
4b70175e11
3 changed files with 45 additions and 3 deletions
|
@ -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
|
||||
;
|
||||
|
@ -487,6 +487,7 @@ RtlLockHeap@4
|
|||
RtlMoveMemory@12
|
||||
RtlMultiByteToUnicodeN@20
|
||||
RtlNtStatusToDosError
|
||||
RtlNtStatusToPsxErrno@4
|
||||
RtlOemStringToUnicodeSize@4
|
||||
RtlOemStringToUnicodeString@12
|
||||
RtlOemToUnicodeN@20
|
||||
|
|
|
@ -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
|
||||
;
|
||||
|
@ -484,6 +484,7 @@ RtlLockHeap=RtlLockHeap@4
|
|||
RtlMoveMemory=RtlMoveMemory@12
|
||||
RtlMultiByteToUnicodeN=RtlMultiByteToUnicodeN@20
|
||||
RtlNtStatusToDosError
|
||||
RtlNtStatusToPsxErrno=RtlNtStatusToPsxErrno@4
|
||||
RtlOemStringToUnicodeSize=RtlOemStringToUnicodeSize@4
|
||||
RtlOemStringToUnicodeString=RtlOemStringToUnicodeString@12
|
||||
RtlOemToUnicodeN=RtlOemToUnicodeN@20
|
||||
|
|
|
@ -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
|
||||
* PROJECT: ReactOS kernel
|
||||
* PURPOSE: Rtl error functions
|
||||
|
@ -6,6 +7,7 @@
|
|||
* PROGRAMER: Eric Kohl
|
||||
* REVISION HISTORY:
|
||||
* 22/07/99: Added RtlNtStatusToDosError.
|
||||
* 1999-11-30: Added RtlNtStatusToPsxErrno.
|
||||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
@ -616,3 +618,41 @@ STATUS_VERIFY_REQUIRED ERROR_MEDIA_CHANGED
|
|||
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 */
|
||||
|
|
Loading…
Reference in a new issue