From b5984d70996e1392369bdb3ad76da0ed0cf26160 Mon Sep 17 00:00:00 2001 From: Emanuele Aliberti Date: Fri, 22 Aug 2003 13:55:15 +0000 Subject: [PATCH] PSXDLL: RtlNtStatusToPsxErrno moved to PSX subsystem client library from NTDLL. svn path=/trunk/; revision=5753 --- posix/lib/psxdll/errno/errno.c | 35 +++++++++++++++++++++++++++++++++- posix/lib/psxdll/psxdll.def | 3 ++- posix/lib/psxdll/psxdll.edf | 3 ++- 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/posix/lib/psxdll/errno/errno.c b/posix/lib/psxdll/errno/errno.c index d90152553bd..aca467c797b 100644 --- a/posix/lib/psxdll/errno/errno.c +++ b/posix/lib/psxdll/errno/errno.c @@ -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 */ diff --git a/posix/lib/psxdll/psxdll.def b/posix/lib/psxdll/psxdll.def index c45d13d75c0..b40e1208b3c 100644 --- a/posix/lib/psxdll/psxdll.def +++ b/posix/lib/psxdll/psxdll.def @@ -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 diff --git a/posix/lib/psxdll/psxdll.edf b/posix/lib/psxdll/psxdll.edf index 9a7bfc9df94..f13da80fc1b 100644 --- a/posix/lib/psxdll/psxdll.edf +++ b/posix/lib/psxdll/psxdll.edf @@ -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