aboutsummaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2014-04-28 09:14:13 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-04-28 09:15:20 +0200
commit0bf534a940c87d3ec2e1e00be4db00a0fe86136b (patch)
treeff550aa317b2f395901bbb941f5adf61b61c58c9 /man2
parent8378b1152c6875b212321cf6009f641f10fc30a2 (diff)
downloadman-pages-0bf534a940c87d3ec2e1e00be4db00a0fe86136b.tar.gz
shmop.2: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2')
-rw-r--r--man2/shmop.218
1 files changed, 9 insertions, 9 deletions
diff --git a/man2/shmop.2 b/man2/shmop.2
index ef1e479074..6b1146203c 100644
--- a/man2/shmop.2
+++ b/man2/shmop.2
@@ -145,7 +145,7 @@ call.
.PP
On a successful
.BR shmdt ()
-call the system updates the members of the
+call, the system updates the members of the
.I shmid_ds
structure associated with the shared memory segment as follows:
.IP
@@ -161,26 +161,26 @@ If it becomes 0 and the segment is marked for deletion,
the segment is deleted.
.PP
After a
-.BR fork (2)
+.BR fork (2),
the child inherits the attached shared memory segments.
After an
-.BR execve (2)
+.BR execve (2),
all attached shared memory segments are detached from the process.
Upon
-.BR _exit (2)
+.BR _exit (2),
all attached shared memory segments are detached from the process.
.SH RETURN VALUE
-On success
+On success,
.BR shmat ()
-returns the address of the attached shared memory segment; on error
+returns the address of the attached shared memory segment; on error,
.I (void\ *)\ \-1
is returned, and
.I errno
is set to indicate the cause of the error.
-On success
+On success,
.BR shmdt ()
returns 0; on error \-1 is returned, and
.I errno
@@ -235,7 +235,7 @@ is not aligned on a page boundary.
SVr4, POSIX.1-2001.
.\" SVr4 documents an additional error condition EMFILE.
-In SVID 3 (or perhaps earlier)
+In SVID 3 (or perhaps earlier),
the type of the \fIshmaddr\fP argument was changed from
.I "char\ *"
into
@@ -276,7 +276,7 @@ The following system parameter affects
.B SHMLBA
Segment low boundary address multiple.
Must be page aligned.
-For the current implementation the
+For the current implementation, the
.B SHMLBA
value is
.BR PAGE_SIZE .