diff --git a/man2/shmop.2 b/man2/shmop.2 index dea82df5b..ef1e47907 100644 --- a/man2/shmop.2 +++ b/man2/shmop.2 @@ -38,7 +38,7 @@ .\" .\" FIXME . Add an example program to this page. .\" FIXME Linux 2.6.9 added SHM_EXEC, which should be documented -.TH SHMOP 2 2013-02-12 "Linux" "Linux Programmer's Manual" +.TH SHMOP 2 2014-04-28 "Linux" "Linux Programmer's Manual" .SH NAME shmat, shmdt \- System V shared memory operations .SH SYNOPSIS @@ -81,21 +81,23 @@ Otherwise, .I shmaddr must be a page-aligned address at which the attach occurs. .PP -If -.B SHM_RDONLY -is specified in -.IR shmflg , -the segment is attached for reading and the process must have -read permission for the segment. -Otherwise, the segment is attached for read and write +In addition to +.BR SHM_DNR , +the following flags may be specified in the +.I shmflg +bit-mask argument: +.TP +.BR SHM_RDONLY +Attach the segment read-only access. +The process must have read permission for the segment. +If this flag is not specified, +the segment is attached for read and write access, and the process must have read and write permission for the segment. There is no notion of a write-only shared memory segment. -.PP -The (Linux-specific) +.TP .B SHM_REMAP -flag may be specified in -.I shmflg -to indicate that the mapping of the segment should replace +This (Linux-specific) flag specifies +that the mapping of the segment should replace any existing mapping in the range starting at .I shmaddr and continuing for the size of the segment.