source: rtems/cpukit/posix/src/mqueuesend.c @ a0e6c73

4.115
Last change on this file since a0e6c73 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 *  NOTE:  The structure of the routines is identical to that of POSIX
3 *         Message_queues to leave the option of having unnamed message
4 *         queues at a future date.  They are currently not part of the
5 *         POSIX standard but unnamed message_queues are.  This is also
6 *         the reason for the apparently unnecessary tracking of
7 *         the process_shared attribute.  [In addition to the fact that
8 *         it would be trivial to add pshared to the mq_attr structure
9 *         and have process private message queues.]
10 *
11 *         This code ignores the O_RDONLY/O_WRONLY/O_RDWR flag at open
12 *         time.
13 *
14 *  COPYRIGHT (c) 1989-2008.
15 *  On-Line Applications Research Corporation (OAR).
16 *
17 *  The license and distribution terms for this file may be
18 *  found in the file LICENSE in this distribution or at
19 *  http://www.rtems.com/license/LICENSE.
20 */
21
22#if HAVE_CONFIG_H
23#include "config.h"
24#endif
25
26#include <stdarg.h>
27
28#include <pthread.h>
29#include <limits.h>
30#include <errno.h>
31#include <fcntl.h>
32#include <mqueue.h>
33
34#include <rtems/system.h>
35#include <rtems/score/watchdog.h>
36#include <rtems/seterr.h>
37#include <rtems/posix/mqueue.h>
38#include <rtems/posix/time.h>
39
40/*
41 *  15.2.4 Send a Message to a Message Queue, P1003.1b-1993, p. 277
42 *
43 *  NOTE: P1003.4b/D8, p. 45 adds mq_timedsend().
44 */
45
46int mq_send(
47  mqd_t         mqdes,
48  const char   *msg_ptr,
49  size_t        msg_len,
50  unsigned int  msg_prio
51)
52{
53  return _POSIX_Message_queue_Send_support(
54    mqdes,
55    msg_ptr,
56    msg_len,
57    msg_prio,
58    true,
59    THREAD_QUEUE_WAIT_FOREVER
60  );
61}
Note: See TracBrowser for help on using the repository browser.