From patchwork Tue Sep 24 20:43:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 1166856 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-105348-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="UCEEJFrn"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46dCpj3QPMz9sNf for ; Wed, 25 Sep 2019 06:44:13 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=xfpFckIs4UO/zOyQgQKEfgD2g2feL Onk4Y/jxC4C0Tpie8OPbb1ig6Yatvw2rhoRMiJWGxSpFt9FFWEIcmGNm0k79uXMw 4wnbY4rj+yE5SJG+YqPuWcsVSvMNnJR5GOY4Tp0c5U6Ap4Ng4IMafeoPF06egDJ3 c3WKT2iN9/O1jM= 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:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=vs5puWzjro0MQj2PZm6YpulL1uM=; b=UCE EJFrnfWsoGT2N5ID2nNFvIx53zWVQirizkTgrZrcB0ul5/d18ZWUuE3gdzoRpGoJ YS0Y6fMExF4q6RNWnSIcB8FuxvdT3nQtO9n1nayeKX4HPRYIy5W/udG3kmjtEJan epMV5qIxySoWAFWqpkrV04UFzt9Ve1WEaxcX9cqk= Received: (qmail 82989 invoked by alias); 24 Sep 2019 20:44:06 -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 82972 invoked by uid 89); 24 Sep 2019 20:44:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, SUBJ_OBFU_PUNCT_FEW autolearn=ham version=3.3.1 spammy=faults X-HELO: esa3.mentor.iphmx.com IronPort-SDR: UcThgj576MGTh7GlI3ez82yeImVa+Q4ez1wShNyE/i6eg+pfP+srZ0lfkoAqUt+OE5mIzp9MU9 SF/SryKP9b0sbSi7lOFBLIATjrIUIqgy2b01JMwWsN3vMfrY0Be7wBqGeSkWJPeC/AuPRLqL/E F9cqHD1SS1xWZyeqx7ClTbk0N/yyxZvpWB4UZ+gwbLN9yl+BTAgeIonAy3jPezRkZKDyq8Ig3d uADtnSsJS2+1Q2eiun8TdnO9Fpd0VzjdJZLAYBhtmhxqrGYfUTxfFlpkpYOkvCFy0X2Ydpn32Q YcQ= IronPort-SDR: UGr3xciZ3r/JY9m7BUuTKa6vB9ZjSeVHZ5xKGjBaRXKAAZRBn041i1WdMY9KHu4lfoBHR6lMrC RE78e+FCe9YaXGpJsh+CSZ/20z5gyvHl0jO4PygWbQZaVFWL42QGRbZTf8sfm1SbujZYJDHUQd KwXIiYAkUygBNMEQz0DQdfPEIol5Y1vX2jm3LxSOoCwwfbJfcGwf58HmE92F+eO5QijMHTJfe7 Fs75ykTP50Y6dHuMIteb8U5FyE0gfcEHLQgqGb2Uj6EU4jFs6iqYu6mSshB5+05TgolDBIVGLP kUE= Date: Tue, 24 Sep 2019 20:43:57 +0000 From: Joseph Myers To: Subject: Update bits/mman.h constants and tst-mman-consts.py for Linux 5.3 Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 The Linux 5.3 uapi headers have some rearrangement relating to MAP_* constants, which includes the effect of adding definitions of MAP_SYNC on powerpc and sparc. This patch updates the corresponding glibc bits/mman.h headers accordingly, and updates the Linux kernel version number in tst-mman-consts.py to reflect that these constants are now current with that kernel version. Tested with build-many-glibcs.py. 2019-09-24 Joseph Myers * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC] (MAP_SYNC): New macro. * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC] (MAP_SYNC): Likewise. * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux kernel version number to 5.3. diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/mman.h b/sysdeps/unix/sysv/linux/powerpc/bits/mman.h index 198600e34b..db850f1ea4 100644 --- a/sysdeps/unix/sysv/linux/powerpc/bits/mman.h +++ b/sysdeps/unix/sysv/linux/powerpc/bits/mman.h @@ -36,6 +36,8 @@ # define MAP_NONBLOCK 0x10000 /* Do not block on IO. */ # define MAP_STACK 0x20000 /* Allocation is for a stack. */ # define MAP_HUGETLB 0x40000 /* Create huge page mapping. */ +# define MAP_SYNC 0x80000 /* Perform synchronous page + faults for the mapping. */ # define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap underlying mapping. */ #endif diff --git a/sysdeps/unix/sysv/linux/sparc/bits/mman.h b/sysdeps/unix/sysv/linux/sparc/bits/mman.h index 732289bd4e..9eb83dcf3f 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/mman.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/mman.h @@ -36,6 +36,8 @@ # define MAP_NONBLOCK 0x10000 /* Do not block on IO. */ # define MAP_STACK 0x20000 /* Allocation is for a stack. */ # define MAP_HUGETLB 0x40000 /* Create huge page mapping. */ +# define MAP_SYNC 0x80000 /* Perform synchronous page + faults for the mapping. */ # define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap underlying mapping. */ #endif diff --git a/sysdeps/unix/sysv/linux/tst-mman-consts.py b/sysdeps/unix/sysv/linux/tst-mman-consts.py index ea88888405..c11e2ea4ac 100644 --- a/sysdeps/unix/sysv/linux/tst-mman-consts.py +++ b/sysdeps/unix/sysv/linux/tst-mman-consts.py @@ -41,7 +41,7 @@ def main(): help='C compiler (including options) to use') args = parser.parse_args() linux_version_headers = linux_kernel_version(args.cc) - linux_version_glibc = (5, 2) + linux_version_glibc = (5, 3) sys.exit(glibcextract.compare_macro_consts( '#define _GNU_SOURCE 1\n' '#include \n',