diff options
author | Jeremy Allison <jra@samba.org> | 2007-06-20 01:26:18 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-06-20 01:26:18 +0000 |
commit | e919a4da9c6be508ca7cf4a031745e6c2230cd85 (patch) | |
tree | 5ec23896034c442e1a5501018e3e4ddfc47e9fc7 /source/lib/errmap_unix.c | |
parent | e6b22eebd97c3fa498ea8e6a9af26a19336b0b7a (diff) | |
download | samba-e919a4da9c6be508ca7cf4a031745e6c2230cd85.tar.gz samba-e919a4da9c6be508ca7cf4a031745e6c2230cd85.tar.xz samba-e919a4da9c6be508ca7cf4a031745e6c2230cd85.zip |
r23550: Add more UNIX error -> NT status mappings.
Jeremy.
Diffstat (limited to 'source/lib/errmap_unix.c')
-rw-r--r-- | source/lib/errmap_unix.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/source/lib/errmap_unix.c b/source/lib/errmap_unix.c index 0c5d3246e27..8ec0e5facac 100644 --- a/source/lib/errmap_unix.c +++ b/source/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 } }; |