From: Ian Jackson Subject: Re: [PATCH for-4.6 2/3] libxl/psr: use Xen error codes when checking hypercall return values Date: Tue, 21 Jul 2015 12:15:44 +0100 Message-ID: <21934.10720.172223.582437@mariner.uk.xensource.com> References: <1437404102-7807-1-git-send-email-roger.pau@citrix.com> <1437404102-7807-3-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZHVWa-000563-8V for xen-devel@lists.xenproject.org; Tue, 21 Jul 2015 11:15:52 +0000 In-Reply-To: <1437404102-7807-3-git-send-email-roger.pau@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: xen-devel@lists.xenproject.org, Wei Liu , Ian Campbell List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("[PATCH for-4.6 2/3] libxl/psr: use Xen error codes= when checking hypercall return values"): > We cannot use the systems errno values when checking return values from X= en, > because some OSes don't have the same set of errno definitions. Instead > use the definitions present in Xen public errno.h header. > = > Signed-off-by: Roger Pau Monn=E9 > Cc: Ian Jackson > Cc: Ian Campbell > Cc: Wei Liu Acked-by: Ian Jackson > I have not checked if there are other places in libxl that need similar > treatment, I just came around this because FreeBSD doesn't have EBADSLT > defined. Right. There is probably more of this, but that's not a blocker for this patch. Maybe it would be worth mentioning this issue in CODING_STYLE. Ian.