38 #ifndef _RTEMS_CONFDEFS_OBJECTSPOSIX_H 39 #define _RTEMS_CONFDEFS_OBJECTSPOSIX_H 41 #ifndef __CONFIGURATION_TEMPLATE_h 42 #error "Do not include this file directly, use <rtems/confdefs.h> instead" 49 #include <rtems/config.h> 53 #define _Configure_Memory_for_named_objects( _number, _size ) \ 54 ( rtems_resource_maximum_per_allocation( _number ) \ 55 * _Configure_From_workspace( _POSIX_PATH_MAX + 1 ) ) 57 #ifndef CONFIGURE_MAXIMUM_POSIX_KEYS 58 #define CONFIGURE_MAXIMUM_POSIX_KEYS 0 61 #ifndef CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS 62 #define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS \ 63 ( CONFIGURE_MAXIMUM_POSIX_KEYS * \ 64 ( CONFIGURE_MAXIMUM_POSIX_THREADS + CONFIGURE_MAXIMUM_TASKS ) ) 67 #if CONFIGURE_MAXIMUM_POSIX_KEYS > 0 \ 68 && CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS < CONFIGURE_MAXIMUM_POSIX_KEYS 69 #error "CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS must be greater than or equal to CONFIGURE_MAXIMUM_POSIX_KEYS" 72 #if CONFIGURE_MAXIMUM_POSIX_KEYS == 0 \ 73 && CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS > 0 74 #warning "If CONFIGURE_MAXIMUM_POSIX_KEYS is zero, then CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS should be zero as well" 77 #if CONFIGURE_MAXIMUM_POSIX_KEYS > 0 || CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS > 0 78 #include <rtems/posix/key.h> 81 #if CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES > 0 82 #include <rtems/posix/mqueue.h> 85 #if CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS > 0 86 #include <rtems/posix/psignal.h> 89 #if CONFIGURE_MAXIMUM_POSIX_SEMAPHORES > 0 90 #include <rtems/posix/semaphore.h> 93 #if CONFIGURE_MAXIMUM_POSIX_SHMS > 0 94 #include <rtems/posix/shm.h> 97 #if CONFIGURE_MAXIMUM_POSIX_TIMERS > 0 98 #include <rtems/posix/timer.h> 105 #if CONFIGURE_MAXIMUM_POSIX_KEYS > 0 109 #if CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS > 0 110 POSIX_Keys_Key_value_pair _POSIX_Keys_Key_value_pairs[
116 const uint32_t _POSIX_Keys_Key_value_pair_maximum =
120 #if CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES > 0 121 POSIX_MESSAGE_QUEUE_INFORMATION_DEFINE(
125 #define _CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES \ 126 _Configure_Memory_for_named_objects( \ 127 CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES, \ 128 sizeof( POSIX_Message_queue_Control ) \ 131 #define _CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES 0 134 #if CONFIGURE_MAXIMUM_POSIX_SEMAPHORES > 0 137 #define _CONFIGURE_MEMORY_FOR_POSIX_SEMAPHORES \ 138 _Configure_Memory_for_named_objects( \ 139 CONFIGURE_MAXIMUM_POSIX_SEMAPHORES, \ 140 sizeof( POSIX_Semaphore_Control ) \ 143 #define _CONFIGURE_MEMORY_FOR_POSIX_SEMAPHORES 0 146 #if CONFIGURE_MAXIMUM_POSIX_SHMS > 0 149 #define _CONFIGURE_MEMORY_FOR_POSIX_SHMS \ 150 _Configure_Memory_for_named_objects( \ 151 CONFIGURE_MAXIMUM_POSIX_SHMS, \ 152 sizeof( POSIX_Shm_Control ) \ 155 #define _CONFIGURE_MEMORY_FOR_POSIX_SHMS 0 158 #if CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS > 0 159 #ifndef RTEMS_POSIX_API 160 #error "CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS must be zero if POSIX API is disabled" 163 const uint32_t _POSIX_signals_Maximum_queued_signals =
166 POSIX_signals_Siginfo_node _POSIX_signals_Siginfo_nodes[
170 #define _CONFIGURE_MEMORY_FOR_POSIX_QUEUED_SIGNALS \ 171 _Configure_From_workspace( CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS \ 172 * sizeof( POSIX_signals_Siginfo_node ) ) 174 #define _CONFIGURE_MEMORY_FOR_POSIX_QUEUED_SIGNALS 0 177 #if CONFIGURE_MAXIMUM_POSIX_TIMERS > 0 178 #ifndef RTEMS_POSIX_API 179 #error "CONFIGURE_MAXIMUM_POSIX_TIMERS must be zero if POSIX API is disabled" 189 #define _CONFIGURE_MEMORY_FOR_POSIX_OBJECTS \ 190 ( _CONFIGURE_MEMORY_FOR_POSIX_MESSAGE_QUEUES \ 191 + _CONFIGURE_MEMORY_FOR_POSIX_QUEUED_SIGNALS \ 192 + _CONFIGURE_MEMORY_FOR_POSIX_SEMAPHORES \ 193 + _CONFIGURE_MEMORY_FOR_POSIX_SHMS ) Configuration Options Workspace Support Macros.
#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES
This configuration option is an integer define.
#define CONFIGURE_MAXIMUM_POSIX_SHMS
This configuration option is an integer define.
Evaluate Thread Configuration Options.
#define CONFIGURE_MAXIMUM_POSIX_KEYS
This configuration option is an integer define.
#define CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS
This configuration option is an integer define.
#define rtems_resource_maximum_per_allocation(_resource)
Returns the maximum number per allocation of a resource number.
#define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES
This configuration option is an integer define.
#define CONFIGURE_MAXIMUM_POSIX_TIMERS
This configuration option is an integer define.
#define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS
This configuration option is an integer define.