PSXDLL: RtlNtStatusToPsxErrno moved to PSX subsystem client library from NTDLL.
authorEmanuele Aliberti <ea@iol.it>
Fri, 22 Aug 2003 13:55:15 +0000 (13:55 +0000)
committerEmanuele Aliberti <ea@iol.it>
Fri, 22 Aug 2003 13:55:15 +0000 (13:55 +0000)
svn path=/trunk/; revision=5753

posix/lib/psxdll/errno/errno.c
posix/lib/psxdll/psxdll.def
posix/lib/psxdll/psxdll.edf

index d901525..aca467c 100644 (file)
@@ -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 */
 
index c45d13d..b40e120 100644 (file)
@@ -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
index 9a7bfc9..f13da80 100644 (file)
@@ -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