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

5
Last change on this file since dd6c28e was dd6c28e, checked in by Sebastian Huber <sebastian.huber@…>, on 04/25/16 at 14:25:04

posix: Delete POSIX_Message_queue_Control::named

Delete unused POSIX_Message_queue_Control::named.

  • 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   CORE_message_queue_Control  Message_queue;
58   bool                        linked;
59   uint32_t                    open_count;
60   struct sigevent             notification;
61}  POSIX_Message_queue_Control;
62
63typedef struct {
64   Objects_Control              Object;
65   POSIX_Message_queue_Control *Queue;
66   int                          oflag;
67} POSIX_Message_queue_Control_fd;
68
69/** @} */
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif
76/*  end of include file */
Note: See TracBrowser for help on using the repository browser.