From patchwork Mon Jun 22 20:59:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 39772 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D6F56388B009; Mon, 22 Jun 2020 20:59:55 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 372AD3885C2A for ; Mon, 22 Jun 2020 20:59:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 372AD3885C2A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joseph_myers@mentor.com IronPort-SDR: Qm5iXlbx1nEMDl1sGQ4TQycTVnx5IVDgCajvdhWArEFs3rUm+EcdsN6vTlKG2Bb6yb56yYYkJr F0DSE9m2nwZ6qU/JJL8B3p7Zu2rZKyk2s+HNa3CwWNT3YmK4V/WwGOKNqksL4QPeM4u1nOZnxd qO5VSzqLK+n1JhnFOpMW0Y06iHnyiEspk4/ZpwJaj9IQD0/tdJcqlm5sv+D2Bi5221ZvMrc8CQ 0l1vutOfNPUt5hcDmNoWn/VaiAkHqnPPECsb7H5+ZPvhQlLOm9+RV1oFYqfhwmJflpM0O3wyQr zdU= X-IronPort-AV: E=Sophos;i="5.75,268,1589270400"; d="scan'208";a="50082517" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 22 Jun 2020 12:59:52 -0800 IronPort-SDR: eAb6tTViW2Pqo4HwUbeZ7jPeLErwgLBTsRPEJWMhfy9bkxHjbQVzkRXC+G3FtXbhBsFGcJ6AnH bwJj5V3AjoE94RSfL9gxl1qHpBStc6swCum2+m/J/ohjasPTWZ7Y9L+NLWqg61EWPyX+BLv5oA 3F7HIVCWwr7hghXVOeCPSkXsCD//yDW7YLTr0oPY7aTqNyJ9kh/HLknHsNiTBBNTOrRL221NDo t+0NVSCuNdVdeu9vqErYuwBK8c4kH+67I+esqxUdFgsPnXqrSNwWBlE5w8+0peS6Ezsbw63A5H CdE= Date: Mon, 22 Jun 2020 20:59:46 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: Add MREMAP_DONTUNMAP from Linux 5.7 Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-06.mgc.mentorg.com (139.181.222.6) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-Spam-Status: No, score=-3134.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Add the new constant MREMAP_DONTUNMAP from Linux 5.7 to bits/mman-shared.h. Tested with build-many-glibcs.py. diff --git a/sysdeps/unix/sysv/linux/bits/mman-shared.h b/sysdeps/unix/sysv/linux/bits/mman-shared.h index d016086c7e..64f1d65117 100644 --- a/sysdeps/unix/sysv/linux/bits/mman-shared.h +++ b/sysdeps/unix/sysv/linux/bits/mman-shared.h @@ -24,6 +24,7 @@ /* Flags for mremap. */ # define MREMAP_MAYMOVE 1 # define MREMAP_FIXED 2 +# define MREMAP_DONTUNMAP 4 /* Flags for memfd_create. */ # ifndef MFD_CLOEXEC