summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-06-20 01:26:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:27 -0500
commit4a77ae5af8d50761cca27299d76d8a7c5cab9e2b (patch)
treee8dbff2d4e5ce8079f3ef21b6037db4831e6ced4
parent3b9e5d0b4f6fb010fe227dcf303fa612189dee8e (diff)
downloadsamba-4a77ae5af8d50761cca27299d76d8a7c5cab9e2b.tar.gz
samba-4a77ae5af8d50761cca27299d76d8a7c5cab9e2b.tar.bz2
samba-4a77ae5af8d50761cca27299d76d8a7c5cab9e2b.zip
r23550: Add more UNIX error -> NT status mappings.
Jeremy. (This used to be commit 1e66a8340e7db9c42507d93d67ad33abadabd2a1)
-rw-r--r--source3/lib/errmap_unix.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/source3/lib/errmap_unix.c b/source3/lib/errmap_unix.c
index 0c5d3246e2..8ec0e5faca 100644
--- a/source3/lib/errmap_unix.c
+++ b/source3/lib/errmap_unix.c
@@ -63,9 +63,34 @@ const struct unix_error_map unix_dos_nt_errmap[] = {
{ ENOBUFS, ERRDOS, ERRnomem, NT_STATUS_INSUFFICIENT_RESOURCES },
#endif
{ EAGAIN, ERRDOS, 111, NT_STATUS_NETWORK_BUSY },
+#ifdef EADDRINUSE
+ { EADDRINUSE, ERRDOS, 52, NT_STATUS_ADDRESS_ALREADY_ASSOCIATED},
+#endif
+#ifdef ENETUNREACH
+ { ENETUNREACH, ERRHRD, ERRgeneral, NT_STATUS_NETWORK_UNREACHABLE},
+#endif
+#ifdef EHOSTUNREACH
+ { EHOSTUNREACH, ERRHRD, ERRgeneral, NT_STATUS_HOST_UNREACHABLE},
+#endif
+#ifdef ECONNREFUSED
+ { ECONNREFUSED, ERRHRD, ERRgeneral, NT_STATUS_CONNECTION_REFUSED},
+#endif
+#ifdef ETIMEDOUT
+ { ETIMEDOUT, ERRHRD, 121, NT_STATUS_IO_TIMEOUT},
+#endif
+#ifdef ECONNABORTED
+ { ECONNABORTED, ERRHRD, ERRgeneral, NT_STATUS_CONNECTION_ABORTED},
+#endif
+#ifdef ENODEV
+ { ENODEV, ERRDOS, 55, NT_STATUS_DEVICE_DOES_NOT_EXIST},
+#endif
+#ifdef EPIPE
+ { EPIPE, ERRDOS, 109, NT_STATUS_PIPE_BROKEN},
+#endif
#ifdef EWOULDBLOCK
{ EWOULDBLOCK, ERRDOS, 111, NT_STATUS_NETWORK_BUSY },
#endif
+
{ 0, 0, 0, NT_STATUS_OK }
};