From: Michael Witten <mfwitten-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Michael Kerrisk <mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] msgsnd(2): msg_bytes -> msg_qbytes
Date: Wed, 28 Apr 2010 23:59:35 +0000 [thread overview]
Message-ID: <1272503151-6937-1-git-send-email-mfwitten@gmail.com> (raw)
In-Reply-To: <4bce5f4c.0d67f10a.33b0.ffff9e3e-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org>
Mihail Paraschivescu <paraschivescu_mihail-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> reported
here:
http://marc.info/?l=linux-man&m=127160667709342&w=2
http://www.spinics.net/lists/linux-man/msg01271.html
the following:
"The queue capacity is defined by the msg_bytes field in
the associated data structure for the message queue."
If I'm not wrong, the exact name of that field in the
msqid_ds structure is msg_qbytes. The same thing appears
also on the online [POSIX] manual pages, I checked it
already.
I provided a detailed confirmation with quotes from the
Linux kernel sources:
http://marc.info/?l=linux-man&m=127181601631737&w=2
http://www.spinics.net/lists/linux-man/msg01273.html
This patch (requested by Mihail) makes the correction and
removes unnecessary implementation details.
---
man2/msgop.2 | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/man2/msgop.2 b/man2/msgop.2
index 2b29cac..f236c5a 100644
--- a/man2/msgop.2
+++ b/man2/msgop.2
@@ -102,14 +102,14 @@ by
.PP
If sufficient space is available in the queue,
.BR msgsnd ()
-succeeds immediately.
+succeeds immediately;
-(The queue capacity is defined by the
-.I msg_bytes
-field in the associated data structure for the message queue.
-During queue creation this field is initialized to
-.B MSGMNB
-bytes, but this limit can be modified using
-.BR msgctl (2).)
+the queue capacity can be queried and set via
+.BR msgctl (2)
+by using the
+.I msg_qbytes
+field of that function's
+.I msqid_ds
+pointer parameter.
If insufficient space is available in the queue, then the default
behavior of
.BR msgsnd ()
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-04-28 23:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-18 15:57 Man page typo Mihai Paraschivescu
[not found] ` <838959.52751.qm-ofs+kkYO86PrNpU5RS+xBlZ8N9CAUha/QQ4Iyu8u01E@public.gmane.org>
2010-04-21 2:13 ` Michael Witten
[not found] ` <4bce5f4c.0d67f10a.33b0.ffff9e3e-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org>
2010-04-28 23:59 ` Michael Witten [this message]
[not found] ` <1272503151-6937-1-git-send-email-mfwitten-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-05-24 6:32 ` [PATCH] msgsnd(2): msg_bytes -> msg_qbytes Michael Kerrisk
2010-05-23 4:26 ` Man page typo Michael Kerrisk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1272503151-6937-1-git-send-email-mfwitten@gmail.com \
--to=mfwitten-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).