Project

General

Profile

Bug #5258

Incorrect range specified in mq_send(3c) manual

Added by Ryan Zezeski about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2014-10-23
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

The mq_send(3c) page specifies that the msg_prio must range from 1 to MQ_PRIO_MAX. This is incorrect, both according to POSIX and the mqueue code. The correct range is 0 to MQ_PRIO_MAX - 1.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_send.html

https://github.com/illumos/illumos-gate/blob/master/usr/src/lib/libc/port/rt/mqueue.c#L684

I have a patch ready and will send to the mailing list today.

History

#1

Updated by Electric Monk about 5 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit b22e5fb9dace0d6facdf8c239062fb9c344c95b9

commit  b22e5fb9dace0d6facdf8c239062fb9c344c95b9
Author: Ryan Zezeski <ryan@zinascii.com>
Date:   2014-10-24T23:16:43.000Z

    5258 Incorrect range specified in mq_send(3c) manual
    Reviewed by: Dan McDonald <danmcd@omniti.com>
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF