From 4b70175e1120aa39919e91769495954ee554c0ab Mon Sep 17 00:00:00 2001 From: Emanuele Aliberti Date: Sat, 4 Dec 1999 21:03:22 +0000 Subject: [PATCH] RtlNtStatusToPsxErrno stub added. svn path=/trunk/; revision=823 --- reactos/lib/ntdll/def/ntdll.def | 3 ++- reactos/lib/ntdll/def/ntdll.edf | 3 ++- reactos/lib/ntdll/rtl/error.c | 42 ++++++++++++++++++++++++++++++++- 3 files changed, 45 insertions(+), 3 deletions(-) diff --git a/reactos/lib/ntdll/def/ntdll.def b/reactos/lib/ntdll/def/ntdll.def index 61bef31e5eb..7e878c14d51 100644 --- a/reactos/lib/ntdll/def/ntdll.def +++ b/reactos/lib/ntdll/def/ntdll.def @@ -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 diff --git a/reactos/lib/ntdll/def/ntdll.edf b/reactos/lib/ntdll/def/ntdll.edf index dc88a6fe6f4..c71faa3fde1 100644 --- a/reactos/lib/ntdll/def/ntdll.edf +++ b/reactos/lib/ntdll/def/ntdll.edf @@ -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 diff --git a/reactos/lib/ntdll/rtl/error.c b/reactos/lib/ntdll/rtl/error.c index b3b88e8d5b9..e859e75f9b5 100644 --- a/reactos/lib/ntdll/rtl/error.c +++ b/reactos/lib/ntdll/rtl/error.c @@ -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 */