Skip to contentSkip to conversation

New: msg_len of mq_receive()

Bug 64571 bugzilla-daemon-590EEB7GvNiWaY/[email protected] 1 participant 3 messages Nov 7, 2013 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=64571

Bug ID: 64571
Summary: msg_len of mq_receive()
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
Assignee: documentation_man-pages-ztI5WcYan/[email protected]
Reporter: [email protected]
Regression: No

In the DESCRIPTION section of the manpage of "man 3 mq_receive", it says: "The msg_len argument specifies the size of the buffer pointed to by msg_ptr; this must be greater than the mq_msgsize attribute of the queue (see mq_getattr(3))."
Further down, in the ERROR section, it says: "EMSGSIZE msg_len was less than
the mq_msgsize attribute of the message queue."

I think the description should say "this must be *greater or equal* than the mq_msgsize attribute", because currently it says "this must be *greater* than the mq_msgsize attribute", but according to the ERROR section it would only be an error if "msg_len was less than the mq_msgsize attribute".

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

[Bug 64571] msg_len of man 3 mq_receive

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=64571

janh <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|msg_len of mq_receive() |msg_len of man 3 mq_receive

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

[Bug 64571] msg_len of man 3 mq_receive

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=64571

Michael Kerrisk <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |CODE_FIX

--- Comment #1 from Michael Kerrisk <[email protected]> --- Yes, of course that's correct. I've applied a patch to add "or equal to".

Thanks for the report.

Cheers,

Michael

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html