From acc95354008ff11be5e59f74481228f04869095c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 17 Jun 2011 17:07:26 +1000 Subject: s4-errors: Import error maps from the source3/ unix -> ntstatus mapping We need to syncronise these mappings, as the duplication of this symobol in the build means that either may be called based only on library link orders. Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Fri Jun 17 10:22:07 CEST 2011 on sn-devel-104 --- source4/libcli/util/errormap.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source4/libcli/util') diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c index a264a25950..6476426d7f 100644 --- a/source4/libcli/util/errormap.c +++ b/source4/libcli/util/errormap.c @@ -606,10 +606,18 @@ static const struct { { ENOSYS, NT_STATUS_INVALID_SYSTEM_SERVICE }, #ifdef EOPNOTSUPP { EOPNOTSUPP, NT_STATUS_NOT_SUPPORTED}, +#endif + { EMLINK, NT_STATUS_TOO_MANY_LINKS }, + { ENOSYS, NT_STATUS_NOT_SUPPORTED }, +#ifdef ELOOP + { ELOOP, NT_STATUS_OBJECT_PATH_NOT_FOUND }, #endif #ifdef ENODATA { ENODATA, NT_STATUS_NOT_FOUND }, #endif +#ifdef EFTYPE + { EFTYPE, NT_STATUS_OBJECT_PATH_NOT_FOUND }, +#endif #ifdef EDQUOT { EDQUOT, NT_STATUS_DISK_FULL }, /* Windows apps need this, not NT_STATUS_QUOTA_EXCEEDED */ #endif @@ -652,6 +660,9 @@ static const struct { #ifdef EAFNOSUPPORT { EAFNOSUPPORT, NT_STATUS_INVALID_PARAMETER_MIX }, #endif +#ifdef ECONNABORTED + { ECONNABORTED, NT_STATUS_CONNECTION_ABORTED}, +#endif #ifdef ECONNRESET { ECONNRESET, NT_STATUS_CONNECTION_RESET}, #endif -- cgit