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 .PP
On a successful On a successful
.BR shmdt () .BR shmdt ()
call the system updates the members of the call, the system updates the members of the
.I shmid_ds .I shmid_ds
structure associated with the shared memory segment as follows: structure associated with the shared memory segment as follows:
.IP .IP
@ -161,26 +161,26 @@ If it becomes 0 and the segment is marked for deletion,
the segment is deleted. the segment is deleted.
.PP .PP
After a After a
.BR fork (2) .BR fork (2),
the child inherits the attached shared memory segments. the child inherits the attached shared memory segments.
After an After an
.BR execve (2) .BR execve (2),
all attached shared memory segments are detached from the process. all attached shared memory segments are detached from the process.
Upon Upon
.BR _exit (2) .BR _exit (2),
all attached shared memory segments are detached from the process. all attached shared memory segments are detached from the process.
.SH RETURN VALUE .SH RETURN VALUE
On success On success,
.BR shmat () .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 .I (void\ *)\ \-1
is returned, and is returned, and
.I errno .I errno
is set to indicate the cause of the error. is set to indicate the cause of the error.
On success On success,
.BR shmdt () .BR shmdt ()
returns 0; on error \-1 is returned, and returns 0; on error \-1 is returned, and
.I errno .I errno
@ -235,7 +235,7 @@ is not aligned on a page boundary.
SVr4, POSIX.1-2001. SVr4, POSIX.1-2001.
.\" SVr4 documents an additional error condition EMFILE. .\" 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 the type of the \fIshmaddr\fP argument was changed from
.I "char\ *" .I "char\ *"
into into
@ -276,7 +276,7 @@ The following system parameter affects
.B SHMLBA .B SHMLBA
Segment low boundary address multiple. Segment low boundary address multiple.
Must be page aligned. Must be page aligned.
For the current implementation the For the current implementation, the
.B SHMLBA .B SHMLBA
value is value is
.BR PAGE_SIZE . .BR PAGE_SIZE .