r11546: add more errno ntstatus mappings, to get more usefull errors from socket_wrapper
authorStefan Metzmacher <metze@samba.org>
Mon, 7 Nov 2005 11:44:08 +0000 (11:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:45:52 +0000 (13:45 -0500)
metze
(This used to be commit 6375a9a95da1eb2d5fd60b265047d98b264ff93f)

source4/libcli/util/errormap.c

index 99154d2cb0cd00aca6e0fdec7e11c0c5491eddb8..526e9085c9ffe6694c7836e41cf2260377287e57 100644 (file)
@@ -1319,6 +1319,21 @@ const struct unix_error_map unix_nt_errmap[] = {
 #endif
 #ifdef EFBIG
        { EFBIG,        NT_STATUS_DISK_FULL },
+#endif
+#ifdef EADDRNOTAVAIL
+       { EADDRNOTAVAIL,NT_STATUS_ADDRESS_NOT_ASSOCIATED },
+#endif
+#ifdef ESOCKTNOSUPPORT
+       { ESOCKTNOSUPPORT,NT_STATUS_INVALID_PARAMETER_MIX },
+#endif
+#ifdef EAFNOSUPPORT
+       { EAFNOSUPPORT, NT_STATUS_INVALID_PARAMETER_MIX },
+#endif
+#ifdef ENOPROTOOPT
+       { ENOPROTOOPT,  NT_STATUS_INVALID_PARAMETER_MIX },
+#endif
+#ifdef ENODEV
+       { ENODEV,       NT_STATUS_NO_SUCH_DEVICE },
 #endif
        { 0, NT_STATUS_UNSUCCESSFUL }
 };