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

5
Last change on this file since a6e7d5e4 was a6e7d5e4, checked in by Sebastian Huber <sebastian.huber@…>, on 11/12/18 at 08:00:36

score: Move internal structures to objectdata.h

Update #3598.

  • Property mode set to 100644
File size: 1.8 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/objectdata.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   CORE_message_queue_Control  Message_queue;
58   bool                        linked;
59   uint32_t                    open_count;
60   struct sigevent             notification;
61   int                         oflag;
62}  POSIX_Message_queue_Control;
63
64extern const uint32_t _Configuration_POSIX_Maximum_message_queues;
65
66/** @} */
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif
73/*  end of include file */
Note: See TracBrowser for help on using the repository browser.