From patchwork Tue Mar 7 08:19:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 94950 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp1782829qgd; Tue, 7 Mar 2017 00:19:37 -0800 (PST) X-Received: by 10.98.223.76 with SMTP id u73mr26708050pfg.147.1488874777044; Tue, 07 Mar 2017 00:19:37 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id z62si21722181pgb.391.2017.03.07.00.19.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Mar 2017 00:19:37 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-return-77717-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-77717-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-77717-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=HYVNGwI+QcHyr3ABkIqdX25vVjiSussuxW3hBMTrvGm3Xkx3xFefW /rrAPcCGbBhVnstRZ0VdfjH5ofUVDNAY9Ye5H0Jkb34hyRTj2AJSXDLN9vcX1aot AuoJV7DmUj1HhW3Ytvc3jEqE2W/CoMiK2wqrgdVIXf6zBzhN7T5Uc8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=qu+vohTAgGxziOg7SbAJkn6vZow=; b=E24vh4VHdCcM8eO/vDifKB1CaMtN zRoiXRnBrnfnhLQMPyplApSYKNd1gFQTZMpVj51+aLbEyJ4sJRFN/twZN/utc68m zUsxl+J9Ffghj82/3neygv7bKgCuuexJSuHJvqqR3Evjfpc8MhsBOr6YXYYSGqJc 3iK7+9KRU6f+fzo= Received: (qmail 67824 invoked by alias); 7 Mar 2017 08:19:27 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 67810 invoked by uid 89); 7 Mar 2017 08:19:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=IPC, Hx-languages-length:1814 X-HELO: mail-wm0-f47.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=03Ahw9JbqPVbiapuRAJHGSpxVRf5JA5ypVaAyfOkOCI=; b=QkOB49zjV90SqqtPRXihoUImuUZO6MZoWYgopSAc7a0MEZIZP+RxLUUmUIU4cdeW53 lI+IXqm+xomPA4gnradoQnS/FLNPiC20DjzfpXLcNDBawqxxBNXPCPVG9Z/LN1tNUgb1 oAaLo62LBED2bOMJn/EnLni2CMXuS68TmUVLVTrbcwSTbIxCmtejWP7X4335eO4GW0sJ Hha0Ol9xfA+q6z9/OrUnWrKxRB9dChRo74U3EKD3NS22HvxSfhCV0SZl3vfUvGeHXLPU gMXSJf/fvvr+n5bJ1gjnPmaNgMU4AqQAz7MB6HCvxVrsOflvXlTXF6jmSD+T9TS9Pt8Z HXew== X-Gm-Message-State: AMke39m5TXteMZsMhfSqr8TA46d37MvWdpElAPPI5SPsUnfG0xGf1GQJ9FoasSFsQ2fUxwLY X-Received: by 10.28.181.80 with SMTP id e77mr16987542wmf.57.1488874757430; Tue, 07 Mar 2017 00:19:17 -0800 (PST) From: Adhemerval Zanella X-Google-Original-From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH] hppa: set __IPC_64 as zero for SysV IPC calls (committed) Date: Tue, 7 Mar 2017 09:19:13 +0100 Message-Id: <1488874753-6451-1-git-send-email-adhemerval.zanella@linaro.com> In 1e5834c38a22 ("Refactor Linux ipc_priv header") a different approach to passing __IPC_64 as zero was created. Hppa kernel ABI requires to pass __IPC_64 as zero since it does not set CONFIG_ARCH_WANT_IPC_PARSE_VERSION in the kernel. Checked on hppa-linux-gnu with some adjustments to avoid BZ#21016 (basically by removing hppa compat implementations and adjusting required headers). * sysdeps/unix/sysv/linux/hppa/ipc_priv.h: New file. --- ChangeLog | 4 ++++ sysdeps/unix/sysv/linux/hppa/ipc_priv.h | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/hppa/ipc_priv.h -- 2.7.4 diff --git a/sysdeps/unix/sysv/linux/hppa/ipc_priv.h b/sysdeps/unix/sysv/linux/hppa/ipc_priv.h new file mode 100644 index 0000000..d880f50 --- /dev/null +++ b/sysdeps/unix/sysv/linux/hppa/ipc_priv.h @@ -0,0 +1,21 @@ +/* Old SysV permission definition for Linux. Hppa version. + Copyright (C) 2017 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include /* For __key_t */ + +#define __IPC_64 0x0