From patchwork Tue May 3 10:55:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 9002731 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CA5AD9F372 for ; Tue, 3 May 2016 10:57:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0CCDD20222 for ; Tue, 3 May 2016 10:57:22 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 361FD201C7 for ; Tue, 3 May 2016 10:57:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axXz8-0000UM-MO; Tue, 03 May 2016 10:55:22 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axXz7-0000U0-Bk for xen-devel@lists.xenproject.org; Tue, 03 May 2016 10:55:21 +0000 Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id 6A/08-28710-89388275; Tue, 03 May 2016 10:55:20 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIIsWRWlGSWpSXmKPExsXitHRDpO6MZo1 wg1+3BC2+b5nM5MDocfjDFZYAxijWzLyk/IoE1ozj976zF7xjq5hzZh1zA+MX1i5GTg4JAX+J 4x/2sYDYbAI6Ehfn7mTrYuTgEBFQkbi91wAkzCxQLPF1VR9YubBAtMSPyUfYQWwWoJKHs7uZQ WxeAReJg3u+skCM1JU4uXsTO8gYTgFXicZ7YGOEgEpmTuhlgygXlDg58wkLxHhNidbtv9khbH mJ5q2zmSHqFSX65z0Au0ZCgFvib7f9BEb+WUi6ZyHpnoWkewEj8ypG9eLUorLUIl1jvaSizPS MktzEzBxdQwNTvdzU4uLE9NScxKRiveT83E2MwOBjAIIdjHv/OR1ilORgUhLllbirHi7El5Sf UpmRWJwRX1Sak1p8iFGGg0NJgpepSSNcSLAoNT21Ii0zBxgHMGkJDh4lEd6zjUBp3uKCxNziz HSI1ClGXY4FP26vZRJiycvPS5US5/0PUiQAUpRRmgc3AhaTlxhlpYR5GYGOEuIpSC3KzSxBlX /FKM7BqCTMKwJyCU9mXgncpldARzABHZG9XhXkiJJEhJRUA+Py9jjB+sef1L8s/+D+g2NqoPr 9pCsHXnlzXCiO0XmYzPrrzPmWbyzPpnAxtV4qfM20yuD+L59EPY8rFybKz7GtcFSSytz/XuLj nGdWHZK7bHpXfmQ+vl3oV2CS4CuNc4dFN81uOdma7uCY8Mf6n3/9nJ3u5S3xiZyTWVJz900Vz VITk9XoYVFiKc5INNRiLipOBAD3vkUUxAIAAA== X-Env-Sender: prvs=924d4b44a=roger.pau@citrix.com X-Msg-Ref: server-13.tower-206.messagelabs.com!1462272918!33733871!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 63416 invoked from network); 3 May 2016 10:55:19 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-13.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 3 May 2016 10:55:19 -0000 X-IronPort-AV: E=Sophos;i="5.24,572,1454976000"; d="scan'208";a="351336721" From: Roger Pau Monne To: Date: Tue, 3 May 2016 12:55:05 +0200 Message-ID: <1462272910-41200-2-git-send-email-roger.pau@citrix.com> X-Mailer: git-send-email 2.6.4 (Apple Git-63) In-Reply-To: <1462272910-41200-1-git-send-email-roger.pau@citrix.com> References: <1462272910-41200-1-git-send-email-roger.pau@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Wei Liu , Ian Jackson , Roger Pau Monne Subject: [Xen-devel] [PATCH v2 for-4.7 1/6] libxl: add a define for equivalent ENODATA errno on FreeBSD X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently FreeBSD lacks the ENODATA errno value, so the privcmd driver always translates ENODATA to ENOENT, add a define to libxl in order to correctly match ENODATA with ENOENT on FreeBSD. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu --- Cc: Ian Jackson Cc: Wei Liu --- tools/libxl/libxl_osdeps.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/libxl/libxl_osdeps.h b/tools/libxl/libxl_osdeps.h index 10ce703..a40d620 100644 --- a/tools/libxl/libxl_osdeps.h +++ b/tools/libxl/libxl_osdeps.h @@ -52,6 +52,13 @@ #include #include #include +/* + * FreeBSD doesn't have ENODATA errno ATM, so privcmd always translates + * ENODATA into ENOENT. + */ +#ifndef ENODATA +#define ENODATA ENOENT +#endif #endif #ifndef SYSFS_USBBACK_DRIVER