From c8982e5f6a4857444676165deab1e08dc91a6847 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 26 Apr 2016 21:20:31 +0200 Subject: posix: Simplify message queues The mq_open() function returns a descriptor to a POSIX message queue object identified by a name. This is similar to sem_open(). In contrast to the POSIX semaphore the POSIX message queues use a separate object for the descriptor. This extra object is superfluous, since the object identifier can be used directly for this purpose, just like for the semaphores. Update #2702. Update #2555. --- testsuites/psxtests/psxconfig01/init.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'testsuites/psxtests/psxconfig01/init.c') diff --git a/testsuites/psxtests/psxconfig01/init.c b/testsuites/psxtests/psxconfig01/init.c index b4c555e836..1edd9ba9d8 100644 --- a/testsuites/psxtests/psxconfig01/init.c +++ b/testsuites/psxtests/psxconfig01/init.c @@ -130,7 +130,6 @@ const char rtems_test_name[] = "PSXCONFIG 1"; #endif #ifdef POSIX_MQ_COUNT - #define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS POSIX_MQ_COUNT #define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES POSIX_MQ_COUNT #define POSIX_MQ_0_COUNT 2 @@ -500,10 +499,6 @@ static rtems_task Init(rtems_task_argument argument) rtems_test_assert(mq >= 0); } rtems_resource_snapshot_take(&snapshot); - rtems_test_assert( - snapshot.posix_api.active_message_queue_descriptors - == CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS - ); rtems_test_assert( snapshot.posix_api.active_message_queues == CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES -- cgit v1.2.3