mq on kqueue broken after upgrade to FreeBSD 11

Lewis Donzis lew at perftech.com
Sat Oct 1 12:45:42 UTC 2016


> On Oct 1, 2016, at 4:25 AM, Konstantin Belousov <kostikbel at gmail.com> wrote:
> 
> On Fri, Sep 30, 2016 at 06:44:18PM -0400, Alexander Kabaev wrote:
>> No objection, but possible suggestion: if the primary use of this
>> symbol is for tests and nothing else, maybe it does belong in
>> FBSDprivate_1.0 FBSDprivate_1.0 section instead?
> 
> Good question. The symbols are useful for real-world code, not only for
> the tests. But I think that we should mark symbol as non-portable. Usual
> approach of adding _np suffix seems to be the right thing to do there.
> 
> What about the following ?
>
Not that I have any say in this, but that seems reasonable to me.  The functions are relevant and necessary for anything that needs a handle for a POSIX message queue, so your change would be preferable to having them appear as internal functions.  (And then they could be documented, too.)

Speaking of which, not sure if this is the appropriate place to post this, but the mq_open documentation needs a little tweaking, too.

mq_open(2)’s man page says:

SEE ALSO
     mq_close(2), mq_getattr(2), mq_receive(2), mq_send(2), mq_setattr(2),
     mq_timedreceive(3), mq_timedsend(3), mq_unlink(3), mqueuefs(5)

However, both mq_timedreceive and mq_timedsend are in section 2, not section 3.  

And, mq_unlink should probably be in section 2, but in any event, that file appears to be missing.

lew




More information about the freebsd-arch mailing list