From c4a0e36143fed4ca2ba29ddc1b52dd6e22d713fb Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 7 Nov 2005 11:44:08 +0000 Subject: r11546: add more errno ntstatus mappings, to get more usefull errors from socket_wrapper metze (This used to be commit 6375a9a95da1eb2d5fd60b265047d98b264ff93f) --- source4/libcli/util/errormap.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source4') diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c index 99154d2cb0..526e9085c9 100644 --- a/source4/libcli/util/errormap.c +++ b/source4/libcli/util/errormap.c @@ -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 } }; -- cgit