From mboxrd@z Thu Jan 1 00:00:00 1970 From: Doug Goldstein Subject: Re: [PATCH 2/4] xen/errno: Declare aliases using XEN_ERRNO() Date: Tue, 1 Mar 2016 20:38:29 -0600 Message-ID: <56D65225.20005@cardoe.com> References: <1456858641-20776-1-git-send-email-andrew.cooper3@citrix.com> <1456858641-20776-2-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1351721079786962803==" Return-path: In-Reply-To: <1456858641-20776-2-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Andrew Cooper , Xen-devel Cc: Tim Deegan , Jan Beulich List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============1351721079786962803== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3Nom8UGiVI50F3V4p1aUWfql42TWDHDhQ" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3Nom8UGiVI50F3V4p1aUWfql42TWDHDhQ Content-Type: multipart/mixed; boundary="WABGDAxLXK5dluTXP1FpJmEiWhGqaDcGG" From: Doug Goldstein To: Andrew Cooper , Xen-devel Cc: Jan Beulich , Tim Deegan Message-ID: <56D65225.20005@cardoe.com> Subject: Re: [PATCH 2/4] xen/errno: Declare aliases using XEN_ERRNO() References: <1456858641-20776-1-git-send-email-andrew.cooper3@citrix.com> <1456858641-20776-2-git-send-email-andrew.cooper3@citrix.com> In-Reply-To: <1456858641-20776-2-git-send-email-andrew.cooper3@citrix.com> --WABGDAxLXK5dluTXP1FpJmEiWhGqaDcGG Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 3/1/16 12:57 PM, Andrew Cooper wrote: > Otherwise a custom XEN_ERRNO definition will not end up creating approp= riately > namespaced constants for the aliases. >=20 > Signed-off-by: Andrew Cooper Reviewed-by: Doug Goldstein > --- > CC: Jan Beulich > CC: Tim Deegan > CC: Doug Goldstein > --- > xen/include/public/errno.h | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) >=20 > diff --git a/xen/include/public/errno.h b/xen/include/public/errno.h > index c3481a5..dbac396 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 EDE= ADLK */ > 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 > =20 > -#define XEN_EWOULDBLOCK XEN_EAGAIN /* Operation would block */ > -#define XEN_EDEADLOCK XEN_EDEADLK /* Resource deadlock would occur */ > - > #endif /* __XEN_PUBLIC_ERRNO_H__ */ >=20 --=20 Doug Goldstein --WABGDAxLXK5dluTXP1FpJmEiWhGqaDcGG-- --3Nom8UGiVI50F3V4p1aUWfql42TWDHDhQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0 iQJ8BAEBCgBmBQJW1lIlXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNTM5MEQ2RTNFMTkyNzlCNzVDMzIwOTVB MkJDMDNEQzg3RUQxQkQ0AAoJEKK8A9yH7RvUJeIP/3cgnpZZS/xn1n6/67VMQuIv icVs4L7NExTE9J+aZtnw5/kbKmw63XFe09FUsTIUeL2YwQNc9c+lykIt/tXNYrOp 24qNyH9YYW8XPbmxRdoCuModerkKk/0vfijTyQH1h8XuHjgFDR4rqpZexayTX9HA oLl0a6c3pApulyfZ4Y5bRdxec29cpnVOd+9o2/SI+bCpXCbv/mNyTvO1cVfH/qAe MC+MDHoPf4hkmp3OFPqr0puMAzQrab0cnfDrQsWUm7UL5YbtWdqg1Kcbqi6wAYRV UHTG+ACEbMLcZWPso0ur9XgeilbBswCs6ed5WfuRAc7kbHDQC7ctELPTcGrcdvI0 Cpyp4FJ3LOhBJCoVlaRbjq9opCV2ESeHLicVcQ6K1nxyofugkOvNTFLOe/DQMvWd ajALTWY2AgyhBdeVU+D1ONj7Gzdw5/KKv/I/Bl727UYHNsosk5GCb0z2mwdL/YYO Jwr1bIzXzJD1m9GHYd3T94AxqB6i7cTh07vHPT001GmY14cM+YJ0qlC5u2KODOFM aTnSWIro2JK675XYxrlUpMhkNp0J8Rc4SWjf44oMIhjmseHVn7ZPGX3WQ0dAtquW ZnfeI2Hcq+IWvbl4uPJSNc/DeRv/8y/3Om78DCcDfUIGSywIi7NOdEUG06cAgkfW BoyvNzcpIz0pUXT/bGSf =6hah -----END PGP SIGNATURE----- --3Nom8UGiVI50F3V4p1aUWfql42TWDHDhQ-- --===============1351721079786962803== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============1351721079786962803==--