summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-03-22 19:39:31 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-03-22 19:39:31 +0000
commit38794e945effa1b0626642ea1a80b74d9cf7e8f2 (patch)
tree7b5f43833593f076c2183c61ab77bf76d2d05a48 /source3/libsmb
parenta9aa2cb025e382ac5801d78462cc6e017e41a438 (diff)
downloadsamba-38794e945effa1b0626642ea1a80b74d9cf7e8f2.tar.gz
samba-38794e945effa1b0626642ea1a80b74d9cf7e8f2.tar.bz2
samba-38794e945effa1b0626642ea1a80b74d9cf7e8f2.zip
Don't use errno's when they're not available
(This used to be commit b757a4374832d76500a889e4785622320881018d)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clierror.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c
index 3889976070..4f80f274d9 100644
--- a/source3/libsmb/clierror.c
+++ b/source3/libsmb/clierror.c
@@ -232,12 +232,19 @@ static struct {
{NT_STATUS_NOT_IMPLEMENTED, ENOSYS},
{NT_STATUS_IN_PAGE_ERROR, EFAULT},
{NT_STATUS_PAGEFILE_QUOTA, EDQUOT},
+#ifdef ETIME
{NT_STATUS_TIMER_NOT_CANCELED, ETIME},
+#endif
{NT_STATUS_INVALID_PARAMETER, EINVAL},
{NT_STATUS_NO_SUCH_DEVICE, ENODEV},
{NT_STATUS_NO_SUCH_FILE, ENOENT},
+#ifdef ENODATA
{NT_STATUS_END_OF_FILE, ENODATA},
+#endif
+#ifdef ENOMEDIUM
{NT_STATUS_NO_MEDIA_IN_DEVICE, ENOMEDIUM},
+ {NT_STATUS_NO_MEDIA, ENOMEDIUM},
+#endif
{NT_STATUS_NONEXISTENT_SECTOR, ESPIPE},
{NT_STATUS_NO_MEMORY, ENOMEM},
{NT_STATUS_CONFLICTING_ADDRESSES, EADDRINUSE},
@@ -270,13 +277,16 @@ static struct {
{NT_STATUS_TOO_MANY_LINKS, EMLINK},
{NT_STATUS_NETWORK_BUSY, EBUSY},
{NT_STATUS_DEVICE_DOES_NOT_EXIST, ENODEV},
+#ifdef ELIBACC
{NT_STATUS_DLL_NOT_FOUND, ELIBACC},
+#endif
{NT_STATUS_PIPE_BROKEN, EPIPE},
{NT_STATUS_REMOTE_NOT_LISTENING, ECONNREFUSED},
{NT_STATUS_NETWORK_ACCESS_DENIED, EACCES},
{NT_STATUS_TOO_MANY_OPENED_FILES, EMFILE},
+#ifdef EPROTO
{NT_STATUS_DEVICE_PROTOCOL_ERROR, EPROTO},
- {NT_STATUS_NO_MEDIA, ENOMEDIUM},
+#endif
{NT_STATUS_FLOAT_OVERFLOW, ERANGE},
{NT_STATUS_FLOAT_UNDERFLOW, ERANGE},
{NT_STATUS_INTEGER_OVERFLOW, ERANGE},
@@ -292,15 +302,19 @@ static struct {
{NT_STATUS_REMOTE_DISCONNECT, ESHUTDOWN},
{NT_STATUS_CONNECTION_DISCONNECTED, ECONNABORTED},
{NT_STATUS_CONNECTION_RESET, ENETRESET},
+#ifdef ENOTUNIQ
{NT_STATUS_IP_ADDRESS_CONFLICT1, ENOTUNIQ},
{NT_STATUS_IP_ADDRESS_CONFLICT2, ENOTUNIQ},
+#endif
{NT_STATUS_PORT_MESSAGE_TOO_LONG, EMSGSIZE},
{NT_STATUS_PROTOCOL_UNREACHABLE, ENOPROTOOPT},
{NT_STATUS_ADDRESS_ALREADY_EXISTS, EADDRINUSE},
{NT_STATUS_PORT_UNREACHABLE, EHOSTUNREACH},
{NT_STATUS_IO_TIMEOUT, ETIMEDOUT},
{NT_STATUS_RETRY, EAGAIN},
+#ifdef ECOMM
{NT_STATUS_NET_WRITE_FAULT, ECOMM},
+#endif
{NT_STATUS(0), 0}
};