source: rtems/cpukit/posix/include/rtems/posix/mqueue.h @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/**
2 * @file
3 *
4 * @brief POSIX Message Queues Private Private Support
5 *
6 * This include file contains all the private support information for
7 * POSIX Message Queues.
8 *
9 * The structure of the routines is identical to that of POSIX
10 * Message_queues to leave the option of having unnamed message
11 * queues at a future date.  They are currently not part of the
12 * POSIX standard but unnamed message_queues are.  This is also
13 * the reason for the apparently unnecessary tracking of
14 * the process_shared attribute.  [In addition to the fact that
15 * it would be trivial to add pshared to the mq_attr structure
16 * and have process private message queues.]
17 *
18 * This code ignores the O_RDONLY/O_WRONLY/O_RDWR flag at open
19 * time.
20 */
21
22/*
23 *  COPYRIGHT (c) 1989-2011.
24 *  On-Line Applications Research Corporation (OAR).
25 *
26 *  The license and distribution terms for this file may be
27 *  found in the file LICENSE in this distribution or at
28 *  http://www.rtems.org/license/LICENSE.
29 */
30
31#ifndef _RTEMS_POSIX_MQUEUE_H
32#define _RTEMS_POSIX_MQUEUE_H
33
34#include <signal.h>
35#include <mqueue.h> /* struct mq_attr */
36#include <rtems/score/coremsg.h>
37#include <rtems/score/object.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/**
44 *  @defgroup POSIX_MQUEUE_P Message Queues Private Support
45 *
46 *  @ingroup POSIXAPI
47 *
48 */
49/**@{**/
50
51/*
52 *  Data Structure used to manage a POSIX message queue
53 */
54
55typedef struct {
56   Objects_Control             Object;
57   int                         process_shared;
58   bool                        named;
59   bool                        linked;
60   uint32_t                    open_count;
61   CORE_message_queue_Control  Message_queue;
62   struct sigevent             notification;
63}  POSIX_Message_queue_Control;
64
65typedef struct {
66   Objects_Control              Object;
67   POSIX_Message_queue_Control *Queue;
68   int                          oflag;
69} POSIX_Message_queue_Control_fd;
70
71/** @} */
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif
78/*  end of include file */
Note: See TracBrowser for help on using the repository browser.