From patchwork Thu Nov 16 21:14:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 838796 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-87208-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="XhdjgElk"; 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 3ydDWv3wRlz9s74 for ; Fri, 17 Nov 2017 08:14:19 +1100 (AEDT) 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=MtYa7g5d2A0demUiLwaOVlVAJbS2R +41H43SQ/ethih14PE6yb9TnR63YAkNF5cpWClVrencsSjPxXJml2ihOfKe1MFUA 15A1V8EOR6Mwry/dduVqKUj0fTKzOPDvB2rU6FXfw3a/2xNEB3nwfKwPG2r6nqor iNpDZIF4LwTzxQ= 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=KrZP1eBr8FTyhsIYhvoC0tDgKHY=; b=Xhd jgElksaYn1lHRShyB2sT9J6JB4aO3xNo+V/P8eGSOsvdZ0APz989IO0n7KHw4i8n WP1RPpfWNhpdaxVukkY7onHDNS/IJttlx4KSsuQdQxPCAb417Bnes6COlrhnDGje 2p0KjrJBD7OR7Orgfa5OBRJJJXGhpIip0iboVFUI= Received: (qmail 98533 invoked by alias); 16 Nov 2017 21:14:13 -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 98519 invoked by uid 89); 16 Nov 2017 21:14:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KB_WAM_FROM_NAME_SINGLEWORD, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Date: Thu, 16 Nov 2017 21:14:04 +0000 From: Joseph Myers To: Subject: Add SHM_HUGETLB, SHM_NORESERVE to bits/shm.h Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) Linux 4.14 adds SHM_HUGETLB and SHM_NORESERVE to include/uapi/linux/shm.h. (These macros previously existed in the kernel, but in the non-UAPI header.) This patch adds them to bits/shm.h accordingly. Tested for x86_64, and with build-many-glibcs.py. 2017-11-16 Joseph Myers * sysdeps/unix/sysv/linux/bits/shm.h (SHM_HUGETLB): New macro. (SHM_NORESERVE): Likewise. * sysdeps/unix/sysv/linux/alpha/bits/shm.h (SHM_HUGETLB): Likewise. (SHM_NORESERVE): Likewise. * sysdeps/unix/sysv/linux/arm/bits/shm.h (SHM_HUGETLB): Likewise. (SHM_NORESERVE): Likewise. * sysdeps/unix/sysv/linux/generic/bits/shm.h (SHM_HUGETLB): Likewise. (SHM_NORESERVE): Likewise. * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_HUGETLB): Likewise. (SHM_NORESERVE): Likewise. * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_HUGETLB): Likewise. (SHM_NORESERVE): Likewise. * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_HUGETLB): Likewise. (SHM_NORESERVE): Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_HUGETLB): Likewise. (SHM_NORESERVE): Likewise. * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_HUGETLB): Likewise. (SHM_NORESERVE): Likewise. * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_HUGETLB): Likewise. (SHM_NORESERVE): Likewise. * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_HUGETLB): Likewise. (SHM_NORESERVE): Likewise. * sysdeps/unix/sysv/linux/x86/bits/shm.h (SHM_HUGETLB): Likewise. (SHM_NORESERVE): Likewise. diff --git a/sysdeps/unix/sysv/linux/alpha/bits/shm.h b/sysdeps/unix/sysv/linux/alpha/bits/shm.h index d628dcf..4c9dd05 100644 --- a/sysdeps/unix/sysv/linux/alpha/bits/shm.h +++ b/sysdeps/unix/sysv/linux/alpha/bits/shm.h @@ -21,9 +21,11 @@ #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */ diff --git a/sysdeps/unix/sysv/linux/arm/bits/shm.h b/sysdeps/unix/sysv/linux/arm/bits/shm.h index 2448ffd..c2ffbc4 100644 --- a/sysdeps/unix/sysv/linux/arm/bits/shm.h +++ b/sysdeps/unix/sysv/linux/arm/bits/shm.h @@ -21,9 +21,11 @@ #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */ diff --git a/sysdeps/unix/sysv/linux/bits/shm.h b/sysdeps/unix/sysv/linux/bits/shm.h index f8f593c..c73f090 100644 --- a/sysdeps/unix/sysv/linux/bits/shm.h +++ b/sysdeps/unix/sysv/linux/bits/shm.h @@ -21,9 +21,11 @@ #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */ diff --git a/sysdeps/unix/sysv/linux/generic/bits/shm.h b/sysdeps/unix/sysv/linux/generic/bits/shm.h index 057b85c..2e160ad 100644 --- a/sysdeps/unix/sysv/linux/generic/bits/shm.h +++ b/sysdeps/unix/sysv/linux/generic/bits/shm.h @@ -23,9 +23,11 @@ #include #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */ diff --git a/sysdeps/unix/sysv/linux/hppa/bits/shm.h b/sysdeps/unix/sysv/linux/hppa/bits/shm.h index 495dae8..9f07f3a 100644 --- a/sysdeps/unix/sysv/linux/hppa/bits/shm.h +++ b/sysdeps/unix/sysv/linux/hppa/bits/shm.h @@ -22,9 +22,11 @@ #include #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */ diff --git a/sysdeps/unix/sysv/linux/ia64/bits/shm.h b/sysdeps/unix/sysv/linux/ia64/bits/shm.h index add8a60..ec44a48 100644 --- a/sysdeps/unix/sysv/linux/ia64/bits/shm.h +++ b/sysdeps/unix/sysv/linux/ia64/bits/shm.h @@ -21,9 +21,11 @@ #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */ diff --git a/sysdeps/unix/sysv/linux/mips/bits/shm.h b/sysdeps/unix/sysv/linux/mips/bits/shm.h index 20a02ce..d09d093 100644 --- a/sysdeps/unix/sysv/linux/mips/bits/shm.h +++ b/sysdeps/unix/sysv/linux/mips/bits/shm.h @@ -21,9 +21,11 @@ #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */ diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/shm.h b/sysdeps/unix/sysv/linux/powerpc/bits/shm.h index 3812e73..a7bcacd 100644 --- a/sysdeps/unix/sysv/linux/powerpc/bits/shm.h +++ b/sysdeps/unix/sysv/linux/powerpc/bits/shm.h @@ -21,9 +21,11 @@ #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */ diff --git a/sysdeps/unix/sysv/linux/s390/bits/shm.h b/sysdeps/unix/sysv/linux/s390/bits/shm.h index 768b169..0c24d76 100644 --- a/sysdeps/unix/sysv/linux/s390/bits/shm.h +++ b/sysdeps/unix/sysv/linux/s390/bits/shm.h @@ -22,9 +22,11 @@ #include #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */ diff --git a/sysdeps/unix/sysv/linux/sh/bits/shm.h b/sysdeps/unix/sysv/linux/sh/bits/shm.h index d1f47ec..02750f4 100644 --- a/sysdeps/unix/sysv/linux/sh/bits/shm.h +++ b/sysdeps/unix/sysv/linux/sh/bits/shm.h @@ -21,9 +21,11 @@ #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */ diff --git a/sysdeps/unix/sysv/linux/sparc/bits/shm.h b/sysdeps/unix/sysv/linux/sparc/bits/shm.h index c7857cc..d995661 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/shm.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/shm.h @@ -22,9 +22,11 @@ #include #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */ diff --git a/sysdeps/unix/sysv/linux/x86/bits/shm.h b/sysdeps/unix/sysv/linux/x86/bits/shm.h index 5f8e2e1..78a427b 100644 --- a/sysdeps/unix/sysv/linux/x86/bits/shm.h +++ b/sysdeps/unix/sysv/linux/x86/bits/shm.h @@ -21,9 +21,11 @@ #include -/* Permission flag for shmget. */ +/* Flags for shmget. */ #define SHM_R 0400 /* or S_IRUGO from */ #define SHM_W 0200 /* or S_IWUGO from */ +#define SHM_HUGETLB 04000 /* Segment will use huge TLB pages. */ +#define SHM_NORESERVE 010000 /* Don't check for reservations. */ /* Flags for `shmat'. */ #define SHM_RDONLY 010000 /* attach read-only else read-write */