From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] eal: fix API to get error string Date: Fri, 2 Nov 2018 17:19:10 +0000 Message-ID: <15e39cbd-a7ea-47f0-4164-ac79b866e507@intel.com> References: <20181031171928.61110-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, stable@dpdk.org, Jerin Jacob , Thomas Monjalon To: Bruce Richardson Return-path: In-Reply-To: <20181031171928.61110-1-ferruh.yigit@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/31/2018 5:19 PM, Ferruh Yigit wrote: > rte_strerror uses strerror_r(), and strerror_r() has two version of it. > - XSI-compliant version, (_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE > - GNU-specific version > > Those two has different return types, so the exiting return type check > is not correct for GNU-specific version. > > And this is causing failure in errno_autotest unit test. > > Adding different implementation for FreeBSD and Linux. > > Fixes: 016c32bd3e3d ("eal: cleanup strerror function") > Cc: stable@dpdk.org > > Signed-off-by: Ferruh Yigit self Nack, in favor of http://patches.dpdk.org/patch/47706/