From patchwork Tue Jan 31 14:19:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chung-Lin Tang X-Patchwork-Id: 19064 Received: (qmail 84030 invoked by alias); 31 Jan 2017 14:19:51 -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 83985 invoked by uid 89); 31 Jan 2017 14:19:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=Nios, H*r:ip*0.0.0.0, nios, H*M:7b60 X-HELO: relay1.mentorg.com To: GNU C Library From: Chung-Lin Tang Subject: [PATCH, nios2, committed] Add ipc_priv.h to set __IPC_64 as zero. Message-ID: <296528b3-7cca-4a8e-7b60-50c58574f71e@mentor.com> Date: Tue, 31 Jan 2017 22:19:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 Similar to Tile [1] and a few other archs, Nios II does not set CONFIG_ARCH_WANT_IPC_PARSE_VERSION in the kernel. Committed patch adds the similar ipc_priv.h header to define __IPC_64 as zero. Chung-Lin [1] https://sourceware.org/ml/libc-alpha/2017-01/msg00258.html 2017-01-31 Chung-Lin Tang * sysdeps/unix/sysv/linux/nios2/ipc_priv.h: New file. diff --git a/sysdeps/unix/sysv/linux/nios2/ipc_priv.h b/sysdeps/unix/sysv/linux/nios2/ipc_priv.h new file mode 100644 index 0000000..d5c6c0a --- /dev/null +++ b/sysdeps/unix/sysv/linux/nios2/ipc_priv.h @@ -0,0 +1,21 @@ +/* Old SysV permission definition for Linux. Nios II 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