Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mq_receive man-page error?



In article <Pine.NEB.4.64.1511181312100.17964%vps1.whooppee.com@localhost>,
Paul Goyette  <paul%whooppee.com@localhost> 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

christos



Home | Main Index | Thread Index | Old Index