Update mq_send() and mq_receive() description

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@165 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2007-03-28 16:00:57 +00:00
parent 3e352ca10b
commit 5f5d5496d9
4 changed files with 357 additions and 308 deletions

View File

@ -452,6 +452,8 @@ Other memory:
0.2.3 2007-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> 0.2.3 2007-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
* mq_receive and mq_send now return errno's appropriately
* mq_receive and mq_send are now correctly awakened by signals.
* Started m68322 * Started m68322
</pre></ul> </pre></ul>

File diff suppressed because it is too large Load Diff

View File

@ -87,7 +87,7 @@
* "mqdes." If the size of the buffer in bytes (msglen) is * "mqdes." If the size of the buffer in bytes (msglen) is
* less than the "mq_msgsize" attribute of the message * less than the "mq_msgsize" attribute of the message
* queue, mq_receive will return an error. Otherwise, the * queue, mq_receive will return an error. Otherwise, the
* select message is removed from the queue and copied to * selected message is removed from the queue and copied to
* "msg." * "msg."
* *
* If the message queue is empty and O_NONBLOCK was not * If the message queue is empty and O_NONBLOCK was not
@ -103,8 +103,7 @@
* mqdes - Message Queue Descriptor * mqdes - Message Queue Descriptor
* msg - Buffer to receive the message * msg - Buffer to receive the message
* msglen - Size of the buffer in bytes * msglen - Size of the buffer in bytes
* prio - If not NULL, the location to store message * prio - If not NULL, the location to store message priority.
* priority.
* *
* Return Value: * Return Value:
* One success, the length of the selected message in bytes.is * One success, the length of the selected message in bytes.is

View File

@ -177,7 +177,7 @@ FAR mqmsg_t *mq_msgalloc(void)
* This length must not exceed the maximum message length * This length must not exceed the maximum message length
* from the mq_getattr(). * from the mq_getattr().
* *
* If the message queue is not full, mq_send() will in the * If the message queue is not full, mq_send() place the
* message in the message queue at the position indicated * message in the message queue at the position indicated
* by the "prio" argrument. Messages with higher priority * by the "prio" argrument. Messages with higher priority
* will be inserted before lower priority messages. The * will be inserted before lower priority messages. The
@ -198,8 +198,8 @@ FAR mqmsg_t *mq_msgalloc(void)
* prio - The priority of the message * prio - The priority of the message
* *
* Return Value: * Return Value:
* On success, mq_send() returns0 (OK); on error, -1 (ERROR) * On success, mq_send() returns 0 (OK); on error, -1 (ERROR)
* is returned, with errno set to indicate the error: * is returned, with errno set to indicate the error:
* *
* EAGAIN The queue was empty, and the O_NONBLOCK flag was * EAGAIN The queue was empty, and the O_NONBLOCK flag was
* set for the message queue description referred to * set for the message queue description referred to