[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-current-users
Subject:    Re: mq_receive man-page error?
From:       Paul Goyette <paul () vps1 ! whooppee ! com>
Date:       2015-11-18 13:09:35
Message-ID: Pine.NEB.4.64.1511182109220.20078 () vps1 ! whooppee ! com
[Download RAW message or body]

On Wed, 18 Nov 2015, Christos Zoulas wrote:

> In article <Pine.NEB.4.64.1511181312100.17964@vps1.whooppee.com>,
> Paul Goyette  <paul@whooppee.com> wrote:
>> SYNOPSIS says
>>
>>      ssize_t
>>      mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len,
>>          unsigned *msg_prio);
>>
>> RETURN VALUES says
>>      Upon successful completion, the mq_receive() and mq_timedreceive()
>>      functions return a value of zero. ...
>>
>> Seems to me that if mq_receive() returns a ssize_t, then it should be
>> returning the size of the received message?
>>
>
> Yes, our man page is incorrect:
> http://pubs.opengroup.org/onlinepubs/009695399/functions/mq_receive.html

I'll update it shortly.


+------------------+--------------------------+-------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org  |
+------------------+--------------------------+-------------------------+
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic