Documentation:fix error describe on message queue

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2022-04-26 15:21:28 +08:00 committed by Xiang Xiao
parent aaa5316235
commit 09c6b02017

View File

@ -167,7 +167,7 @@ handlers may send messages via named message queues.
priority messages The value of ``prio`` must not exceed ``MQ_PRIO_MAX``.
If the specified message queue is full and ``O_NONBLOCK`` is not set in
the message queue, then ``mq_send()`` will block until space becomes
the message queue, then ``mq_timedsend()`` will block until space becomes
available to the queue the message or until a timeout occurs.
``mq_timedsend()`` behaves just like ``mq_send()``, except that if the
@ -188,7 +188,7 @@ handlers may send messages via named message queues.
error, -1 (``ERROR``) is returned, with ```errno`` <#ErrnoAccess>`__ set
to indicate the error:
- ``EAGAIN``. The queue was empty, and the ``O_NONBLOCK`` flag was set
- ``EAGAIN``. The queue was full, and the ``O_NONBLOCK`` flag was set
for the message queue description referred to by ``mqdes``.
- ``EINVAL``. Either ``msg`` or ``mqdes`` is ``NULL`` or the value of
``prio`` is invalid.