svn commit: samba r18968 - in branches/SAMBA_4_0/source/libcli/util: .

tridge at samba.org tridge at samba.org
Thu Sep 28 01:17:17 GMT 2006


Author: tridge
Date: 2006-09-28 01:17:16 +0000 (Thu, 28 Sep 2006)
New Revision: 18968

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18968

Log:

EWOULDBLOCK should also be mapped to STATUS_MORE_ENTRIES

Modified:
   branches/SAMBA_4_0/source/libcli/util/errormap.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/util/errormap.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/util/errormap.c	2006-09-28 00:06:10 UTC (rev 18967)
+++ branches/SAMBA_4_0/source/libcli/util/errormap.c	2006-09-28 01:17:16 UTC (rev 18968)
@@ -1262,6 +1262,10 @@
 const struct unix_error_map unix_nt_errmap[] = {
 	{ EAGAIN,       STATUS_MORE_ENTRIES },
 	{ EINTR,        STATUS_MORE_ENTRIES },
+	{ ENOBUFS,      STATUS_MORE_ENTRIES },
+#ifdef EWOULDBLOCK
+	{ EWOULDBLOCK,  STATUS_MORE_ENTRIES },
+#endif
 	{ EINPROGRESS,  NT_STATUS_MORE_PROCESSING_REQUIRED },
 	{ EPERM,        NT_STATUS_ACCESS_DENIED },
 	{ EACCES,       NT_STATUS_ACCESS_DENIED },
@@ -1278,7 +1282,6 @@
 	{ ENOTSOCK,     NT_STATUS_INVALID_HANDLE },
 	{ EFAULT,       NT_STATUS_INVALID_PARAMETER },
 	{ EMSGSIZE,     NT_STATUS_INVALID_BUFFER_SIZE },
-	{ ENOBUFS,      STATUS_MORE_ENTRIES },
 	{ ENOMEM,       NT_STATUS_NO_MEMORY },
 	{ EPIPE,        NT_STATUS_CONNECTION_DISCONNECTED },
 	{ ECONNREFUSED, NT_STATUS_CONNECTION_REFUSED },



More information about the samba-cvs mailing list