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:
Michael Kerrisk 2009-02-25 12:47:23 +13:00
parent 13e0f2a9d3
commit bd8384888b
2 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

@ -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).