summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2018-06-09 21:06:58 +0000
committerRich Felker <dalias@aerifal.cx>2018-06-19 13:26:24 -0400
commitaf55070eae5438476f921d827b7ae49e8141c3fe (patch)
tree9e5c3f8107ef5c81c24dee058914f5d20ec92691 /include
parent156a3bedb22b38bc771b755700dca0cab9d1a787 (diff)
downloadmusl-af55070eae5438476f921d827b7ae49e8141c3fe.tar.gz
musl-af55070eae5438476f921d827b7ae49e8141c3fe.tar.bz2
musl-af55070eae5438476f921d827b7ae49e8141c3fe.tar.xz
musl-af55070eae5438476f921d827b7ae49e8141c3fe.zip
add {MSG,SEM,SHM}_STAT_ANY from linux v4.17
introduced to stat ipc objects without permission checks since the info is available in /proc/sysvipc anyway, new in linux commits 23c8cec8cf679b10997a512abb1e86f0cedc42ba a280d6dc77eb6002f269d58cd47c7c7e69b617b6 c21a6970ae727839a2f300cd8dd957de0d0238c3
Diffstat (limited to 'include')
-rw-r--r--include/sys/msg.h1
-rw-r--r--include/sys/sem.h1
-rw-r--r--include/sys/shm.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/sys/msg.h b/include/sys/msg.h
index 139f22b7..be6afc34 100644
--- a/include/sys/msg.h
+++ b/include/sys/msg.h
@@ -27,6 +27,7 @@ typedef unsigned long msglen_t;
#define MSG_STAT 11
#define MSG_INFO 12
+#define MSG_STAT_ANY 13
struct msginfo {
int msgpool, msgmap, msgmax, msgmnb, msgmni, msgssz, msgtql;
diff --git a/include/sys/sem.h b/include/sys/sem.h
index e7c36980..61cdb83d 100644
--- a/include/sys/sem.h
+++ b/include/sys/sem.h
@@ -33,6 +33,7 @@ extern "C" {
#define SEM_STAT 18
#define SEM_INFO 19
+#define SEM_STAT_ANY 20
struct seminfo {
int semmap;
diff --git a/include/sys/shm.h b/include/sys/shm.h
index e7d39ff6..662fde59 100644
--- a/include/sys/shm.h
+++ b/include/sys/shm.h
@@ -35,6 +35,7 @@ extern "C" {
#define SHM_UNLOCK 12
#define SHM_STAT 13
#define SHM_INFO 14
+#define SHM_STAT_ANY 15
#define SHM_DEST 01000
#define SHM_LOCKED 02000
#define SHM_HUGETLB 04000