From patchwork Wed Feb 20 15:34:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 158818 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5060498jaa; Wed, 20 Feb 2019 07:34:46 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibhln86jlnvRZG/GhvCPDLj0Nb96NaFYw+Z7U3DRLbidgGp1vkym6PY5uW3XHBfy5Ov5JQr X-Received: by 2002:a50:bb2c:: with SMTP id y41mr27719602ede.147.1550676886323; Wed, 20 Feb 2019 07:34:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550676886; cv=none; d=google.com; s=arc-20160816; b=e2DSG2x95agEnPF2Sanpl1Q9aJTTRlUjEDWP0WwQ61tlxoVOOpYaB+TOJec0lsQDSc LrMTE6dsGyjlNwSlK8ROn3Wb9lNwnEwSmZ+wLw776TEJMKxDtBJ0iHXnkyNBzEiIp9qU yp3vkW40QKiph2du9Ox5BuylSSdYlnsOzdzjNg1/mkqLa2YPSWIvHAM8gnW5hnysVtdY hbYmNJ44lBqDD2CqcBxRK5QbNZdsN9RXcETAJEKf3Tv78BHDNNv0qqD0wrq1LqT9defD n3yC/9w7PGYVNlj47tsk9FkXGo5Yz8vrX1MHRSHRxY4nehtQ3NILR6SAPuVSa9Z17eBM iplw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=DQEy8/R/m9ACE6asOUUc2xLYIDqBAplmHmIBsjYCcEE=; b=duCJTzjaioTQaMIRDcmv45yubxWknWfatwDgOzv7GT8xA7BfWJVmPtqofqpJ024NkM KghcGTOoVSSUlns48gbFYMtvUZnk3IHwJAh5sCRlBHbALLAP5owU/6fxsMZWN3mcZMoK RicO0iypUjboBR/rf+uSbQQ4VIKk+E0jFx3Iz3al8GEDlqS5Iqgsi+x7kcAZKgQ9EyTA 1fQCLgdk0uF+5BR8YQ2sHrQYXlWSmhzwi4sa3c3HvqAF0kOgl97HznCnaK9aHCwQrGTo dViE7yktVS80KinMzQ1eghpAqDAok9j1g4gzXZ4NGZaE6PdN40V0L90tdMBP0y8hrd8W f9vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SH2Mib+2; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 2001:1418:10:5::2 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from picard.linux.it (picard.linux.it. [2001:1418:10:5::2]) by mx.google.com with ESMTPS id k3si4907079ejd.66.2019.02.20.07.34.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Feb 2019 07:34:46 -0800 (PST) Received-SPF: pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 2001:1418:10:5::2 as permitted sender) client-ip=2001:1418:10:5::2; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SH2Mib+2; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 2001:1418:10:5::2 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id BD1103EAB0C for ; Wed, 20 Feb 2019 16:34:45 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2]) by picard.linux.it (Postfix) with ESMTP id 8D64F3EA184 for ; Wed, 20 Feb 2019 16:34:41 +0100 (CET) Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id E1F3C602332 for ; Wed, 20 Feb 2019 16:34:40 +0100 (CET) Received: by mail-ot1-x344.google.com with SMTP id v62so31958285otb.3 for ; Wed, 20 Feb 2019 07:34:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dQ44aanzVwMbImxI1JRc8jLXwrH6glvSgeTm48Vh/NU=; b=SH2Mib+2o1/A07PDkRXXCg5QlzqeQBM+mYWATAT7dtUqWlzm6PzwWF4tg/9QZk6k+S A6IzvSMqCPhkDHXi2+hdg7IhgoD/n3d9QAioEtFpS1aVGBHSQ9jzf7Ypi8cvwUvXYt8p XyYPEi5lavqdOIOikWvj8hNrd5byIBrA2NVgsyIapqB7q9DnXfQnNYpGwse2Mf9kUJGh Z+pWfzloiq3AL2HNpifV1HLXWZFBzosoksm+sa6589KhydVQMxKC+RiEnlwcyylAyyTV wj9msN3H0lcmfiBusQnoetSSeTcl/Y7MZjJYFnGWCCz1M3HuVZkl9R9GCkGNDgzghx7Q nQqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dQ44aanzVwMbImxI1JRc8jLXwrH6glvSgeTm48Vh/NU=; b=lgqu6ZU5KUnGJWvwHHGd10sxc4iZ91Ir/1A34KlmRL1Wm6543VP57LzugHw7jEXaUM XxuTFYxBL0iKwnUTEbDujSVnEcsFh1bXYRFeTa+R/0h/GVPu27y7SLRo4f0WT6Q4Fpg0 HaUM73pK97g9M01ovHbHJB+rgfuDbqT0NlEvnmGuPMPrbE4cZdTg3zOj2sUozYnvivuB XnSvRqRyAr7NUFVuFu4TbQbrSUijNF4IBC2asC66GMFtYF0LCfRHs1d/MoTcPnVOiBvh EbrwVrKDxKiwaWHd4bInwGyTsP8dkTQtOCnNuaVLLRmyQzTabsxZaqFezggNSJY94aTS 2niQ== X-Gm-Message-State: AHQUAuZrXwslWU5Vd6lFWYYP/MNLQzEJm9YZncFO/RYEpINXvd5FsZYi FxBZFziNE71P5f3Babldh83OMSmNQgQ= X-Received: by 2002:a9d:58c3:: with SMTP id s3mr20253257oth.233.1550676878774; Wed, 20 Feb 2019 07:34:38 -0800 (PST) Received: from alago.cortijodelrio.net (CableLink-189-218-30-19.Hosts.InterCable.net. [189.218.30.19]) by smtp.googlemail.com with ESMTPSA id 60sm3116833otw.50.2019.02.20.07.34.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Feb 2019 07:34:37 -0800 (PST) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: ltp@lists.linux.it Date: Wed, 20 Feb 2019 09:34:10 -0600 Message-Id: <20190220153412.18090-1-daniel.diaz@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-2.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-2.smtp.seeweb.it Subject: [LTP] [PATCH 1/3] Add header file lapi/signal.h X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+patch=linaro.org@lists.linux.it Sender: "ltp" Some libc implementations might differ in the definitions they include. Exempli gratia: MUSL does not define __SIGRTMAX nor __SIGRTMIN. This header covers those differences for all tests that require those definitions. Signed-off-by: Daniel Díaz --- include/lapi/signal.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/lapi/signal.h diff --git a/include/lapi/signal.h b/include/lapi/signal.h new file mode 100644 index 000000000..d22965a94 --- /dev/null +++ b/include/lapi/signal.h @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) 2019 Linaro Limited. All rights reserved. + * Author: Daniel Díaz + */ + +#ifndef LAPI_SIGNAL_H +#define LAPI_SIGNAL_H + +#include + +/* + * Some libc implementations might differ in the definitions they include. This + * covers those differences for all tests to successfully build. + */ + +#ifndef __SIGRTMIN +# define __SIGRTMIN 32 +#endif +#ifndef __SIGRTMAX +# define __SIGRTMAX (_NSIG - 1) +#endif + +#endif