|
|
978e96 |
From 176c7fee517c11f628aed4ef4b9457e47fa976a1 Mon Sep 17 00:00:00 2001
|
|
|
978e96 |
From: Joseph Myers <joseph@codesourcery.com>
|
|
|
978e96 |
Date: Mon, 18 Jun 2018 13:36:41 +0000
|
|
|
978e96 |
Subject: [PATCH] Add SEM_STAT_ANY from Linux 4.17 to bits/sem.h.
|
|
|
978e96 |
|
|
|
978e96 |
Linux 4.17 adds a SEM_STAT_ANY constant (ipcs command). This patch
|
|
|
978e96 |
adds it to the relevant bits/sem.h headers.
|
|
|
978e96 |
|
|
|
978e96 |
Tested for x86_64.
|
|
|
978e96 |
|
|
|
978e96 |
* sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
|
|
|
978e96 |
(SEM_STAT_ANY): New macro.
|
|
|
978e96 |
* sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
|
|
|
978e96 |
(SEM_STAT_ANY): Likewise.
|
|
|
978e96 |
* sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
|
|
|
978e96 |
(SEM_STAT_ANY): Likewise.
|
|
|
978e96 |
* sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
|
|
|
978e96 |
(SEM_STAT_ANY): Likewise.
|
|
|
978e96 |
* sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
|
|
|
978e96 |
(SEM_STAT_ANY): Likewise.
|
|
|
978e96 |
* sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
|
|
|
978e96 |
(SEM_STAT_ANY): Likewise.
|
|
|
978e96 |
* sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
|
|
|
978e96 |
(SEM_STAT_ANY): Likewise.
|
|
|
978e96 |
* sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
|
|
|
978e96 |
(SEM_STAT_ANY): Likewise.
|
|
|
978e96 |
* sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
|
|
|
978e96 |
(SEM_STAT_ANY): Likewise.
|
|
|
978e96 |
* sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
|
|
|
978e96 |
(SEM_STAT_ANY): Likewise.
|
|
|
978e96 |
---
|
|
|
978e96 |
ChangeLog | 21 +++++++++++++++++++++
|
|
|
978e96 |
sysdeps/unix/sysv/linux/alpha/bits/sem.h | 1 +
|
|
|
978e96 |
sysdeps/unix/sysv/linux/bits/sem.h | 1 +
|
|
|
978e96 |
sysdeps/unix/sysv/linux/generic/bits/sem.h | 1 +
|
|
|
978e96 |
sysdeps/unix/sysv/linux/hppa/bits/sem.h | 1 +
|
|
|
978e96 |
sysdeps/unix/sysv/linux/ia64/bits/sem.h | 1 +
|
|
|
978e96 |
sysdeps/unix/sysv/linux/mips/bits/sem.h | 1 +
|
|
|
978e96 |
sysdeps/unix/sysv/linux/powerpc/bits/sem.h | 1 +
|
|
|
978e96 |
sysdeps/unix/sysv/linux/s390/bits/sem.h | 1 +
|
|
|
978e96 |
sysdeps/unix/sysv/linux/sparc/bits/sem.h | 1 +
|
|
|
978e96 |
sysdeps/unix/sysv/linux/x86/bits/sem.h | 1 +
|
|
|
978e96 |
11 files changed, 31 insertions(+)
|
|
|
978e96 |
|
|
|
978e96 |
Index: b/sysdeps/unix/sysv/linux/alpha/bits/sem.h
|
|
|
978e96 |
===================================================================
|
|
|
978e96 |
--- a/sysdeps/unix/sysv/linux/alpha/bits/sem.h
|
|
|
978e96 |
+++ b/sysdeps/unix/sysv/linux/alpha/bits/sem.h
|
|
|
978e96 |
@@ -66,6 +66,7 @@ struct semid_ds
|
|
|
978e96 |
/* ipcs ctl cmds */
|
|
|
978e96 |
# define SEM_STAT 18
|
|
|
978e96 |
# define SEM_INFO 19
|
|
|
978e96 |
+# define SEM_STAT_ANY 20
|
|
|
978e96 |
|
|
|
978e96 |
struct seminfo
|
|
|
978e96 |
{
|
|
|
978e96 |
Index: b/sysdeps/unix/sysv/linux/bits/sem.h
|
|
|
978e96 |
===================================================================
|
|
|
978e96 |
--- a/sysdeps/unix/sysv/linux/bits/sem.h
|
|
|
978e96 |
+++ b/sysdeps/unix/sysv/linux/bits/sem.h
|
|
|
978e96 |
@@ -68,6 +68,7 @@ struct semid_ds
|
|
|
978e96 |
/* ipcs ctl cmds */
|
|
|
978e96 |
# define SEM_STAT 18
|
|
|
978e96 |
# define SEM_INFO 19
|
|
|
978e96 |
+# define SEM_STAT_ANY 20
|
|
|
978e96 |
|
|
|
978e96 |
struct seminfo
|
|
|
978e96 |
{
|
|
|
978e96 |
Index: b/sysdeps/unix/sysv/linux/generic/bits/sem.h
|
|
|
978e96 |
===================================================================
|
|
|
978e96 |
--- a/sysdeps/unix/sysv/linux/generic/bits/sem.h
|
|
|
978e96 |
+++ b/sysdeps/unix/sysv/linux/generic/bits/sem.h
|
|
|
978e96 |
@@ -74,6 +74,7 @@ struct semid_ds
|
|
|
978e96 |
/* ipcs ctl cmds */
|
|
|
978e96 |
# define SEM_STAT 18
|
|
|
978e96 |
# define SEM_INFO 19
|
|
|
978e96 |
+# define SEM_STAT_ANY 20
|
|
|
978e96 |
|
|
|
978e96 |
struct seminfo
|
|
|
978e96 |
{
|
|
|
978e96 |
Index: b/sysdeps/unix/sysv/linux/hppa/bits/sem.h
|
|
|
978e96 |
===================================================================
|
|
|
978e96 |
--- a/sysdeps/unix/sysv/linux/hppa/bits/sem.h
|
|
|
978e96 |
+++ b/sysdeps/unix/sysv/linux/hppa/bits/sem.h
|
|
|
978e96 |
@@ -73,6 +73,7 @@ struct semid_ds
|
|
|
978e96 |
/* ipcs ctl cmds */
|
|
|
978e96 |
# define SEM_STAT 18
|
|
|
978e96 |
# define SEM_INFO 19
|
|
|
978e96 |
+# define SEM_STAT_ANY 20
|
|
|
978e96 |
|
|
|
978e96 |
struct seminfo
|
|
|
978e96 |
{
|
|
|
978e96 |
Index: b/sysdeps/unix/sysv/linux/ia64/bits/sem.h
|
|
|
978e96 |
===================================================================
|
|
|
978e96 |
--- a/sysdeps/unix/sysv/linux/ia64/bits/sem.h
|
|
|
978e96 |
+++ b/sysdeps/unix/sysv/linux/ia64/bits/sem.h
|
|
|
978e96 |
@@ -68,6 +68,7 @@ struct semid_ds
|
|
|
978e96 |
/* ipcs ctl cmds */
|
|
|
978e96 |
# define SEM_STAT 18
|
|
|
978e96 |
# define SEM_INFO 19
|
|
|
978e96 |
+# define SEM_STAT_ANY 20
|
|
|
978e96 |
|
|
|
978e96 |
struct seminfo
|
|
|
978e96 |
{
|
|
|
978e96 |
Index: b/sysdeps/unix/sysv/linux/mips/bits/sem.h
|
|
|
978e96 |
===================================================================
|
|
|
978e96 |
--- a/sysdeps/unix/sysv/linux/mips/bits/sem.h
|
|
|
978e96 |
+++ b/sysdeps/unix/sysv/linux/mips/bits/sem.h
|
|
|
978e96 |
@@ -66,6 +66,7 @@ struct semid_ds
|
|
|
978e96 |
/* ipcs ctl cmds */
|
|
|
978e96 |
# define SEM_STAT 18
|
|
|
978e96 |
# define SEM_INFO 19
|
|
|
978e96 |
+# define SEM_STAT_ANY 20
|
|
|
978e96 |
|
|
|
978e96 |
struct seminfo
|
|
|
978e96 |
{
|
|
|
978e96 |
Index: b/sysdeps/unix/sysv/linux/powerpc/bits/sem.h
|
|
|
978e96 |
===================================================================
|
|
|
978e96 |
--- a/sysdeps/unix/sysv/linux/powerpc/bits/sem.h
|
|
|
978e96 |
+++ b/sysdeps/unix/sysv/linux/powerpc/bits/sem.h
|
|
|
978e96 |
@@ -73,6 +73,7 @@ struct semid_ds
|
|
|
978e96 |
/* ipcs ctl cmds */
|
|
|
978e96 |
# define SEM_STAT 18
|
|
|
978e96 |
# define SEM_INFO 19
|
|
|
978e96 |
+# define SEM_STAT_ANY 20
|
|
|
978e96 |
|
|
|
978e96 |
struct seminfo
|
|
|
978e96 |
{
|
|
|
978e96 |
Index: b/sysdeps/unix/sysv/linux/s390/bits/sem.h
|
|
|
978e96 |
===================================================================
|
|
|
978e96 |
--- a/sysdeps/unix/sysv/linux/s390/bits/sem.h
|
|
|
978e96 |
+++ b/sysdeps/unix/sysv/linux/s390/bits/sem.h
|
|
|
978e96 |
@@ -73,6 +73,7 @@ struct semid_ds
|
|
|
978e96 |
/* ipcs ctl cmds */
|
|
|
978e96 |
# define SEM_STAT 18
|
|
|
978e96 |
# define SEM_INFO 19
|
|
|
978e96 |
+# define SEM_STAT_ANY 20
|
|
|
978e96 |
|
|
|
978e96 |
struct seminfo
|
|
|
978e96 |
{
|
|
|
978e96 |
Index: b/sysdeps/unix/sysv/linux/sparc/bits/sem.h
|
|
|
978e96 |
===================================================================
|
|
|
978e96 |
--- a/sysdeps/unix/sysv/linux/sparc/bits/sem.h
|
|
|
978e96 |
+++ b/sysdeps/unix/sysv/linux/sparc/bits/sem.h
|
|
|
978e96 |
@@ -73,6 +73,7 @@ struct semid_ds
|
|
|
978e96 |
/* ipcs ctl cmds */
|
|
|
978e96 |
# define SEM_STAT 18
|
|
|
978e96 |
# define SEM_INFO 19
|
|
|
978e96 |
+# define SEM_STAT_ANY 20
|
|
|
978e96 |
|
|
|
978e96 |
struct seminfo
|
|
|
978e96 |
{
|
|
|
978e96 |
Index: b/sysdeps/unix/sysv/linux/x86/bits/sem.h
|
|
|
978e96 |
===================================================================
|
|
|
978e96 |
--- a/sysdeps/unix/sysv/linux/x86/bits/sem.h
|
|
|
978e96 |
+++ b/sysdeps/unix/sysv/linux/x86/bits/sem.h
|
|
|
978e96 |
@@ -68,6 +68,7 @@ struct semid_ds
|
|
|
978e96 |
/* ipcs ctl cmds */
|
|
|
978e96 |
# define SEM_STAT 18
|
|
|
978e96 |
# define SEM_INFO 19
|
|
|
978e96 |
+# define SEM_STAT_ANY 20
|
|
|
978e96 |
|
|
|
978e96 |
struct seminfo
|
|
|
978e96 |
{
|