[6c2675d] | 1 | /** |
---|
[cf301c9] | 2 | * @file |
---|
| 3 | * |
---|
| 4 | * @brief POSIX Message Queues Private Private Support |
---|
[5e9b32b] | 5 | * |
---|
[21242c2] | 6 | * This include file contains all the private support information for |
---|
| 7 | * POSIX Message Queues. |
---|
[e49a36cb] | 8 | * |
---|
[cf301c9] | 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. |
---|
[6c2675d] | 20 | */ |
---|
[1de949a8] | 21 | |
---|
[6c2675d] | 22 | /* |
---|
[21242c2] | 23 | * COPYRIGHT (c) 1989-2011. |
---|
[5e9b32b] | 24 | * On-Line Applications Research Corporation (OAR). |
---|
| 25 | * |
---|
[98e4ebf5] | 26 | * The license and distribution terms for this file may be |
---|
| 27 | * found in the file LICENSE in this distribution or at |
---|
[c499856] | 28 | * http://www.rtems.org/license/LICENSE. |
---|
[5e9b32b] | 29 | */ |
---|
[874297f3] | 30 | |
---|
[5ec2f12d] | 31 | #ifndef _RTEMS_POSIX_MQUEUE_H |
---|
| 32 | #define _RTEMS_POSIX_MQUEUE_H |
---|
[874297f3] | 33 | |
---|
[781262bb] | 34 | #include <signal.h> |
---|
[8eaf3bce] | 35 | #include <mqueue.h> /* struct mq_attr */ |
---|
[5e9b32b] | 36 | #include <rtems/score/coremsg.h> |
---|
| 37 | #include <rtems/score/object.h> |
---|
[972a5c5f] | 38 | |
---|
| 39 | #ifdef __cplusplus |
---|
| 40 | extern "C" { |
---|
| 41 | #endif |
---|
[5e9b32b] | 42 | |
---|
[eb08acf] | 43 | /** |
---|
[cf301c9] | 44 | * @defgroup POSIX_MQUEUE_P Message Queues Private Support |
---|
[eb08acf] | 45 | * |
---|
[a15eaaf] | 46 | * @ingroup POSIXAPI |
---|
[cf301c9] | 47 | * |
---|
[eb08acf] | 48 | */ |
---|
[b697bc6] | 49 | /**@{**/ |
---|
[324c186] | 50 | |
---|
[5e9b32b] | 51 | /* |
---|
| 52 | * Data Structure used to manage a POSIX message queue |
---|
| 53 | */ |
---|
[874297f3] | 54 | |
---|
[5e9b32b] | 55 | typedef struct { |
---|
| 56 | Objects_Control Object; |
---|
[97312fcc] | 57 | CORE_message_queue_Control Message_queue; |
---|
[f8437c8] | 58 | bool linked; |
---|
[39cefdd] | 59 | uint32_t open_count; |
---|
[5e9b32b] | 60 | struct sigevent notification; |
---|
[c8982e5] | 61 | int oflag; |
---|
[5e9b32b] | 62 | } POSIX_Message_queue_Control; |
---|
| 63 | |
---|
[e97806a] | 64 | extern const uint32_t _Configuration_POSIX_Maximum_message_queues; |
---|
| 65 | |
---|
[cf301c9] | 66 | /** @} */ |
---|
| 67 | |
---|
[5e9b32b] | 68 | #ifdef __cplusplus |
---|
| 69 | } |
---|
| 70 | #endif |
---|
[cf301c9] | 71 | |
---|
[5e9b32b] | 72 | #endif |
---|
| 73 | /* end of include file */ |
---|