mirror of https://github.com/mkerrisk/man-pages
shm_open.3, mq_overview.7: Recast discussion on name length to exclude terminating NULL byte
Probably it's clearer to describe the length of the IPC object name as a count that excludes the null terminator. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
13e0f2a9d3
commit
bd8384888b
|
@ -23,7 +23,7 @@
|
|||
.\" the source, must acknowledge the copyright and authors of this work.
|
||||
.\"
|
||||
.\" FIXME . Add an example to this page
|
||||
.TH SHM_OPEN 3 2009-02-20 "Linux" "Linux Programmer's Manual"
|
||||
.TH SHM_OPEN 3 2009-02-25 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
shm_open, shm_unlink \- Create/open or unlink POSIX shared memory objects
|
||||
.SH SYNOPSIS
|
||||
|
@ -61,8 +61,8 @@ For portable use,
|
|||
a shared memory object should be identified by a name of the form
|
||||
.IR /somename ;
|
||||
that is, a null-terminated string of up to
|
||||
.BI NAME_MAX +1
|
||||
(i.e., 256) characters consisting of an initial slash,
|
||||
.BI NAME_MAX
|
||||
(i.e., 255) characters consisting of an initial slash,
|
||||
.\" glibc allows the initial slash to be omitted, and makes
|
||||
.\" multiple initial slashes equivalent to a single slash.
|
||||
.\" This differs from the implementation of POSIX message queues.
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
.\" Formatted or processed versions of this manual, if unaccompanied by
|
||||
.\" the source, must acknowledge the copyright and authors of this work.
|
||||
.\"
|
||||
.TH MQ_OVERVIEW 7 2009-02-20 "Linux" "Linux Programmer's Manual"
|
||||
.TH MQ_OVERVIEW 7 2009-02-25 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
mq_overview \- Overview of POSIX message queues
|
||||
.SH DESCRIPTION
|
||||
|
@ -44,8 +44,8 @@ which is used to refer to the open message queue in later calls.
|
|||
Each message queue is identified by a name of the form
|
||||
.IR /somename ;
|
||||
that is, a null-terminated string of up to
|
||||
.BI NAME_MAX +1
|
||||
(i.e., 256) characters consisting of an initial slash,
|
||||
.BI NAME_MAX
|
||||
(i.e., 255) characters consisting of an initial slash,
|
||||
followed by one or more characters, none of which are slashes.
|
||||
Two processes can operate on the same queue by passing the same name to
|
||||
.BR mq_open (3).
|
||||
|
|
Loading…
Reference in New Issue