summaryrefslogtreecommitdiffstats
path: root/man2/shmctl.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/shmctl.2')
-rw-r--r--man2/shmctl.236
1 files changed, 19 insertions, 17 deletions
diff --git a/man2/shmctl.2 b/man2/shmctl.2
index a108e14c8..0e8d27153 100644
--- a/man2/shmctl.2
+++ b/man2/shmctl.2
@@ -43,7 +43,7 @@
.\" 2005-08-02, mtk: Added IPC_INFO, SHM_INFO, SHM_STAT descriptions.
.\" 2018-03-20, dbueso: Added SHM_STAT_ANY description.
.\"
-.TH SHMCTL 2 2020-04-11 "Linux" "Linux Programmer's Manual"
+.TH SHMCTL 2 2020-12-21 "Linux" "Linux Programmer's Manual"
.SH NAME
shmctl \- System V shared memory control
.SH SYNOPSIS
@@ -96,19 +96,6 @@ on the shared memory segment.
.I shm_segsz
Size in bytes of the shared memory segment.
.TP
-.I shm_cpid
-ID of the process that created the shared memory segment.
-.TP
-.I shm_lpid
-ID of the last process that executed a
-.BR shmat (2)
-or
-.BR shmdt (2)
-system call on this segment.
-.TP
-.I shm_nattch
-Number of processes that have this segment attached.
-.TP
.I shm_atime
Time of the last
.BR shmat (2)
@@ -124,6 +111,19 @@ Time of creation of segment or time of the last
.BR shmctl ()
.BR IPC_SET
operation.
+.TP
+.I shm_cpid
+ID of the process that created the shared memory segment.
+.TP
+.I shm_lpid
+ID of the last process that executed a
+.BR shmat (2)
+or
+.BR shmdt (2)
+system call on this segment.
+.TP
+.I shm_nattch
+Number of processes that have this segment attached.
.PP
The
.I ipc_perm
@@ -192,9 +192,11 @@ to the kernel data structure associated with this shared memory segment,
updating also its
.I shm_ctime
member.
-The following fields can be changed:
+.IP
+The following fields are updated:
\fIshm_perm.uid\fP, \fIshm_perm.gid\fP,
and (the least significant 9 bits of) \fIshm_perm.mode\fP.
+.IP
The effective UID of the calling process must match the owner
.RI ( shm_perm.uid )
or creator
@@ -478,7 +480,7 @@ to include these header files.
.PP
The
.BR IPC_INFO ,
-.B SHM_STAT
+.BR SHM_STAT ,
and
.B SHM_INFO
operations are used by the
@@ -516,7 +518,7 @@ flag in
.BR capabilities (7),
.BR sysvipc (7)
.SH COLOPHON
-This page is part of release 5.09 of the Linux
+This page is part of release 5.10 of the Linux
.I man-pages
project.
A description of the project,