]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/semctl.2
pldd.1, bpf.2, chdir.2, clone.2, fanotify_init.2, fanotify_mark.2, intro.2, ipc.2...
[thirdparty/man-pages.git] / man2 / semctl.2
index afc9874f0161126fcde4efba1ee434fcb514deb3..6fd0abc07cd13676b96e80e4174c545e5d41d89c 100644 (file)
@@ -39,7 +39,7 @@
 .\" 2005-08-02, mtk: Added IPC_INFO, SEM_INFO, SEM_STAT descriptions.
 .\" 2018-03-20, dbueso: Added SEM_STAT_ANY description.
 .\"
-.TH SEMCTL 2 2017-09-15 "Linux" "Linux Programmer's Manual"
+.TH SEMCTL 2 2019-08-02 "Linux" "Linux Programmer's Manual"
 .SH NAME
 semctl \- System V semaphore control operations
 .SH SYNOPSIS
@@ -241,17 +241,18 @@ argument is not a semaphore identifier, but instead an index into
 the kernel's internal array that maintains information about
 all semaphore sets on the system.
 .TP
-.BR SEM_STAT_ANY " (Linux-specific)"
+.BR SEM_STAT_ANY " (Linux-specific, since Linux 4.17)"
 Return a
 .I seminfo
 structure containing the same information as for
 .BR SEM_STAT .
-However, the
+However,
 .I sem_perm.mode
 is not checked for read access for
-.IR semid ,
-resembing the behaviour of
-.IR /proc/sysvipc/sem .
+.IR semid
+meaning that any user can employ this operation (just as any user may read
+.IR /proc/sysvipc/sem
+to obtain the same information).
 .TP
 .B GETALL
 Return
@@ -601,4 +602,4 @@ in Linux 4.6.
 .BR semop (2),
 .BR capabilities (7),
 .BR sem_overview (7),
-.BR svipc (7)
+.BR sysvipc (7)