Changeset ade17392 in rtems


Ignore:
Timestamp:
Aug 5, 2009, 3:29:19 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
b6f8f03
Parents:
76a670b
Message:

2009-08-05 Joel Sherrill <joel.sherrill@…>

  • posix/include/rtems/posix/config.h, posix/src/mqueue.c, sapi/include/confdefs.h: Add configuration of posix message queue file descriptors as separate entity.
Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r76a670b rade17392  
     12009-08-05      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * posix/include/rtems/posix/config.h, posix/src/mqueue.c,
     4        sapi/include/confdefs.h: Add configuration of posix message queue
     5        file descriptors as separate entity.
     6
    172009-08-05      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • cpukit/posix/include/rtems/posix/config.h

    r76a670b rade17392  
    5353  int                                 maximum_queued_signals;
    5454  int                                 maximum_message_queues;
     55  int                                 maximum_message_queue_descriptors;
    5556  int                                 maximum_semaphores;
    5657  int                                 maximum_barriers;
  • cpukit/posix/src/mqueue.c

    r76a670b rade17392  
    7474    OBJECTS_POSIX_API,
    7575    OBJECTS_POSIX_MESSAGE_QUEUE_FDS,
    76     Configuration_POSIX_API.maximum_message_queues,
     76    Configuration_POSIX_API.maximum_message_queue_descriptors,
    7777    sizeof( POSIX_Message_queue_Control_fd ),
    7878                                /* size of this object's control block */
  • cpukit/sapi/include/confdefs.h

    r76a670b rade17392  
    2727 
    2828/*
    29  *  COPYRIGHT (c) 1989-2008.
     29 *  COPYRIGHT (c) 1989-2009.
    3030 *  On-Line Applications Research Corporation (OAR).
    3131 *
     
    10901090    #define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES                     0
    10911091    #define CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES(_message_queues) 0
     1092    #define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS          0
     1093    #define CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES(_mqueue_fds)     0
    10921094  #else
    10931095    #define CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES(_message_queues) \
    10941096      _Configure_POSIX_Named_Object_RAM( \
    10951097         _message_queues, sizeof(POSIX_Message_queue_Control) )
     1098
     1099    /* default to same number */
     1100    #ifndef CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS
     1101       #define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS \
     1102               CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES
     1103    #endif
     1104
     1105    #define CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES(_mqueue_fds) \
     1106      _Configure_POSIX_Named_Object_RAM( \
     1107         _mqueue_fds, sizeof(POSIX_Message_queue_Control_fd) )
    10961108  #endif
    10971109
     
    18431855      CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS,
    18441856      CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES,
     1857      CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS,
    18451858      CONFIGURE_MAXIMUM_POSIX_SEMAPHORES,
    18461859      CONFIGURE_MAXIMUM_POSIX_BARRIERS,
     
    20302043       (CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS != 0) || \
    20312044       (CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES != 0) || \
     2045       (CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS != 0) || \
    20322046       (CONFIGURE_MAXIMUM_POSIX_SEMAPHORES != 0) || \
    20332047       (CONFIGURE_MAXIMUM_POSIX_BARRIERS != 0) || \
     
    21032117#endif
    21042118
     2119/*
     2120 *  If you have fewer POSIX Message Queue Descriptors than actual
     2121 *  POSIX Message Queues, then you will not be able to open all the
     2122 *  queues.
     2123 */
     2124#if (CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS < \
     2125     CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES)
     2126  #error "Fewer POSIX Message Queue descriptors than Queues!"
     2127#endif
     2128
    21052129#endif
    21062130/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.