s4-errors: Import error maps from the source3/ unix -> ntstatus mapping
authorAndrew Bartlett <abartlet@samba.org>
Fri, 17 Jun 2011 07:07:26 +0000 (17:07 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Jun 2011 08:22:07 +0000 (10:22 +0200)
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 <abartlet@samba.org>
Autobuild-Date: Fri Jun 17 10:22:07 CEST 2011 on sn-devel-104

source4/libcli/util/errormap.c

index a264a25950faf0753f73953cef17a55f624dc0c9..6476426d7fca7d9e36b2fcc30c5440ab7cb5f2d4 100644 (file)
@@ -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