diff options
-rw-r--r-- | source3/libsmb/clierror.c | 16 |
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} }; |