From 0bf534a940c87d3ec2e1e00be4db00a0fe86136b Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 28 Apr 2014 09:14:13 +0200 Subject: [PATCH] shmop.2: grfix Signed-off-by: Michael Kerrisk --- man2/shmop.2 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/man2/shmop.2 b/man2/shmop.2 index ef1e47907..6b1146203 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 .