shmop.2: grfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-04-28 09:14:13 +02:00
parent 8378b1152c
commit 0bf534a940
1 changed files with 9 additions and 9 deletions

View File

@ -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 .