diff options
Diffstat (limited to 'man3/shm_open.3')
-rw-r--r-- | man3/shm_open.3 | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/man3/shm_open.3 b/man3/shm_open.3 index 03e96dc11..4694dc6f0 100644 --- a/man3/shm_open.3 +++ b/man3/shm_open.3 @@ -23,7 +23,7 @@ Real-time library creates and opens a new, or opens an existing, POSIX shared memory object. A POSIX shared memory object is in effect a handle which can be used by unrelated processes to -.BR mmap (2) +.MR mmap 2 the same region of shared memory. The .BR shm_unlink () @@ -34,7 +34,7 @@ removing an object previously created by The operation of .BR shm_open () is analogous to that of -.BR open (2). +.MR open 2 . .I name specifies the shared memory object to be created or opened. For portable use, @@ -62,7 +62,7 @@ and any of the other flags listed here: .B O_RDONLY Open the object for read access. A shared memory object opened in this way can be -.BR mmap (2)ed +.MR mmap 2 ed only for read .RB ( PROT_READ ) access. @@ -81,18 +81,18 @@ permission bits are set according to the low-order 9 bits of .IR mode , except that those bits set in the process file mode creation mask (see -.BR umask (2)) +.MR umask 2 ) are cleared for the new object. A set of macro constants which can be used to define .I mode is listed in -.BR open (2). +.MR open 2 . (Symbolic definitions of these constants can be obtained by including .IR <sys/stat.h> .) .IP A new shared memory object initially has zero length\[em]the size of the object can be set using -.BR ftruncate (2). +.MR ftruncate 2 . The newly allocated bytes of a shared memory object are automatically initialized to 0. .TP @@ -119,23 +119,23 @@ not previously opened within the process. The .B FD_CLOEXEC flag (see -.BR fcntl (2)) +.MR fcntl 2 ) is set for the file descriptor. .P The file descriptor is normally used in subsequent calls to -.BR ftruncate (2) +.MR ftruncate 2 (for a newly created object) and -.BR mmap (2). +.MR mmap 2 . After a call to -.BR mmap (2) +.MR mmap 2 the file descriptor may be closed without affecting the memory mapping. .P The operation of .BR shm_unlink () is analogous to -.BR unlink (2): +.MR unlink 2 : it removes a shared memory object name, and, once all processes have unmapped the object, deallocates and destroys the contents of the associated memory region. @@ -222,7 +222,7 @@ a that does not exist. .SH ATTRIBUTES For an explanation of the terms used in this section, see -.BR attributes (7). +.MR attributes 7 . .TS allbox; lbx lb lb @@ -246,7 +246,7 @@ shared memory object\[em]this may not be so on other UNIX systems. .P The POSIX shared memory object implementation on Linux makes use of a dedicated -.BR tmpfs (5) +.MR tmpfs 5 filesystem that is normally mounted under .IR /dev/shm . .SH STANDARDS @@ -495,14 +495,14 @@ main(int argc, char *argv[]) .\" SRC END .in .SH SEE ALSO -.BR close (2), -.BR fchmod (2), -.BR fchown (2), -.BR fcntl (2), -.BR fstat (2), -.BR ftruncate (2), -.BR memfd_create (2), -.BR mmap (2), -.BR open (2), -.BR umask (2), -.BR shm_overview (7) +.MR close 2 , +.MR fchmod 2 , +.MR fchown 2 , +.MR fcntl 2 , +.MR fstat 2 , +.MR ftruncate 2 , +.MR memfd_create 2 , +.MR mmap 2 , +.MR open 2 , +.MR umask 2 , +.MR shm_overview 7 |