|
|
00db10 |
From f2857da7cdb65bfad75ee30981f5b2fde5bbb1dc Mon Sep 17 00:00:00 2001
|
|
|
00db10 |
From: Joseph Myers <joseph@codesourcery.com>
|
|
|
00db10 |
Date: Mon, 18 Jun 2018 13:37:57 +0000
|
|
|
00db10 |
Subject: [PATCH] Add SHM_STAT_ANY from Linux 4.17 to bits/shm.h.
|
|
|
00db10 |
|
|
|
00db10 |
Linux 4.17 adds a SHM_STAT_ANY constant (ipcs command). This patch
|
|
|
00db10 |
adds it to the relevant bits/shm.h headers.
|
|
|
00db10 |
|
|
|
00db10 |
Tested for x86_64.
|
|
|
00db10 |
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): New macro.
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): Likewise.
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): Likewise.
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): Likewise.
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): Likewise.
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): Likewise.
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): Likewise.
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): Likewise.
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): Likewise.
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): Likewise.
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): Likewise.
|
|
|
00db10 |
* sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
|
|
|
00db10 |
(SHM_STAT_ANY): Likewise.
|
|
|
00db10 |
---
|
|
|
00db10 |
ChangeLog | 25 ++++++++++++++++++++++
|
|
|
00db10 |
sysdeps/unix/sysv/linux/alpha/bits/shm.h | 1 +
|
|
|
00db10 |
sysdeps/unix/sysv/linux/arm/bits/shm.h | 1 +
|
|
|
00db10 |
sysdeps/unix/sysv/linux/bits/shm.h | 1 +
|
|
|
00db10 |
sysdeps/unix/sysv/linux/generic/bits/shm.h | 1 +
|
|
|
00db10 |
sysdeps/unix/sysv/linux/hppa/bits/shm.h | 1 +
|
|
|
00db10 |
sysdeps/unix/sysv/linux/ia64/bits/shm.h | 1 +
|
|
|
00db10 |
sysdeps/unix/sysv/linux/mips/bits/shm.h | 1 +
|
|
|
00db10 |
sysdeps/unix/sysv/linux/powerpc/bits/shm.h | 1 +
|
|
|
00db10 |
sysdeps/unix/sysv/linux/s390/bits/shm.h | 1 +
|
|
|
00db10 |
sysdeps/unix/sysv/linux/sh/bits/shm.h | 1 +
|
|
|
00db10 |
sysdeps/unix/sysv/linux/sparc/bits/shm.h | 1 +
|
|
|
00db10 |
sysdeps/unix/sysv/linux/x86/bits/shm.h | 1 +
|
|
|
00db10 |
13 files changed, 37 insertions(+)
|
|
|
00db10 |
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/alpha/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/alpha/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/alpha/bits/shm.h
|
|
|
00db10 |
@@ -65,6 +65,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/arm/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/arm/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/arm/bits/shm.h
|
|
|
00db10 |
@@ -69,6 +69,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/bits/shm.h
|
|
|
00db10 |
@@ -68,6 +68,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/generic/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/generic/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/generic/bits/shm.h
|
|
|
00db10 |
@@ -76,6 +76,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/hppa/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/hppa/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/hppa/bits/shm.h
|
|
|
00db10 |
@@ -73,6 +73,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/ia64/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/ia64/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/ia64/bits/shm.h
|
|
|
00db10 |
@@ -61,6 +61,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/mips/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/mips/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/mips/bits/shm.h
|
|
|
00db10 |
@@ -62,6 +62,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/powerpc/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/powerpc/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/powerpc/bits/shm.h
|
|
|
00db10 |
@@ -78,6 +78,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/s390/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/s390/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/s390/bits/shm.h
|
|
|
00db10 |
@@ -75,6 +75,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/sh/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/sh/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/sh/bits/shm.h
|
|
|
00db10 |
@@ -66,6 +66,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/sparc/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/sparc/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/sparc/bits/shm.h
|
|
|
00db10 |
@@ -76,6 +76,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|
|
|
00db10 |
Index: b/sysdeps/unix/sysv/linux/x86/bits/shm.h
|
|
|
00db10 |
===================================================================
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/x86/bits/shm.h
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/x86/bits/shm.h
|
|
|
00db10 |
@@ -74,6 +74,7 @@ struct shmid_ds
|
|
|
00db10 |
/* ipcs ctl commands */
|
|
|
00db10 |
# define SHM_STAT 13
|
|
|
00db10 |
# define SHM_INFO 14
|
|
|
00db10 |
+# define SHM_STAT_ANY 15
|
|
|
00db10 |
|
|
|
00db10 |
/* shm_mode upper byte flags */
|
|
|
00db10 |
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
|