[PATCH 01/19] posix: POSIX_Message_queue_Control::process_shared

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Apr 29 09:13:01 UTC 2016


Delete unused POSIX_Message_queue_Control::process_shared.
---
 cpukit/posix/include/rtems/posix/mqueue.h | 1 -
 cpukit/posix/src/mqueueopen.c             | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/cpukit/posix/include/rtems/posix/mqueue.h b/cpukit/posix/include/rtems/posix/mqueue.h
index 9e74fb6..a2e8fd9 100644
--- a/cpukit/posix/include/rtems/posix/mqueue.h
+++ b/cpukit/posix/include/rtems/posix/mqueue.h
@@ -55,7 +55,6 @@ extern "C" {
 typedef struct {
    Objects_Control             Object;
    CORE_message_queue_Control  Message_queue;
-   int                         process_shared;
    bool                        named;
    bool                        linked;
    uint32_t                    open_count;
diff --git a/cpukit/posix/src/mqueueopen.c b/cpukit/posix/src/mqueueopen.c
index bfdff03..9ec81c8 100644
--- a/cpukit/posix/src/mqueueopen.c
+++ b/cpukit/posix/src/mqueueopen.c
@@ -48,7 +48,6 @@
 static int _POSIX_Message_queue_Create_support(
   const char                    *name_arg,
   size_t                         name_len,
-  int                            pshared,
   struct mq_attr                *attr_ptr,
   POSIX_Message_queue_Control  **message_queue
 )
@@ -97,7 +96,6 @@ static int _POSIX_Message_queue_Create_support(
     rtems_set_errno_and_return_minus_one( ENOMEM );
   }
 
-  the_mq->process_shared  = pshared;
   the_mq->named = true;
   the_mq->open_count = 1;
   the_mq->linked = true;
@@ -230,7 +228,6 @@ mqd_t mq_open(
   status = _POSIX_Message_queue_Create_support(
     name,
     name_len,
-    true,         /* shared across processes */
     attr,
     &the_mq
   );
-- 
1.8.4.5



More information about the devel mailing list