source: rtems/cpukit/posix/src/mqueuereceive.c @ 21789a21

5
Last change on this file since 21789a21 was 21789a21, checked in by Sebastian Huber <sebastian.huber@…>, on 07/28/15 at 12:45:42

score: Rename _POSIX_Absolute_timeout_to_ticks()

Rename _POSIX_Absolute_timeout_to_ticks() to
_TOD_Absolute_timeout_to_ticks() and move it to the score directory.
Delete empty <rtems/posix/time.h>.

  • Property mode set to 100644
File size: 902 bytes
Line 
1/**
2 *  @file
3 *
4 *  @brief Receive a Message From a Message Queue
5 *  @ingroup POSIX_MQUEUE
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2008.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <stdarg.h>
22
23#include <pthread.h>
24#include <limits.h>
25#include <errno.h>
26#include <fcntl.h>
27#include <mqueue.h>
28
29#include <rtems/system.h>
30#include <rtems/score/watchdog.h>
31#include <rtems/seterr.h>
32#include <rtems/posix/mqueueimpl.h>
33
34ssize_t mq_receive(
35  mqd_t         mqdes,
36  char         *msg_ptr,
37  size_t        msg_len,
38  unsigned int *msg_prio
39)
40{
41  return _POSIX_Message_queue_Receive_support(
42    mqdes,
43    msg_ptr,
44    msg_len,
45    msg_prio,
46    true,
47    WATCHDOG_NO_TIMEOUT
48  );
49}
Note: See TracBrowser for help on using the repository browser.