update for HEAD-2003091401
[reactos.git] / lib / ntdll / rtl / error.c
index 6eb801e..808c647 100644 (file)
@@ -7,7 +7,6 @@
  * PROGRAMER:         Eric Kohl
  * REVISION HISTORY:
  *                    22/07/99: Added RtlNtStatusToDosError.
- *     1999-11-30: Added RtlNtStatusToPsxErrno.
  *     1999-12-18: STDCALL RtlNtStatusToDosError
  */
 
@@ -824,14 +823,15 @@ RPC_NT_SS_CONTEXT_MISMATCH           ERROR_INVALID_HANDLE
 
 /* FUNCTIONS ***************************************************************/
 
+/*
+ * @implemented
+ */
 VOID
 STDCALL
-RtlAssert (
-       PVOID FailedAssertion,
+RtlAssert(PVOID FailedAssertion,
        PVOID FileName,
        ULONG LineNumber,
-       PCHAR Message
-       )
+       PCHAR Message)
 {
        DbgPrint ("Assertion \'%s\' failed at %s line %d: %s\n",
                  (PCHAR)FailedAssertion,
@@ -881,9 +881,9 @@ RtlNtStatusToDosErrorNoTeb(NTSTATUS Status)
                        if (!ret)
                                ret = Status;  /* 0 means 1:1 mapping */
                        else if (ret == ERROR_MR_MID_NOT_FOUND)
-                         {
+                       {
                            DbgPrint("RTL: RtlNtStatusToDosErrorNoTeb(0x%lx): no valid W32 error mapping\n", Status);
-                         }
+                       }
                        return ret;
                }
                Table++;
@@ -916,6 +916,8 @@ RtlNtStatusToDosErrorNoTeb(NTSTATUS Status)
  *
  * REMARK
  *     RtlNtStatusToDosErrorNoTeb() does the real work.
+ *
+ * @implemented
  */
 DWORD STDCALL
 RtlNtStatusToDosError(NTSTATUS Status)
@@ -928,38 +930,4 @@ RtlNtStatusToDosError(NTSTATUS Status)
     }
   return RtlNtStatusToDosErrorNoTeb(Status);
 }
-
-
-/**********************************************************************
- * 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
- */
-INT STDCALL
-RtlNtStatusToPsxErrno(IN NTSTATUS Status)
-{
-#if 0
-  switch (Status)
-    {
-    }
-#endif
-  return -1; /* generic POSIX error */
-}
-
 /* EOF */