[prev in list] [next in list] [prev in thread] [next in thread]
List: xen-cvs
Subject: [Xen-changelog] [xen stable-4.6] errno: declare aliases using XEN_ERRNO()
From: patchbot () xen ! org
Date: 2019-06-26 10:12:44
Message-ID: E1hg4uy-00009C-0m () xenbits ! xenproject ! org
[Download RAW message or body]
commit 72ae0156ceb5317de2a1a60c0233710e63194154
Author: Andrew Cooper <andrew.cooper3@citrix.com>
AuthorDate: Thu Mar 3 09:50:11 2016 +0100
Commit: Ian Jackson <ian.jackson@eu.citrix.com>
CommitDate: Wed May 29 12:08:10 2019 +0100
errno: declare aliases using XEN_ERRNO()
Otherwise a custom XEN_ERRNO definition will not end up creating appropriately
namespaced constants for the aliases.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 03720ea541382a3ca80eaaec2aa11932b03aacaf)
---
xen/include/public/errno.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/xen/include/public/errno.h b/xen/include/public/errno.h
index c3481a5ef8..dbac396798 100644
--- a/xen/include/public/errno.h
+++ b/xen/include/public/errno.h
@@ -42,6 +42,7 @@ XEN_ERRNO(ENOEXEC, 8) /* Exec format error */
XEN_ERRNO(EBADF, 9) /* Bad file number */
XEN_ERRNO(ECHILD, 10) /* No child processes */
XEN_ERRNO(EAGAIN, 11) /* Try again */
+XEN_ERRNO(EWOULDBLOCK, 11) /* Operation would block. Aliases EAGAIN */
XEN_ERRNO(ENOMEM, 12) /* Out of memory */
XEN_ERRNO(EACCES, 13) /* Permission denied */
XEN_ERRNO(EFAULT, 14) /* Bad address */
@@ -59,6 +60,7 @@ XEN_ERRNO(EMLINK, 31) /* Too many links */
XEN_ERRNO(EDOM, 33) /* Math argument out of domain of func */
XEN_ERRNO(ERANGE, 34) /* Math result not representable */
XEN_ERRNO(EDEADLK, 35) /* Resource deadlock would occur */
+XEN_ERRNO(EDEADLOCK, 35) /* Resource deadlock would occur. Aliases EDEADLK */
XEN_ERRNO(ENAMETOOLONG, 36) /* File name too long */
XEN_ERRNO(ENOLCK, 37) /* No record locks available */
XEN_ERRNO(ENOTEMPTY, 39) /* Directory not empty */
@@ -92,7 +94,4 @@ XEN_ERRNO(ETIMEDOUT, 110) /* Connection timed out */
};
#endif
-#define XEN_EWOULDBLOCK XEN_EAGAIN /* Operation would block */
-#define XEN_EDEADLOCK XEN_EDEADLK /* Resource deadlock would occur */
-
#endif /* __XEN_PUBLIC_ERRNO_H__ */
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.6
_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xenproject.org
https://lists.xenproject.org/xen-changelog
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic