summaryrefslogtreecommitdiffstats
path: root/upstream/debian-unstable/man2/shmget.2
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/debian-unstable/man2/shmget.2')
-rw-r--r--upstream/debian-unstable/man2/shmget.224
1 files changed, 13 insertions, 11 deletions
diff --git a/upstream/debian-unstable/man2/shmget.2 b/upstream/debian-unstable/man2/shmget.2
index 074e83e5..ed40ff2a 100644
--- a/upstream/debian-unstable/man2/shmget.2
+++ b/upstream/debian-unstable/man2/shmget.2
@@ -15,7 +15,7 @@
.\" Language and formatting clean-ups
.\" Added notes on /proc files
.\"
-.TH shmget 2 2023-03-30 "Linux man-pages 6.05.01"
+.TH shmget 2 2024-05-02 "Linux man-pages 6.8"
.SH NAME
shmget \- allocates a System V shared memory segment
.SH LIBRARY
@@ -24,7 +24,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <sys/shm.h>
-.PP
+.P
.BI "int shmget(key_t " key ", size_t " size ", int " shmflg );
.fi
.SH DESCRIPTION
@@ -40,7 +40,7 @@ is zero and
does not have the value
.BR IPC_PRIVATE ),
or to create a new set.
-.PP
+.P
A new shared memory segment, with size equal to the value of
.I size
rounded up to a multiple of
@@ -59,7 +59,7 @@ exists, and
.B IPC_CREAT
is specified in
.IR shmflg .
-.PP
+.P
If
.I shmflg
specifies both
@@ -78,7 +78,7 @@ set to
.B O_CREAT | O_EXCL
for
.BR open (2).)
-.PP
+.P
The value
.I shmflg
is composed of:
@@ -102,7 +102,9 @@ See the Linux kernel source file
.I Documentation/admin\-guide/mm/hugetlbpage.rst
for further information.
.TP
-.BR SHM_HUGE_2MB ", " SHM_HUGE_1GB " (since Linux 3.8)"
+.B SHM_HUGE_2MB
+.TQ
+.BR SHM_HUGE_1GB " (since Linux 3.8)"
.\" See https://lwn.net/Articles/533499/
Used in conjunction with
.B SHM_HUGETLB
@@ -143,7 +145,7 @@ in
.BR proc (5).
.\" As at 2.6.17-rc2, this flag has no effect if SHM_HUGETLB was also
.\" specified.
-.PP
+.P
In addition to the above flags, the least significant 9 bits of
.I shmflg
specify the permissions granted to the owner, group, and others.
@@ -153,7 +155,7 @@ meaning, as the
argument of
.BR open (2).
Presently, execute permissions are not used by the system.
-.PP
+.P
When a new shared memory segment is created,
its contents are initialized to zero values, and
its associated data structure,
@@ -190,7 +192,7 @@ are set to 0.
.IP \[bu]
.I shm_ctime
is set to the current time.
-.PP
+.P
If the shared memory segment already exists, the permissions are
verified, and a check is made to see if it is marked for destruction.
.SH RETURN VALUE
@@ -263,7 +265,7 @@ in
.BR proc (5).
.SH STANDARDS
POSIX.1-2008.
-.PP
+.P
.B SHM_HUGETLB
and
.B SHM_NORESERVE
@@ -380,7 +382,7 @@ On Linux, this limit can be read and modified via
.\" Kernels between Linux 2.4.x and Linux 2.6.8 had an off-by-one error
.\" that meant that we could create one more segment than SHMMNI -- MTK
.\" This /proc file is not available in Linux 2.2 and earlier -- MTK
-.PP
+.P
The implementation has no specific limits for the per-process maximum
number of shared memory segments
.RB ( SHMSEG ).