diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-04 17:46:39 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-04 17:46:39 +0000 |
commit | 484a76996eeb65ad726b65946642516c70b3257b (patch) | |
tree | 6aed4eba45d4eb704f004622ecbf63e275bb876c | |
parent | 2008-09-04 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-484a76996eeb65ad726b65946642516c70b3257b.tar.bz2 |
Convert to "bool".
124 files changed, 364 insertions, 365 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/asr.h b/cpukit/rtems/include/rtems/rtems/asr.h index 1d5ba6194f..ea5fab8538 100644 --- a/cpukit/rtems/include/rtems/rtems/asr.h +++ b/cpukit/rtems/include/rtems/rtems/asr.h @@ -19,12 +19,12 @@ #ifndef _RTEMS_RTEMS_ASR_H #define _RTEMS_RTEMS_ASR_H +#include <rtems/rtems/modes.h> + #ifdef __cplusplus extern "C" { #endif -#include <rtems/rtems/modes.h> - /** * @defgroup ClassicASR Classic API ASR Support * @@ -57,7 +57,7 @@ typedef rtems_asr ( *rtems_asr_entry )( */ typedef struct { /** This field indicates if are ASRs enabled currently. */ - boolean is_enabled; + bool is_enabled; /** This field indicates if address of the signal handler function. */ rtems_asr_entry handler; /** This field indicates if the task mode the signal will run with. */ diff --git a/cpukit/rtems/include/rtems/rtems/clock.h b/cpukit/rtems/include/rtems/rtems/clock.h index 721e30ae35..7e6336d606 100644 --- a/cpukit/rtems/include/rtems/rtems/clock.h +++ b/cpukit/rtems/include/rtems/rtems/clock.h @@ -245,7 +245,7 @@ rtems_status_code rtems_clock_get_uptime( * * @return This method returns TRUE if the TOD is valid and FALSE otherwise. */ -boolean _TOD_Validate( +bool _TOD_Validate( rtems_time_of_day *the_tod ); diff --git a/cpukit/rtems/include/rtems/rtems/config.h b/cpukit/rtems/include/rtems/rtems/config.h index 4298e6a215..05b232482f 100644 --- a/cpukit/rtems/include/rtems/rtems/config.h +++ b/cpukit/rtems/include/rtems/rtems/config.h @@ -18,13 +18,13 @@ #ifndef _RTEMS_RTEMS_CONFIG_H #define _RTEMS_RTEMS_CONFIG_H +#include <rtems/rtems/types.h> +#include <rtems/rtems/tasks.h> + #ifdef __cplusplus extern "C" { #endif -#include <rtems/rtems/types.h> -#include <rtems/rtems/tasks.h> - /** * @defgroup ClassicConfig Classic API Configuration * @@ -51,7 +51,7 @@ typedef struct { * This field indicates whether Classic API notepads are * enabled or disabled. */ - boolean notepads_enabled; + bool notepads_enabled; /** * This field contains the maximum number of Classic API diff --git a/cpukit/rtems/include/rtems/rtems/object.h b/cpukit/rtems/include/rtems/rtems/object.h index 4437141049..58ca9f8b6c 100644 --- a/cpukit/rtems/include/rtems/rtems/object.h +++ b/cpukit/rtems/include/rtems/rtems/object.h @@ -15,15 +15,15 @@ #ifndef _RTEMS_RTEMS_OBJECT_H #define _RTEMS_RTEMS_OBJECT_H -#ifdef __cplusplus -extern "C" { -#endif - #include <stdint.h> #include <rtems/score/object.h> #include <rtems/rtems/status.h> #include <rtems/rtems/types.h> +#ifdef __cplusplus +extern "C" { +#endif + /** * @defgroup ClassicClassInfo Classic API Class Information * @@ -43,7 +43,7 @@ typedef struct { /** This field is the number of object instances configured for this class. */ uint32_t maximum; /** This field indicates if the class is configured for auto-extend. */ - boolean auto_extend; + bool auto_extend; /** This field is the number of currently unallocated objects. */ uint32_t unallocated; } rtems_object_api_class_information; diff --git a/cpukit/rtems/include/rtems/rtems/sem.h b/cpukit/rtems/include/rtems/rtems/sem.h index 8fff8a60ab..d6385b9e64 100644 --- a/cpukit/rtems/include/rtems/rtems/sem.h +++ b/cpukit/rtems/include/rtems/rtems/sem.h @@ -202,7 +202,7 @@ rtems_status_code rtems_semaphore_flush( * option_set, then the routine returns. Otherwise, the calling task * is blocked until a unit becomes available. */ -boolean _Semaphore_Seize( +bool _Semaphore_Seize( Semaphore_Control *the_semaphore, uint32_t option_set ); diff --git a/cpukit/rtems/include/rtems/rtems/support.h b/cpukit/rtems/include/rtems/rtems/support.h index b204d498a7..25f6ebf08d 100644 --- a/cpukit/rtems/include/rtems/rtems/support.h +++ b/cpukit/rtems/include/rtems/rtems/support.h @@ -63,7 +63,7 @@ extern "C" { * * @return TRUE if successful */ -boolean rtems_workspace_get_information( +bool rtems_workspace_get_information( Heap_Information_block *the_info ); @@ -78,7 +78,7 @@ boolean rtems_workspace_get_information( * * @return TRUE if successful */ -boolean rtems_workspace_allocate( +bool rtems_workspace_allocate( size_t bytes, void **pointer ); @@ -93,7 +93,7 @@ boolean rtems_workspace_allocate( * * @return TRUE if successful */ -boolean rtems_workspace_free( +bool rtems_workspace_free( void *pointer ); diff --git a/cpukit/rtems/inline/rtems/rtems/asr.inl b/cpukit/rtems/inline/rtems/rtems/asr.inl index 918a7d87c1..1cb3246f1f 100644 --- a/cpukit/rtems/inline/rtems/rtems/asr.inl +++ b/cpukit/rtems/inline/rtems/rtems/asr.inl @@ -38,7 +38,7 @@ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { - information->is_enabled = TRUE; + information->is_enabled = true; information->handler = NULL; information->mode_set = RTEMS_DEFAULT_MODES; information->signals_posted = 0; @@ -73,7 +73,7 @@ RTEMS_INLINE_ROUTINE void _ASR_Swap_signals ( * This function returns TRUE if the given asr_handler is NULL and * FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _ASR_Is_null_handler ( +RTEMS_INLINE_ROUTINE bool _ASR_Is_null_handler ( rtems_asr_entry asr_handler ) { @@ -86,7 +86,7 @@ RTEMS_INLINE_ROUTINE boolean _ASR_Is_null_handler ( * This function returns TRUE if there are signals pending in the * given RTEMS_ASR information record and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _ASR_Are_signals_pending ( +RTEMS_INLINE_ROUTINE bool _ASR_Are_signals_pending ( ASR_Information *information ) { diff --git a/cpukit/rtems/inline/rtems/rtems/attr.inl b/cpukit/rtems/inline/rtems/rtems/attr.inl index d66a1920ed..a426e40777 100644 --- a/cpukit/rtems/inline/rtems/rtems/attr.inl +++ b/cpukit/rtems/inline/rtems/rtems/attr.inl @@ -62,11 +62,11 @@ RTEMS_INLINE_ROUTINE rtems_attribute _Attributes_Clear ( * This function returns TRUE if the floating point attribute is * enabled in the attribute_set and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Attributes_Is_floating_point( +RTEMS_INLINE_ROUTINE bool _Attributes_Is_floating_point( rtems_attribute attribute_set ) { - return ( attribute_set & RTEMS_FLOATING_POINT ); + return ( attribute_set & RTEMS_FLOATING_POINT ) ? true : false; } #if defined(RTEMS_MULTIPROCESSING) @@ -76,11 +76,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_floating_point( * This function returns TRUE if the global object attribute is * enabled in the attribute_set and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Attributes_Is_global( +RTEMS_INLINE_ROUTINE bool _Attributes_Is_global( rtems_attribute attribute_set ) { - return ( attribute_set & RTEMS_GLOBAL ); + return ( attribute_set & RTEMS_GLOBAL ) ? true : false; } #endif @@ -90,11 +90,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_global( * This function returns TRUE if the priority attribute is * enabled in the attribute_set and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority( +RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority( rtems_attribute attribute_set ) { - return ( attribute_set & RTEMS_PRIORITY ); + return ( attribute_set & RTEMS_PRIORITY ) ? true : false; } /** @@ -103,7 +103,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority( * This function returns TRUE if the binary semaphore attribute is * enabled in the attribute_set and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Attributes_Is_binary_semaphore( +RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore( rtems_attribute attribute_set ) { @@ -116,7 +116,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_binary_semaphore( * This function returns TRUE if the simple binary semaphore attribute is * enabled in the attribute_set and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Attributes_Is_simple_binary_semaphore( +RTEMS_INLINE_ROUTINE bool _Attributes_Is_simple_binary_semaphore( rtems_attribute attribute_set ) { @@ -130,7 +130,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_simple_binary_semaphore( * This function returns TRUE if the counting semaphore attribute is * enabled in the attribute_set and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Attributes_Is_counting_semaphore( +RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { @@ -143,11 +143,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_counting_semaphore( * This function returns TRUE if the priority inheritance attribute * is enabled in the attribute_set and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Attributes_Is_inherit_priority( +RTEMS_INLINE_ROUTINE bool _Attributes_Is_inherit_priority( rtems_attribute attribute_set ) { - return ( attribute_set & RTEMS_INHERIT_PRIORITY ); + return ( attribute_set & RTEMS_INHERIT_PRIORITY ) ? true : false; } /** @@ -156,11 +156,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_inherit_priority( * This function returns TRUE if the priority ceiling attribute * is enabled in the attribute_set and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority_ceiling( +RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority_ceiling( rtems_attribute attribute_set ) { - return ( attribute_set & RTEMS_PRIORITY_CEILING ); + return ( attribute_set & RTEMS_PRIORITY_CEILING ) ? true : false; } /** @@ -169,11 +169,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority_ceiling( * This function returns TRUE if the barrier automatic release * attribute is enabled in the attribute_set and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Attributes_Is_barrier_automatic( +RTEMS_INLINE_ROUTINE bool _Attributes_Is_barrier_automatic( rtems_attribute attribute_set ) { - return ( attribute_set & RTEMS_BARRIER_AUTOMATIC_RELEASE ); + return ( attribute_set & RTEMS_BARRIER_AUTOMATIC_RELEASE ) ? true : false; } /** @@ -182,11 +182,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_barrier_automatic( * This function returns TRUE if the system task attribute * is enabled in the attribute_set and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Attributes_Is_system_task( +RTEMS_INLINE_ROUTINE bool _Attributes_Is_system_task( rtems_attribute attribute_set ) { - return ( attribute_set & RTEMS_SYSTEM_TASK ); + return ( attribute_set & RTEMS_SYSTEM_TASK ) ? true : false; } /**@}*/ diff --git a/cpukit/rtems/inline/rtems/rtems/barrier.inl b/cpukit/rtems/inline/rtems/rtems/barrier.inl index bc9d4d79dc..3bec0f2075 100644 --- a/cpukit/rtems/inline/rtems/rtems/barrier.inl +++ b/cpukit/rtems/inline/rtems/rtems/barrier.inl @@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( * * This function returns TRUE if the_barrier is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Barrier_Is_null ( +RTEMS_INLINE_ROUTINE bool _Barrier_Is_null ( Barrier_Control *the_barrier ) { diff --git a/cpukit/rtems/inline/rtems/rtems/dpmem.inl b/cpukit/rtems/inline/rtems/rtems/dpmem.inl index 5528878f18..5b944484b5 100644 --- a/cpukit/rtems/inline/rtems/rtems/dpmem.inl +++ b/cpukit/rtems/inline/rtems/rtems/dpmem.inl @@ -75,9 +75,9 @@ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get ( /** * @brief Dual_ported_memory_Is_null * - * This function returns TRUE if the_port is NULL and FALSE otherwise. + * This function returns true if the_port is NULL and false otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Dual_ported_memory_Is_null( +RTEMS_INLINE_ROUTINE bool _Dual_ported_memory_Is_null( Dual_ported_memory_Control *the_port ) { diff --git a/cpukit/rtems/inline/rtems/rtems/eventset.inl b/cpukit/rtems/inline/rtems/rtems/eventset.inl index c3ff7c4241..35b74517b2 100644 --- a/cpukit/rtems/inline/rtems/rtems/eventset.inl +++ b/cpukit/rtems/inline/rtems/rtems/eventset.inl @@ -32,7 +32,7 @@ * This function returns TRUE if on events are posted in the event_set, * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Event_sets_Is_empty( +RTEMS_INLINE_ROUTINE bool _Event_sets_Is_empty( rtems_event_set the_event_set ) { diff --git a/cpukit/rtems/inline/rtems/rtems/message.inl b/cpukit/rtems/inline/rtems/rtems/message.inl index 1155658136..dfaeb25fb3 100644 --- a/cpukit/rtems/inline/rtems/rtems/message.inl +++ b/cpukit/rtems/inline/rtems/rtems/message.inl @@ -35,7 +35,7 @@ * This function places the_message at the rear of the outstanding * messages on the_message_queue. */ -RTEMS_INLINE_ROUTINE boolean _Message_queue_Is_null ( +RTEMS_INLINE_ROUTINE bool _Message_queue_Is_null ( Message_queue_Control *the_message_queue ) { diff --git a/cpukit/rtems/inline/rtems/rtems/modes.inl b/cpukit/rtems/inline/rtems/rtems/modes.inl index 76802a4289..d0dfe4932b 100644 --- a/cpukit/rtems/inline/rtems/rtems/modes.inl +++ b/cpukit/rtems/inline/rtems/rtems/modes.inl @@ -33,12 +33,12 @@ * This function returns TRUE if any of the mode flags in mask * are set in mode_set, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Modes_Mask_changed ( +RTEMS_INLINE_ROUTINE bool _Modes_Mask_changed ( Modes_Control mode_set, Modes_Control masks ) { - return ( mode_set & masks ); + return ( mode_set & masks ) ? true : false; } /** @@ -47,7 +47,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Mask_changed ( * This function returns TRUE if mode_set indicates that Asynchronous * Signal Processing is disabled, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Modes_Is_asr_disabled ( +RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled ( Modes_Control mode_set ) { @@ -60,7 +60,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Is_asr_disabled ( * This function returns TRUE if mode_set indicates that preemption * is enabled, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Modes_Is_preempt ( +RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt ( Modes_Control mode_set ) { @@ -73,7 +73,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Is_preempt ( * This function returns TRUE if mode_set indicates that timeslicing * is enabled, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Modes_Is_timeslice ( +RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice ( Modes_Control mode_set ) { diff --git a/cpukit/rtems/inline/rtems/rtems/options.inl b/cpukit/rtems/inline/rtems/rtems/options.inl index d079a50a44..fd8c3ba234 100644 --- a/cpukit/rtems/inline/rtems/rtems/options.inl +++ b/cpukit/rtems/inline/rtems/rtems/options.inl @@ -33,11 +33,11 @@ * This function returns TRUE if the RTEMS_NO_WAIT option is enabled in * option_set, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Options_Is_no_wait ( +RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait ( rtems_option option_set ) { - return (option_set & RTEMS_NO_WAIT); + return (option_set & RTEMS_NO_WAIT) ? true : false; } /** @@ -46,11 +46,11 @@ RTEMS_INLINE_ROUTINE boolean _Options_Is_no_wait ( * This function returns TRUE if the RTEMS_EVENT_ANY option is enabled in * OPTION_SET, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Options_Is_any ( +RTEMS_INLINE_ROUTINE bool _Options_Is_any ( rtems_option option_set ) { - return (option_set & RTEMS_EVENT_ANY); + return (option_set & RTEMS_EVENT_ANY) ? true : false; } /**@}*/ diff --git a/cpukit/rtems/inline/rtems/rtems/part.inl b/cpukit/rtems/inline/rtems/rtems/part.inl index 060dd5850d..9cab7013bb 100644 --- a/cpukit/rtems/inline/rtems/rtems/part.inl +++ b/cpukit/rtems/inline/rtems/rtems/part.inl @@ -60,7 +60,7 @@ RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( * This function returns TRUE if the_buffer is on a valid buffer * boundary for the_partition, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_on_boundary ( +RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_on_boundary ( void *the_buffer, Partition_Control *the_partition ) @@ -81,7 +81,7 @@ RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_on_boundary ( * This function returns TRUE if the_buffer is a valid buffer from * the_partition, otherwise FALSE is returned. */ -RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_valid ( +RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_valid ( Chain_Node *the_buffer, Partition_Control *the_partition ) @@ -105,7 +105,7 @@ RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_valid ( * will result in the allocation of buffers whose first byte is * properly aligned, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_size_aligned ( +RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned ( uint32_t buffer_size ) { @@ -162,7 +162,7 @@ RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( * This function returns TRUE if the_partition is NULL * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Partition_Is_null ( +RTEMS_INLINE_ROUTINE bool _Partition_Is_null ( Partition_Control *the_partition ) { diff --git a/cpukit/rtems/inline/rtems/rtems/ratemon.inl b/cpukit/rtems/inline/rtems/rtems/ratemon.inl index 3fcb845da1..2e8964faa1 100644 --- a/cpukit/rtems/inline/rtems/rtems/ratemon.inl +++ b/cpukit/rtems/inline/rtems/rtems/ratemon.inl @@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( * This function returns TRUE if the_period is in the ACTIVE state, * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_active ( +RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_active ( Rate_monotonic_Control *the_period ) { @@ -89,7 +89,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_active ( * This function returns TRUE if the_period is in the ACTIVE state, * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_inactive ( +RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_inactive ( Rate_monotonic_Control *the_period ) { @@ -102,7 +102,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_inactive ( * This function returns TRUE if the_period is in the EXPIRED state, * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_expired ( +RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_expired ( Rate_monotonic_Control *the_period ) { @@ -114,7 +114,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_expired ( * * This function returns TRUE if the_period is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_null ( +RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_null ( Rate_monotonic_Control *the_period ) { diff --git a/cpukit/rtems/inline/rtems/rtems/region.inl b/cpukit/rtems/inline/rtems/rtems/region.inl index b5f612ef51..18380e2862 100644 --- a/cpukit/rtems/inline/rtems/rtems/region.inl +++ b/cpukit/rtems/inline/rtems/rtems/region.inl @@ -89,7 +89,7 @@ RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( * * This function frees the_segment to the_region. */ -RTEMS_INLINE_ROUTINE boolean _Region_Free_segment ( +RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( Region_Control *the_region, void *the_segment ) @@ -102,7 +102,7 @@ RTEMS_INLINE_ROUTINE boolean _Region_Free_segment ( * * This function returns TRUE if the_region is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Region_Is_null ( +RTEMS_INLINE_ROUTINE bool _Region_Is_null ( Region_Control *the_region ) { diff --git a/cpukit/rtems/inline/rtems/rtems/sem.inl b/cpukit/rtems/inline/rtems/rtems/sem.inl index 43523eba03..de876d896a 100644 --- a/cpukit/rtems/inline/rtems/rtems/sem.inl +++ b/cpukit/rtems/inline/rtems/rtems/sem.inl @@ -97,7 +97,7 @@ RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get_interrupt_disable ( * * This function returns TRUE if the_semaphore is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Semaphore_Is_null ( +RTEMS_INLINE_ROUTINE bool _Semaphore_Is_null ( Semaphore_Control *the_semaphore ) { diff --git a/cpukit/rtems/inline/rtems/rtems/status.inl b/cpukit/rtems/inline/rtems/rtems/status.inl index 042f426de3..ba3d41b887 100644 --- a/cpukit/rtems/inline/rtems/rtems/status.inl +++ b/cpukit/rtems/inline/rtems/rtems/status.inl @@ -33,7 +33,7 @@ * This function returns TRUE if the status code is equal to RTEMS_SUCCESSFUL, * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean rtems_is_status_successful( +RTEMS_INLINE_ROUTINE bool rtems_is_status_successful( rtems_status_code code ) { @@ -46,7 +46,7 @@ RTEMS_INLINE_ROUTINE boolean rtems_is_status_successful( * This function returns TRUE if the status code1 is equal to code2, * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean rtems_are_statuses_equal( +RTEMS_INLINE_ROUTINE bool rtems_are_statuses_equal( rtems_status_code code1, rtems_status_code code2 ) diff --git a/cpukit/rtems/inline/rtems/rtems/support.inl b/cpukit/rtems/inline/rtems/rtems/support.inl index dadcbc7baa..0f4defc92f 100644 --- a/cpukit/rtems/inline/rtems/rtems/support.inl +++ b/cpukit/rtems/inline/rtems/rtems/support.inl @@ -32,7 +32,7 @@ * * This function returns TRUE if the name is valid, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE rtems_boolean rtems_is_name_valid ( +RTEMS_INLINE_ROUTINE bool rtems_is_name_valid ( rtems_name name ) { diff --git a/cpukit/rtems/inline/rtems/rtems/tasks.inl b/cpukit/rtems/inline/rtems/rtems/tasks.inl index ca63aa83f5..e0fe241d45 100644 --- a/cpukit/rtems/inline/rtems/rtems/tasks.inl +++ b/cpukit/rtems/inline/rtems/rtems/tasks.inl @@ -72,7 +72,7 @@ RTEMS_INLINE_ROUTINE Priority_Control _RTEMS_tasks_Priority_to_Core( * This function returns TRUE if the_priority is a valid user task priority * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _RTEMS_tasks_Priority_is_valid ( +RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { diff --git a/cpukit/rtems/inline/rtems/rtems/timer.inl b/cpukit/rtems/inline/rtems/rtems/timer.inl index 30d8407d5d..10cae3f67d 100644 --- a/cpukit/rtems/inline/rtems/rtems/timer.inl +++ b/cpukit/rtems/inline/rtems/rtems/timer.inl @@ -75,7 +75,7 @@ RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( * This function returns TRUE if the class is that of an INTERVAL * timer, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Timer_Is_interval_class ( +RTEMS_INLINE_ROUTINE bool _Timer_Is_interval_class ( Timer_Classes the_class ) { @@ -88,7 +88,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_interval_class ( * This function returns TRUE if the class is that of an INTERVAL * timer, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Timer_Is_timer_of_day_class ( +RTEMS_INLINE_ROUTINE bool _Timer_Is_timer_of_day_class ( Timer_Classes the_class ) { @@ -101,7 +101,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_timer_of_day_class ( * This function returns TRUE if the class is that of a DORMANT * timer, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Timer_Is_dormant_class ( +RTEMS_INLINE_ROUTINE bool _Timer_Is_dormant_class ( Timer_Classes the_class ) { @@ -113,7 +113,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_dormant_class ( * * This function returns TRUE if the_timer is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Timer_Is_null ( +RTEMS_INLINE_ROUTINE bool _Timer_Is_null ( Timer_Control *the_timer ) { diff --git a/cpukit/rtems/src/clocktodvalidate.c b/cpukit/rtems/src/clocktodvalidate.c index c9bdf4fd12..e40f7b9595 100644 --- a/cpukit/rtems/src/clocktodvalidate.c +++ b/cpukit/rtems/src/clocktodvalidate.c @@ -46,7 +46,7 @@ const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = { * NOTE: This routine only works for leap-years through 2099. */ -boolean _TOD_Validate( +bool _TOD_Validate( rtems_time_of_day *the_tod ) { @@ -62,7 +62,7 @@ boolean _TOD_Validate( (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) - return FALSE; + return false; if ( (the_tod->year % 4) == 0 ) days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; @@ -70,7 +70,7 @@ boolean _TOD_Validate( days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; if ( the_tod->day > days_in_month ) - return FALSE; + return false; - return TRUE; + return true; } diff --git a/cpukit/rtems/src/intrbody.c b/cpukit/rtems/src/intrbody.c index b1d1470a7a..aac994229d 100644 --- a/cpukit/rtems/src/intrbody.c +++ b/cpukit/rtems/src/intrbody.c @@ -68,7 +68,7 @@ void rtems_interrupt_flash( #undef rtems_interrupt_is_in_progress -boolean rtems_interrupt_is_in_progress( void ) +bool rtems_interrupt_is_in_progress( void ) { return _ISR_Is_in_progress(); } diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c index e6a156c5f7..1c419947cc 100644 --- a/cpukit/rtems/src/msgmp.c +++ b/cpukit/rtems/src/msgmp.c @@ -264,7 +264,7 @@ void _Message_queue_MP_Process_packet ( { Message_queue_MP_Packet *the_packet; Thread_Control *the_thread; - boolean ignored; + bool ignored; the_packet = (Message_queue_MP_Packet *) the_packet_prefix; diff --git a/cpukit/rtems/src/msgqcreate.c b/cpukit/rtems/src/msgqcreate.c index bf4d2b098a..191a3d6e32 100644 --- a/cpukit/rtems/src/msgqcreate.c +++ b/cpukit/rtems/src/msgqcreate.c @@ -65,7 +65,7 @@ rtems_status_code rtems_message_queue_create( register Message_queue_Control *the_message_queue; CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) - boolean is_global; + bool is_global; #endif if ( !rtems_is_name_valid( name ) ) diff --git a/cpukit/rtems/src/msgqreceive.c b/cpukit/rtems/src/msgqreceive.c index e55122835a..48b3af4289 100644 --- a/cpukit/rtems/src/msgqreceive.c +++ b/cpukit/rtems/src/msgqreceive.c @@ -63,7 +63,7 @@ rtems_status_code rtems_message_queue_receive( { register Message_queue_Control *the_message_queue; Objects_Locations location; - boolean wait; + bool wait; if ( !buffer ) return RTEMS_INVALID_ADDRESS; @@ -76,9 +76,9 @@ rtems_status_code rtems_message_queue_receive( case OBJECTS_LOCAL: if ( _Options_Is_no_wait( option_set ) ) - wait = FALSE; + wait = false; else - wait = TRUE; + wait = true; _CORE_message_queue_Seize( &the_message_queue->message_queue, diff --git a/cpukit/rtems/src/partmp.c b/cpukit/rtems/src/partmp.c index f1b6a7bcfd..5c076e4523 100644 --- a/cpukit/rtems/src/partmp.c +++ b/cpukit/rtems/src/partmp.c @@ -181,7 +181,7 @@ void _Partition_MP_Process_packet ( { Partition_MP_Packet *the_packet; Thread_Control *the_thread; - boolean ignored; + bool ignored; the_packet = (Partition_MP_Packet *) the_packet_prefix; diff --git a/cpukit/rtems/src/regionmp.c b/cpukit/rtems/src/regionmp.c index 3f33d56934..48148cc726 100644 --- a/cpukit/rtems/src/regionmp.c +++ b/cpukit/rtems/src/regionmp.c @@ -187,7 +187,7 @@ void _Region_MP_Process_packet ( { Region_MP_Packet *the_packet; Thread_Control *the_thread; - boolean ignored; + bool ignored; the_packet = (Region_MP_Packet *) the_packet_prefix; diff --git a/cpukit/rtems/src/semmp.c b/cpukit/rtems/src/semmp.c index 570288d4a2..c8dc27b11b 100644 --- a/cpukit/rtems/src/semmp.c +++ b/cpukit/rtems/src/semmp.c @@ -184,7 +184,7 @@ void _Semaphore_MP_Process_packet ( { Semaphore_MP_Packet *the_packet; Thread_Control *the_thread; - boolean ignored; + bool ignored; the_packet = (Semaphore_MP_Packet *) the_packet_prefix; diff --git a/cpukit/rtems/src/signalsend.c b/cpukit/rtems/src/signalsend.c index f302eeb8f2..1063830ee5 100644 --- a/cpukit/rtems/src/signalsend.c +++ b/cpukit/rtems/src/signalsend.c @@ -64,7 +64,7 @@ rtems_status_code rtems_signal_send( if ( asr->is_enabled ) { _ASR_Post_signals( signal_set, &asr->signals_posted ); - the_thread->do_post_task_switch_extension = TRUE; + the_thread->do_post_task_switch_extension = true; if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = TRUE; diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c index 38d924ad39..71684d85b2 100644 --- a/cpukit/rtems/src/taskcreate.c +++ b/cpukit/rtems/src/taskcreate.c @@ -65,12 +65,12 @@ rtems_status_code rtems_task_create( ) { register Thread_Control *the_thread; - boolean is_fp; + bool is_fp; #if defined(RTEMS_MULTIPROCESSING) Objects_MP_Control *the_global_object = NULL; - boolean is_global; + bool is_global; #endif - boolean status; + bool status; rtems_attribute the_attribute_set; Priority_Control core_priority; RTEMS_API_Control *api; @@ -102,9 +102,9 @@ rtems_status_code rtems_task_create( _Attributes_Clear( the_attribute_set, ATTRIBUTES_NOT_SUPPORTED ); if ( _Attributes_Is_floating_point( the_attribute_set ) ) - is_fp = TRUE; + is_fp = true; else - is_fp = FALSE; + is_fp = false; /* * Validate the RTEMS API priority and convert it to the core priority range. @@ -120,13 +120,13 @@ rtems_status_code rtems_task_create( #if defined(RTEMS_MULTIPROCESSING) if ( _Attributes_Is_global( the_attribute_set ) ) { - is_global = TRUE; + is_global = true; if ( !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; } else - is_global = FALSE; + is_global = false; #endif /* @@ -200,7 +200,7 @@ rtems_status_code rtems_task_create( api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; - asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? FALSE : TRUE; + asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; *id = the_thread->Object.id; diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c index 65fc07a81f..472e21e7d9 100644 --- a/cpukit/rtems/src/taskmode.c +++ b/cpukit/rtems/src/taskmode.c @@ -58,8 +58,8 @@ rtems_status_code rtems_task_mode( Thread_Control *executing; RTEMS_API_Control *api; ASR_Information *asr; - boolean is_asr_enabled = FALSE; - boolean needs_asr_dispatching = FALSE; + bool is_asr_enabled = false; + bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) @@ -111,13 +111,13 @@ rtems_status_code rtems_task_mode( needs_asr_dispatching = FALSE; if ( mask & RTEMS_ASR_MASK ) { - is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? FALSE : TRUE; + is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true; if ( is_asr_enabled != asr->is_enabled ) { asr->is_enabled = is_asr_enabled; _ASR_Swap_signals( asr ); if ( _ASR_Are_signals_pending( asr ) ) { - needs_asr_dispatching = TRUE; - executing->do_post_task_switch_extension = TRUE; + needs_asr_dispatching = true; + executing->do_post_task_switch_extension = true; } } } diff --git a/cpukit/rtems/src/taskmp.c b/cpukit/rtems/src/taskmp.c index dec5986017..a9ca8031c9 100644 --- a/cpukit/rtems/src/taskmp.c +++ b/cpukit/rtems/src/taskmp.c @@ -190,7 +190,7 @@ void _RTEMS_tasks_MP_Process_packet ( { RTEMS_tasks_MP_Packet *the_packet; Thread_Control *the_thread; - boolean ignored; + bool ignored; the_packet = (RTEMS_tasks_MP_Packet *) the_packet_prefix; diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c index b49975bb6f..2ccacd677e 100644 --- a/cpukit/rtems/src/tasks.c +++ b/cpukit/rtems/src/tasks.c @@ -43,7 +43,7 @@ * area. */ -boolean _RTEMS_tasks_Create_extension( +bool _RTEMS_tasks_Create_extension( Thread_Control *executing, Thread_Control *created ) @@ -63,7 +63,7 @@ boolean _RTEMS_tasks_Create_extension( api = _Workspace_Allocate( to_allocate ); if ( !api ) - return FALSE; + return false; created->API_Extensions[ THREAD_API_RTEMS ] = api; @@ -76,7 +76,7 @@ boolean _RTEMS_tasks_Create_extension( api->Notepads[i] = 0; } - return TRUE; + return true; } /*PAGE diff --git a/cpukit/rtems/src/timerserver.c b/cpukit/rtems/src/timerserver.c index 00a91e8937..a96b45272e 100644 --- a/cpukit/rtems/src/timerserver.c +++ b/cpukit/rtems/src/timerserver.c @@ -147,8 +147,8 @@ rtems_status_code rtems_timer_initiate_server( rtems_id id; rtems_status_code status; rtems_task_priority _priority; - static boolean initialized = FALSE; - boolean tmpInitialized; + static bool initialized = false; + bool tmpInitialized; /* * Make sure the requested priority is valid. The if is @@ -169,7 +169,7 @@ rtems_status_code rtems_timer_initiate_server( _Thread_Disable_dispatch(); tmpInitialized = initialized; - initialized = TRUE; + initialized = true; _Thread_Enable_dispatch(); if ( tmpInitialized ) @@ -201,7 +201,7 @@ rtems_status_code rtems_timer_initiate_server( &id /* get the id back */ ); if (status) { - initialized = FALSE; + initialized = false; return status; } @@ -254,7 +254,7 @@ rtems_status_code rtems_timer_initiate_server( * be good. If this service fails, something is weirdly wrong on the * target such as a stray write in an ISR or incorrect memory layout. */ - initialized = FALSE; + initialized = false; } return status; diff --git a/cpukit/rtems/src/workspace.c b/cpukit/rtems/src/workspace.c index d5335ebc8d..f573440475 100644 --- a/cpukit/rtems/src/workspace.c +++ b/cpukit/rtems/src/workspace.c @@ -22,7 +22,7 @@ #include <string.h> /* for memset */ -boolean rtems_workspace_get_information( +bool rtems_workspace_get_information( Heap_Information_block *the_info ) { @@ -30,30 +30,30 @@ boolean rtems_workspace_get_information( status = _Heap_Get_information( &_Workspace_Area, the_info ); if ( status == HEAP_GET_INFORMATION_SUCCESSFUL ) - return TRUE; + return true; else - return FALSE; + return false; } /* * _Workspace_Allocate */ -boolean rtems_workspace_allocate( +bool rtems_workspace_allocate( size_t bytes, void **pointer ) { *pointer = _Heap_Allocate( &_Workspace_Area, bytes ); if (!pointer) - return FALSE; + return false; else - return TRUE; + return true; } /* * _Workspace_Allocate */ -boolean rtems_workspace_free( +bool rtems_workspace_free( void *pointer ) { diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h index 777a9c3402..c3fe7a2edb 100644 --- a/cpukit/sapi/include/rtems/config.h +++ b/cpukit/sapi/include/rtems/config.h @@ -163,7 +163,7 @@ typedef struct { * environment has ensured that memory was cleared before RTEMS was * invoked. */ - boolean do_zero_of_workspace; + bool do_zero_of_workspace; uint32_t maximum_drivers; uint32_t number_of_device_drivers; diff --git a/cpukit/sapi/inline/rtems/chain.inl b/cpukit/sapi/inline/rtems/chain.inl index b49454b259..bc3e57d133 100644 --- a/cpukit/sapi/inline/rtems/chain.inl +++ b/cpukit/sapi/inline/rtems/chain.inl @@ -53,13 +53,13 @@ RTEMS_INLINE_ROUTINE void rtems_chain_initialize_empty( /** * @brief Is the Chain Node Pointer NULL * - * This function returns TRUE if the_node is NULL and FALSE otherwise. + * This function returns true if the_node is NULL and false otherwise. * * @param[in] the_node is the node pointer to check. * - * @return This method returns TRUE if the_node is NULL and FALSE otherwise. + * @return This method returns true if the_node is NULL and false otherwise. */ -RTEMS_INLINE_ROUTINE boolean rtems_chain_is_null_node( +RTEMS_INLINE_ROUTINE bool rtems_chain_is_null_node( const rtems_chain_node *the_node ) { @@ -101,16 +101,16 @@ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_tail( /** * @brief Are Two Nodes Equal * - * This function returns TRUE if @a left and @a right are equal, - * and FALSE otherwise. + * This function returns true if @a left and @a right are equal, + * and false otherwise. * * @param[in] left is the node on the left hand side of the comparison. * @param[in] right is the node on the left hand side of the comparison. * - * @return This function returns TRUE if @a left and @a right are equal, - * and FALSE otherwise. + * @return This function returns true if @a left and @a right are equal, + * and false otherwise. */ -RTEMS_INLINE_ROUTINE boolean rtems_chain_are_nodes_equal( +RTEMS_INLINE_ROUTINE bool rtems_chain_are_nodes_equal( const rtems_chain_node *left, const rtems_chain_node *right ) @@ -121,15 +121,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_are_nodes_equal( /** * @brief Is the Chain Empty * - * This function returns TRUE if there a no nodes on @a the_chain and - * FALSE otherwise. + * This function returns true if there a no nodes on @a the_chain and + * false otherwise. * * @param[in] the_chain is the chain to be operated upon. * - * @return This function returns TRUE if there a no nodes on @a the_chain and - * FALSE otherwise. + * @return This function returns true if there a no nodes on @a the_chain and + * false otherwise. */ -RTEMS_INLINE_ROUTINE boolean rtems_chain_is_empty( +RTEMS_INLINE_ROUTINE bool rtems_chain_is_empty( rtems_chain_control *the_chain ) { @@ -139,16 +139,16 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_empty( /** * @brief Is this the First Node on the Chain * - * This function returns TRUE if the_node is the first node on a chain and - * FALSE otherwise. + * This function returns true if the_node is the first node on a chain and + * false otherwise. * * @param[in] the_node is the node the caller wants to know if it is * the first node on a chain. * - * @return This function returns TRUE if @a the_node is the first node on - * a chain and FALSE otherwise. + * @return This function returns true if @a the_node is the first node on + * a chain and false otherwise. */ -RTEMS_INLINE_ROUTINE boolean rtems_chain_is_first( +RTEMS_INLINE_ROUTINE bool rtems_chain_is_first( const rtems_chain_node *the_node ) { @@ -158,15 +158,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_first( /** * @brief Is this the Last Node on the Chain * - * This function returns TRUE if @a the_node is the last node on a chain and - * FALSE otherwise. + * This function returns true if @a the_node is the last node on a chain and + * false otherwise. * * @param[in] the_node is the node to check as the last node. * - * @return This function returns TRUE if @a the_node is the last node on - * a chain and FALSE otherwise. + * @return This function returns true if @a the_node is the last node on + * a chain and false otherwise. */ -RTEMS_INLINE_ROUTINE boolean rtems_chain_is_last( +RTEMS_INLINE_ROUTINE bool rtems_chain_is_last( const rtems_chain_node *the_node ) { @@ -176,15 +176,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_last( /** * @brief Does this Chain have only One Node * - * This function returns TRUE if there is only one node on @a the_chain and - * FALSE otherwise. + * This function returns true if there is only one node on @a the_chain and + * false otherwise. * * @param[in] the_chain is the chain to be operated upon. * - * @return This function returns TRUE if there is only one node on - * @a the_chain and FALSE otherwise. + * @return This function returns true if there is only one node on + * @a the_chain and false otherwise. */ -RTEMS_INLINE_ROUTINE boolean rtems_chain_has_only_one_node( +RTEMS_INLINE_ROUTINE bool rtems_chain_has_only_one_node( const rtems_chain_control *the_chain ) { @@ -194,16 +194,16 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_has_only_one_node( /** * @brief Is this Node the Chain Head * - * This function returns TRUE if @a the_node is the head of the_chain and - * FALSE otherwise. + * This function returns true if @a the_node is the head of the_chain and + * false otherwise. * * @param[in] the_chain is the chain to be operated upon. * @param[in] the_node is the node to check for being the Chain Head. * - * @return This function returns TRUE if @a the_node is the head of - * @a the_chain and FALSE otherwise. + * @return This function returns true if @a the_node is the head of + * @a the_chain and false otherwise. */ -RTEMS_INLINE_ROUTINE boolean rtems_chain_is_head( +RTEMS_INLINE_ROUTINE bool rtems_chain_is_head( rtems_chain_control *the_chain, const rtems_chain_node *the_node ) @@ -214,13 +214,13 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_head( /** * @brief Is this Node the Chail Tail * - * This function returns TRUE if the_node is the tail of the_chain and - * FALSE otherwise. + * This function returns true if the_node is the tail of the_chain and + * false otherwise. * * @param[in] the_chain is the chain to be operated upon. * @param[in] the_node is the node to check for being the Chain Tail. */ -RTEMS_INLINE_ROUTINE boolean rtems_chain_is_tail( +RTEMS_INLINE_ROUTINE bool rtems_chain_is_tail( rtems_chain_control *the_chain, const rtems_chain_node *the_node ) diff --git a/cpukit/sapi/inline/rtems/extension.inl b/cpukit/sapi/inline/rtems/extension.inl index c989acea48..5b516b9f56 100644 --- a/cpukit/sapi/inline/rtems/extension.inl +++ b/cpukit/sapi/inline/rtems/extension.inl @@ -82,7 +82,7 @@ RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get ( * This function returns TRUE if the_extension is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Extension_Is_null ( +RTEMS_INLINE_ROUTINE bool _Extension_Is_null ( Extension_Control *the_extension ) { diff --git a/cpukit/sapi/src/debug.c b/cpukit/sapi/src/debug.c index 6cd6dba801..38e05c9982 100644 --- a/cpukit/sapi/src/debug.c +++ b/cpukit/sapi/src/debug.c @@ -57,9 +57,9 @@ void rtems_debug_disable ( * _Debug_Is_enabled */ -boolean _Debug_Is_enabled( +bool _Debug_Is_enabled( rtems_debug_control level ) { - return (_Debug_Level & level) ? TRUE : FALSE; + return (_Debug_Level & level) ? true : false; } diff --git a/cpukit/sapi/src/extension.c b/cpukit/sapi/src/extension.c index d1e91a64a5..1a85cddf3a 100644 --- a/cpukit/sapi/src/extension.c +++ b/cpukit/sapi/src/extension.c @@ -43,11 +43,11 @@ void _Extension_Manager_initialization( OBJECTS_RTEMS_EXTENSIONS, maximum_extensions, sizeof( Extension_Control ), - FALSE, /* TRUE if the name is a string */ + false, /* true if the name is a string */ RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ #if defined(RTEMS_MULTIPROCESSING) , - FALSE, /* TRUE if this is a global object class */ + false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); diff --git a/cpukit/sapi/src/ioregisterdriver.c b/cpukit/sapi/src/ioregisterdriver.c index 7322d77d62..d8a3deae17 100644 --- a/cpukit/sapi/src/ioregisterdriver.c +++ b/cpukit/sapi/src/ioregisterdriver.c @@ -67,11 +67,11 @@ rtems_status_code rtems_io_register_driver( */ if ( major == 0 ) { - boolean found = FALSE; + bool found = false; for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) { if ( !_IO_Driver_address_table[major].initialization_entry && !_IO_Driver_address_table[major].open_entry ) { - found = TRUE; + found = true; break; } } diff --git a/cpukit/score/include/rtems/debug.h b/cpukit/score/include/rtems/debug.h index abdb6200d0..dddafec8a6 100644 --- a/cpukit/score/include/rtems/debug.h +++ b/cpukit/score/include/rtems/debug.h @@ -67,7 +67,7 @@ void rtems_debug_disable ( * This routine returns TRUE if the requested debug level is * enabled, and FALSE otherwise. */ -boolean _Debug_Is_enabled( +bool _Debug_Is_enabled( rtems_debug_control level ); diff --git a/cpukit/score/include/rtems/score/context.h b/cpukit/score/include/rtems/score/context.h index 46ecff3686..40b06a4e0c 100644 --- a/cpukit/score/include/rtems/score/context.h +++ b/cpukit/score/include/rtems/score/context.h @@ -48,7 +48,7 @@ extern "C" { * currently executing thread and given to the heir thread. */ -SCORE_EXTERN volatile boolean _Context_Switch_necessary; +SCORE_EXTERN volatile bool _Context_Switch_necessary; /** * @brief Initialize Context Area diff --git a/cpukit/score/include/rtems/score/corebarrier.h b/cpukit/score/include/rtems/score/corebarrier.h index ec1dd946fd..b66d95aaf6 100644 --- a/cpukit/score/include/rtems/score/corebarrier.h +++ b/cpukit/score/include/rtems/score/corebarrier.h @@ -150,7 +150,7 @@ void _CORE_barrier_Initialize( void _CORE_barrier_Wait( CORE_barrier_Control *the_barrier, Objects_Id id, - boolean wait, + bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ); diff --git a/cpukit/score/include/rtems/score/coremsg.h b/cpukit/score/include/rtems/score/coremsg.h index f34eecee50..74a9c2beea 100644 --- a/cpukit/score/include/rtems/score/coremsg.h +++ b/cpukit/score/include/rtems/score/coremsg.h @@ -27,16 +27,16 @@ */ /**@{*/ -#ifdef __cplusplus -extern "C" { -#endif - #include <limits.h> #include <rtems/score/thread.h> #include <rtems/score/threadq.h> #include <rtems/score/priority.h> #include <rtems/score/watchdog.h> +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Message Queue MP Callback Prototype * @@ -240,7 +240,7 @@ typedef struct { * FALSE will only be returned if memory for the pending * messages cannot be allocated. */ -boolean _CORE_message_queue_Initialize( +bool _CORE_message_queue_Initialize( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, @@ -365,7 +365,7 @@ CORE_message_queue_Status _CORE_message_queue_Submit( Objects_Id id, CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, CORE_message_queue_Submit_types submit_type, - boolean wait, + bool wait, Watchdog_Interval timeout ); @@ -397,7 +397,7 @@ void _CORE_message_queue_Seize( Objects_Id id, void *buffer, size_t *size_p, - boolean wait, + bool wait, Watchdog_Interval timeout ); diff --git a/cpukit/score/include/rtems/score/coremutex.h b/cpukit/score/include/rtems/score/coremutex.h index f63a5b60c8..01414e0914 100644 --- a/cpukit/score/include/rtems/score/coremutex.h +++ b/cpukit/score/include/rtems/score/coremutex.h @@ -181,7 +181,7 @@ typedef struct { /** When this field is TRUE, then only the thread that locked the mutex * is allowed to unlock it. */ - boolean only_owner_release; + bool only_owner_release; /** This field indicates whether threads waiting on the mutex block in * FIFO or priority order. */ @@ -402,7 +402,7 @@ void _CORE_mutex_Seize_interrupt_blocking( void _CORE_mutex_Seize( CORE_mutex_Control *_the_mutex, Objects_Id _id, - boolean _wait, + bool _wait, Watchdog_Interval _timeout, ISR_Level _level ); diff --git a/cpukit/score/include/rtems/score/corerwlock.h b/cpukit/score/include/rtems/score/corerwlock.h index ac57a02baa..7e1e3d8994 100644 --- a/cpukit/score/include/rtems/score/corerwlock.h +++ b/cpukit/score/include/rtems/score/corerwlock.h @@ -151,7 +151,7 @@ void _CORE_RWLock_Initialize( void _CORE_RWLock_Obtain_for_reading( CORE_RWLock_Control *the_rwlock, Objects_Id id, - boolean wait, + bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ); @@ -172,7 +172,7 @@ void _CORE_RWLock_Obtain_for_reading( void _CORE_RWLock_Obtain_for_writing( CORE_RWLock_Control *the_rwlock, Objects_Id id, - boolean wait, + bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ); diff --git a/cpukit/score/include/rtems/score/coresem.h b/cpukit/score/include/rtems/score/coresem.h index fc2f979ff5..3614643615 100644 --- a/cpukit/score/include/rtems/score/coresem.h +++ b/cpukit/score/include/rtems/score/coresem.h @@ -151,7 +151,7 @@ void _CORE_semaphore_Initialize( void _CORE_semaphore_Seize( CORE_semaphore_Control *the_semaphore, Objects_Id id, - boolean wait, + bool wait, Watchdog_Interval timeout ); diff --git a/cpukit/score/include/rtems/score/corespinlock.h b/cpukit/score/include/rtems/score/corespinlock.h index 58012c8add..fa5e851696 100644 --- a/cpukit/score/include/rtems/score/corespinlock.h +++ b/cpukit/score/include/rtems/score/corespinlock.h @@ -136,7 +136,7 @@ void _CORE_spinlock_Initialize( */ CORE_spinlock_Status _CORE_spinlock_Wait( CORE_spinlock_Control *the_spinlock, - boolean wait, + bool wait, Watchdog_Interval timeout ); diff --git a/cpukit/score/include/rtems/score/heap.h b/cpukit/score/include/rtems/score/heap.h index db7e32355c..0587852d78 100644 --- a/cpukit/score/include/rtems/score/heap.h +++ b/cpukit/score/include/rtems/score/heap.h @@ -333,7 +333,7 @@ void *_Heap_Allocate_aligned( * @return TRUE if successfully able to determine the size, FALSE otherwise * @return *size filled in with the size of the user area for this block */ -boolean _Heap_Size_of_user_area( +bool _Heap_Size_of_user_area( Heap_Control *the_heap, void *starting_address, size_t *size @@ -379,7 +379,7 @@ Heap_Resize_status _Heap_Resize_block( * to free * @return TRUE if successfully freed, FALSE otherwise */ -boolean _Heap_Free( +bool _Heap_Free( Heap_Control *the_heap, void *start_address ); @@ -393,10 +393,10 @@ boolean _Heap_Free( * @param[in] do_dump is set to TRUE if errors should be printed * @return TRUE if the test passed fine, FALSE otherwise. */ -boolean _Heap_Walk( +bool _Heap_Walk( Heap_Control *the_heap, int source, - boolean do_dump + bool do_dump ); /** diff --git a/cpukit/score/include/rtems/score/interr.h b/cpukit/score/include/rtems/score/interr.h index 97ce4f415c..e432911716 100644 --- a/cpukit/score/include/rtems/score/interr.h +++ b/cpukit/score/include/rtems/score/interr.h @@ -75,7 +75,7 @@ typedef struct { /** This is the source of the error. */ Internal_errors_Source the_source; /** This indicates if the error is internal of external. */ - boolean is_internal; + bool is_internal; /** This is the error code. */ uint32_t the_error; } Internal_errors_Information; @@ -92,7 +92,7 @@ SCORE_EXTERN Internal_errors_Information _Internal_errors_What_happened; */ void _Internal_error_Occurred( Internal_errors_Source the_source, - boolean is_internal, + bool is_internal, uint32_t the_error ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; diff --git a/cpukit/score/include/rtems/score/isr.h b/cpukit/score/include/rtems/score/isr.h index 7d8f12b223..d81bef5766 100644 --- a/cpukit/score/include/rtems/score/isr.h +++ b/cpukit/score/include/rtems/score/isr.h @@ -79,7 +79,7 @@ typedef ISR_Handler ( *ISR_Handler_entry )( * The following is TRUE if signals have been sent to the currently * executing thread by an ISR handler. */ -SCORE_EXTERN boolean _ISR_Signals_to_thread_executing; +SCORE_EXTERN bool _ISR_Signals_to_thread_executing; /** * The following contains the interrupt service routine nest level. @@ -201,7 +201,7 @@ void _ISR_Dispatch( void ); * that the caller is an interrupt service routine, NOT a thread. The */ #if (CPU_PROVIDES_ISR_IS_IN_PROGRESS == TRUE) -boolean _ISR_Is_in_progress( void ); +bool _ISR_Is_in_progress( void ); #else #define _ISR_Is_in_progress() \ (_ISR_Nest_level != 0) diff --git a/cpukit/score/include/rtems/score/object.h b/cpukit/score/include/rtems/score/object.h index 2abe12cead..f1203bc8d5 100644 --- a/cpukit/score/include/rtems/score/object.h +++ b/cpukit/score/include/rtems/score/object.h @@ -50,7 +50,7 @@ typedef union { /** * Functions which compare names are prototyped like this. */ -typedef boolean (*Objects_Name_comparators)( +typedef bool (*Objects_Name_comparators)( void * /* name_1 */, void * /* name_2 */, uint16_t /* length */ @@ -334,7 +334,7 @@ typedef struct { /** This is the maximum number of objects in this class. */ Objects_Maximum maximum; /** This is the TRUE if unlimited objects in this class. */ - boolean auto_extend; + bool auto_extend; /** This is the number of objects in a block. */ uint32_t allocation_size; /** This is the size in bytes of each object instance. */ @@ -349,8 +349,8 @@ typedef struct { uint32_t *inactive_per_block; /** This is a table to the chain of inactive object memory blocks. */ void **object_blocks; - /** This is the TRUE if names are strings. */ - boolean is_string; + /** This is true if names are strings. */ + bool is_string; /** This is the maximum length of names. */ uint16_t name_length; /** This is this object class' method called when extracting a thread. */ @@ -498,11 +498,11 @@ void _Objects_Initialize_information ( uint32_t the_class, uint32_t maximum, uint16_t size, - boolean is_string, + bool is_string, uint32_t maximum_name_length #if defined(RTEMS_MULTIPROCESSING) , - boolean supports_global, + bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ); @@ -859,7 +859,7 @@ char *_Objects_Get_name_as_string( * * @return If successful, TRUE is returned. Otherwise FALSE is returned. */ -boolean _Objects_Set_name( +bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name diff --git a/cpukit/score/include/rtems/score/objectmp.h b/cpukit/score/include/rtems/score/objectmp.h index 6275304012..ec449ea0e6 100644 --- a/cpukit/score/include/rtems/score/objectmp.h +++ b/cpukit/score/include/rtems/score/objectmp.h @@ -100,11 +100,11 @@ void _Objects_MP_Open ( * @todo This method only works for object types with 4 byte object names. * It does not support variable length object names. */ -boolean _Objects_MP_Allocate_and_open ( +bool _Objects_MP_Allocate_and_open ( Objects_Information *information, uint32_t the_name, Objects_Id the_id, - boolean is_fatal_error + bool is_fatal_error ); /** @brief Objects MP Close diff --git a/cpukit/score/include/rtems/score/protectedheap.h b/cpukit/score/include/rtems/score/protectedheap.h index 8870262b33..78c2abc3d2 100644 --- a/cpukit/score/include/rtems/score/protectedheap.h +++ b/cpukit/score/include/rtems/score/protectedheap.h @@ -71,7 +71,7 @@ static inline uint32_t _Protected_heap_Initialize( * @param[in] size is the size in bytes of the memory area to add * @return a status indicating success or the reason for failure */ -boolean _Protected_heap_Extend( +bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, size_t size @@ -125,7 +125,7 @@ void *_Protected_heap_Allocate_aligned( * @return TRUE if successfully able to determine the size, FALSE otherwise * @return *size filled in with the size of the user area for this block */ -boolean _Protected_heap_Get_block_size( +bool _Protected_heap_Get_block_size( Heap_Control *the_heap, void *starting_address, size_t *size @@ -143,7 +143,7 @@ boolean _Protected_heap_Get_block_size( * @return TRUE if successfully able to resize the block. * FALSE if the block can't be resized in place. */ -boolean _Protected_heap_Resize_block( +bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, size_t size @@ -159,7 +159,7 @@ boolean _Protected_heap_Resize_block( * to free * @return TRUE if successfully freed, FALSE otherwise */ -boolean _Protected_heap_Free( +bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ); @@ -173,10 +173,10 @@ boolean _Protected_heap_Free( * @param[in] do_dump is set to TRUE if errors should be printed * @return TRUE if the test passed fine, FALSE otherwise. */ -boolean _Protected_heap_Walk( +bool _Protected_heap_Walk( Heap_Control *the_heap, int source, - boolean do_dump + bool do_dump ); /** diff --git a/cpukit/score/include/rtems/score/sysstate.h b/cpukit/score/include/rtems/score/sysstate.h index 31b1eab084..8d4a8e313e 100644 --- a/cpukit/score/include/rtems/score/sysstate.h +++ b/cpukit/score/include/rtems/score/sysstate.h @@ -69,7 +69,7 @@ typedef enum { * The following variable indicates whether or not this is * an multiprocessing system. */ -SCORE_EXTERN boolean _System_state_Is_multiprocessing; +SCORE_EXTERN bool _System_state_Is_multiprocessing; #endif /** diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index ee00424b07..fbfd971b23 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -191,7 +191,7 @@ typedef struct { /** This field indicates whether the thread was preemptible when * it started. */ - boolean is_preemptible; + bool is_preemptible; /** This field indicates the CPU budget algorith. */ Thread_CPU_budget_algorithms budget_algorithm; /** This field is the routine to invoke when the CPU allotment is @@ -203,7 +203,7 @@ typedef struct { /** This field is the initial priority. */ Priority_Control initial_priority; /** This field indicates whether the SuperCore allocated the stack. */ - boolean core_allocated_stack; + bool core_allocated_stack; /** This field is the stack information. */ Stack_Control Initial_stack; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) @@ -351,13 +351,13 @@ struct Thread_Control_struct { /** This field is the number of nested suspend calls. */ uint32_t suspend_count; /** This field is true if the thread is offered globally */ - boolean is_global; + bool is_global; /** This field is is true if the post task context switch should be * executed for this thread at the next context switch. */ - boolean do_post_task_switch_extension; + bool do_post_task_switch_extension; /** This field is true if the thread is preemptible. */ - boolean is_preemptible; + bool is_preemptible; #if __RTEMS_ADA__ /** This field is the GNAT self context pointer. */ void *rtems_ada_self; @@ -570,14 +570,14 @@ void _Thread_Stack_Free( * @note If the stack is allocated from the workspace, then it is * guaranteed to be of at least minimum size. */ -boolean _Thread_Initialize( +bool _Thread_Initialize( Objects_Information *information, Thread_Control *the_thread, void *stack_area, size_t stack_size, - boolean is_fp, + bool is_fp, Priority_Control priority, - boolean is_preemptible, + bool is_preemptible, Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, @@ -589,7 +589,7 @@ boolean _Thread_Initialize( * and makes it ready to execute. After this routine executes, the * thread competes with all other threads for CPU time. */ -boolean _Thread_Start( +bool _Thread_Start( Thread_Control *the_thread, Thread_Start_types the_prototype, void *entry_point, @@ -604,7 +604,7 @@ boolean _Thread_Start( * * TODO: multiple task arg profiles */ -boolean _Thread_Restart( +bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument @@ -735,7 +735,7 @@ void _Thread_Delay_ended( void _Thread_Change_priority ( Thread_Control *the_thread, Priority_Control new_priority, - boolean prepend_it + bool prepend_it ); /** @@ -762,7 +762,7 @@ void _Thread_Suspend( */ void _Thread_Resume( Thread_Control *the_thread, - boolean force + bool force ); /** @@ -771,7 +771,7 @@ void _Thread_Resume( * is usually called after changing an execution mode such as preemptability * for a thread. */ -boolean _Thread_Evaluate_mode( void ); +bool _Thread_Evaluate_mode( void ); #if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE) /** diff --git a/cpukit/score/include/rtems/score/threadq.h b/cpukit/score/include/rtems/score/threadq.h index d3a7679d7e..3995107b76 100644 --- a/cpukit/score/include/rtems/score/threadq.h +++ b/cpukit/score/include/rtems/score/threadq.h @@ -124,7 +124,7 @@ void _Thread_queue_Extract( * and ensures that if there is a proxy for this task on * another node, it is also dealt with. */ -boolean _Thread_queue_Extract_with_proxy( +bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ); @@ -192,7 +192,7 @@ Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, - boolean requeuing + bool requeuing ); /** diff --git a/cpukit/score/include/rtems/score/timespec.h b/cpukit/score/include/rtems/score/timespec.h index 9a27f708bd..e7b17e871d 100644 --- a/cpukit/score/include/rtems/score/timespec.h +++ b/cpukit/score/include/rtems/score/timespec.h @@ -43,7 +43,7 @@ extern "C" { * @return This method returns true if @a time is valid and * false otherwise. */ -boolean _Timespec_Is_valid( +bool _Timespec_Is_valid( const struct timespec *time ); @@ -57,7 +57,7 @@ boolean _Timespec_Is_valid( * @return This method returns true if @a lhs is less than the @a rhs and * false otherwise. */ -boolean _Timespec_Less_than( +bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ); @@ -72,7 +72,7 @@ boolean _Timespec_Less_than( * @return This method returns true if @a lhs is greater than the @a rhs and * false otherwise. */ -boolean _Timespec_Greater_than( +bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ); diff --git a/cpukit/score/include/rtems/score/tod.h b/cpukit/score/include/rtems/score/tod.h index b0ff31fa80..6038b686d5 100644 --- a/cpukit/score/include/rtems/score/tod.h +++ b/cpukit/score/include/rtems/score/tod.h @@ -129,7 +129,7 @@ extern "C" { * This is TRUE if the application has set the current * time of day, and FALSE otherwise. */ -SCORE_EXTERN boolean _TOD_Is_set; +SCORE_EXTERN bool _TOD_Is_set; /** @brief Current Time of Day (Timespec) * The following contains the current time of day. diff --git a/cpukit/score/include/rtems/score/userext.h b/cpukit/score/include/rtems/score/userext.h index b8bcc0c2ff..8fa1d30deb 100644 --- a/cpukit/score/include/rtems/score/userext.h +++ b/cpukit/score/include/rtems/score/userext.h @@ -56,7 +56,7 @@ typedef void User_extensions_routine; * This type defines the prototype of a thread creation extension handler. * The handler is passed the thread executing and the thread being created. */ -typedef boolean ( *User_extensions_thread_create_extension )( +typedef bool ( *User_extensions_thread_create_extension )( Thread_Control *, Thread_Control * ); @@ -130,7 +130,7 @@ typedef User_extensions_routine ( *User_extensions_thread_exitted_extension )( */ typedef User_extensions_routine ( *User_extensions_fatal_extension )( Internal_errors_Source /* the_source */, - boolean /* is_internal */, + bool /* is_internal */, uint32_t /* the_error */ ); @@ -253,7 +253,7 @@ void _User_extensions_Remove_set ( * @return This method returns TRUE if the user extension executed * successfully. */ -boolean _User_extensions_Thread_create ( +bool _User_extensions_Thread_create ( Thread_Control *the_thread ); @@ -337,7 +337,7 @@ void _User_extensions_Thread_exitted ( */ void _User_extensions_Fatal ( Internal_errors_Source the_source, - boolean is_internal, + bool is_internal, uint32_t the_error ); diff --git a/cpukit/score/include/rtems/score/wkspace.h b/cpukit/score/include/rtems/score/wkspace.h index b210000d41..b4047c56fa 100644 --- a/cpukit/score/include/rtems/score/wkspace.h +++ b/cpukit/score/include/rtems/score/wkspace.h @@ -80,7 +80,7 @@ void *_Workspace_Allocate( * @return TRUE if the free was successful. */ -boolean _Workspace_Free( +bool _Workspace_Free( void *block ); diff --git a/cpukit/score/inline/rtems/score/address.inl b/cpukit/score/inline/rtems/score/address.inl index f1a0dd6cc7..3394a52388 100644 --- a/cpukit/score/inline/rtems/score/address.inl +++ b/cpukit/score/inline/rtems/score/address.inl @@ -99,7 +99,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Addresses_Subtract ( * @return This method returns TRUE if the address is aligned and * FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Addresses_Is_aligned ( +RTEMS_INLINE_ROUTINE bool _Addresses_Is_aligned ( void *address ) { @@ -125,7 +125,7 @@ RTEMS_INLINE_ROUTINE boolean _Addresses_Is_aligned ( * @return This method returns TRUE if the given @a address is within the * memory range specified and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Addresses_Is_in_range ( +RTEMS_INLINE_ROUTINE bool _Addresses_Is_in_range ( void *address, void *base, void *limit diff --git a/cpukit/score/inline/rtems/score/chain.inl b/cpukit/score/inline/rtems/score/chain.inl index 4ae8e8da4f..ca9b3d3c42 100644 --- a/cpukit/score/inline/rtems/score/chain.inl +++ b/cpukit/score/inline/rtems/score/chain.inl @@ -43,7 +43,7 @@ * @return This function returns TRUE if @a left and @a right are equal, * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Chain_Are_nodes_equal( +RTEMS_INLINE_ROUTINE bool _Chain_Are_nodes_equal( const Chain_Node *left, const Chain_Node *right ) @@ -59,7 +59,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Are_nodes_equal( * * @return This method returns TRUE if the_chain is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Chain_Is_null( +RTEMS_INLINE_ROUTINE bool _Chain_Is_null( const Chain_Control *the_chain ) { @@ -74,7 +74,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_null( * * @return This method returns TRUE if the_node is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Chain_Is_null_node( +RTEMS_INLINE_ROUTINE bool _Chain_Is_null_node( const Chain_Node *the_node ) { @@ -121,7 +121,7 @@ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( * @return This function returns TRUE if there a no nodes on @a the_chain and * FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty( +RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { @@ -139,7 +139,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty( * @return This function returns TRUE if @a the_node is the first node on * a chain and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Chain_Is_first( +RTEMS_INLINE_ROUTINE bool _Chain_Is_first( const Chain_Node *the_node ) { @@ -156,7 +156,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_first( * @return This function returns TRUE if @a the_node is the last node on * a chain and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Chain_Is_last( +RTEMS_INLINE_ROUTINE bool _Chain_Is_last( const Chain_Node *the_node ) { @@ -173,7 +173,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_last( * @return This function returns TRUE if there is only one node on * @a the_chain and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Chain_Has_only_one_node( +RTEMS_INLINE_ROUTINE bool _Chain_Has_only_one_node( const Chain_Control *the_chain ) { @@ -191,7 +191,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Has_only_one_node( * @return This function returns TRUE if @a the_node is the head of * @a the_chain and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Chain_Is_head( +RTEMS_INLINE_ROUTINE bool _Chain_Is_head( Chain_Control *the_chain, const Chain_Node *the_node ) @@ -207,7 +207,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_head( * @param[in] the_chain is the chain to be operated upon. * @param[in] the_node is the node to check for being the Chain Tail. */ -RTEMS_INLINE_ROUTINE boolean _Chain_Is_tail( +RTEMS_INLINE_ROUTINE bool _Chain_Is_tail( Chain_Control *the_chain, const Chain_Node *the_node ) diff --git a/cpukit/score/inline/rtems/score/corebarrier.inl b/cpukit/score/inline/rtems/score/corebarrier.inl index db40ccc180..bec57d9387 100644 --- a/cpukit/score/inline/rtems/score/corebarrier.inl +++ b/cpukit/score/inline/rtems/score/corebarrier.inl @@ -38,7 +38,7 @@ * @param[in] the_attribute is the attribute set to test * @return TRUE if the priority attribute is enabled */ -RTEMS_INLINE_ROUTINE boolean _CORE_barrier_Is_automatic( +RTEMS_INLINE_ROUTINE bool _CORE_barrier_Is_automatic( CORE_barrier_Attributes *the_attribute ) { diff --git a/cpukit/score/inline/rtems/score/coremsg.inl b/cpukit/score/inline/rtems/score/coremsg.inl index 4387a27ad7..92d10ca6e2 100644 --- a/cpukit/score/inline/rtems/score/coremsg.inl +++ b/cpukit/score/inline/rtems/score/coremsg.inl @@ -40,7 +40,7 @@ RTEMS_INLINE_ROUTINE CORE_message_queue_Status _CORE_message_queue_Send( size_t size, Objects_Id id, CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, - boolean wait, + bool wait, Watchdog_Interval timeout ) { @@ -70,7 +70,7 @@ RTEMS_INLINE_ROUTINE CORE_message_queue_Status _CORE_message_queue_Urgent( size_t size, Objects_Id id, CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, - boolean wait, + bool wait, Watchdog_Interval timeout ) { @@ -150,7 +150,7 @@ RTEMS_INLINE_ROUTINE * enabled in the attribute_set and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _CORE_message_queue_Is_priority( +RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_priority( CORE_message_queue_Attributes *the_attribute ) { @@ -193,7 +193,7 @@ RTEMS_INLINE_ROUTINE void _CORE_message_queue_Prepend_unprotected ( * This function returns TRUE if the_message_queue is TRUE and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _CORE_message_queue_Is_null ( +RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_null ( CORE_message_queue_Control *the_message_queue ) { @@ -205,7 +205,7 @@ RTEMS_INLINE_ROUTINE boolean _CORE_message_queue_Is_null ( * queue and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _CORE_message_queue_Is_notify_enabled ( +RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_notify_enabled ( CORE_message_queue_Control *the_message_queue ) { diff --git a/cpukit/score/inline/rtems/score/coremutex.inl b/cpukit/score/inline/rtems/score/coremutex.inl index 0e2db744f3..eed2393abe 100644 --- a/cpukit/score/inline/rtems/score/coremutex.inl +++ b/cpukit/score/inline/rtems/score/coremutex.inl @@ -38,7 +38,7 @@ * * @return This method returns TRUE if the mutex is locked. */ -RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_locked( +RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_locked( CORE_mutex_Control *the_mutex ) { @@ -55,7 +55,7 @@ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_locked( * * @return This method returns TRUE if the mutex is using FIFO blocking order. */ -RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_fifo( +RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_fifo( CORE_mutex_Attributes *the_attribute ) { @@ -73,7 +73,7 @@ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_fifo( * @return This method returns TRUE if the mutex is using * priority blocking order. */ -RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_priority( +RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_priority( CORE_mutex_Attributes *the_attribute ) { @@ -91,7 +91,7 @@ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_priority( * @return This method returns TRUE if the mutex is using priority * inheritance. */ -RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( +RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { @@ -108,7 +108,7 @@ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority( * @return This method returns TRUE if the mutex is using priority * ceiling. */ -RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_priority_ceiling( +RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_priority_ceiling( CORE_mutex_Attributes *the_attribute ) { diff --git a/cpukit/score/inline/rtems/score/coresem.inl b/cpukit/score/inline/rtems/score/coresem.inl index 4ea256777a..b44db663f9 100644 --- a/cpukit/score/inline/rtems/score/coresem.inl +++ b/cpukit/score/inline/rtems/score/coresem.inl @@ -38,7 +38,7 @@ * @param[in] the_attribute is the attribute set to test * @return TRUE if the priority attribute is enabled */ -RTEMS_INLINE_ROUTINE boolean _CORE_semaphore_Is_priority( +RTEMS_INLINE_ROUTINE bool _CORE_semaphore_Is_priority( CORE_semaphore_Attributes *the_attribute ) { @@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE uint32_t _CORE_semaphore_Get_count( RTEMS_INLINE_ROUTINE void _CORE_semaphore_Seize_isr_disable( CORE_semaphore_Control *the_semaphore, Objects_Id id, - boolean wait, + bool wait, Watchdog_Interval timeout, ISR_Level *level_p ) diff --git a/cpukit/score/inline/rtems/score/corespinlock.inl b/cpukit/score/inline/rtems/score/corespinlock.inl index 2a86ecd484..e1c86ef5a7 100644 --- a/cpukit/score/inline/rtems/score/corespinlock.inl +++ b/cpukit/score/inline/rtems/score/corespinlock.inl @@ -37,7 +37,7 @@ * @return This method will return TRUE if the spinlock is busy * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _CORE_spinlock_Is_busy( +RTEMS_INLINE_ROUTINE bool _CORE_spinlock_Is_busy( CORE_spinlock_Control *the_spinlock ) { diff --git a/cpukit/score/inline/rtems/score/heap.inl b/cpukit/score/inline/rtems/score/heap.inl index a32143a5cf..7b8701bdc8 100644 --- a/cpukit/score/inline/rtems/score/heap.inl +++ b/cpukit/score/inline/rtems/score/heap.inl @@ -163,7 +163,7 @@ RTEMS_INLINE_ROUTINE void _Heap_Block_insert_after ( * @return This method returns TRUE if the address is aligned and false * otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Heap_Is_aligned ( +RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned ( uint32_t value, uint32_t alignment ) @@ -217,7 +217,7 @@ RTEMS_INLINE_ROUTINE void _Heap_Align_down ( * @return This method returns TRUE if @a ptr is aligned at @a alignment * boundary, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Heap_Is_aligned_ptr ( +RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned_ptr ( void *ptr, uint32_t alignment ) @@ -329,7 +329,7 @@ RTEMS_INLINE_ROUTINE void _Heap_Start_of_block ( * @return This method returns TRUE if the previous block is used and FALSE * if the previous block is free. */ -RTEMS_INLINE_ROUTINE boolean _Heap_Is_prev_used ( +RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used ( Heap_Block *the_block ) { @@ -360,7 +360,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size ( * @return This method returns TRUE if @a the_block appears to have been * allocated from @a the_heap, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Heap_Is_block_in ( +RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in ( Heap_Control *the_heap, Heap_Block *the_block ) diff --git a/cpukit/score/inline/rtems/score/isr.inl b/cpukit/score/inline/rtems/score/isr.inl index 49fdea521a..c1641dd21f 100644 --- a/cpukit/score/inline/rtems/score/isr.inl +++ b/cpukit/score/inline/rtems/score/isr.inl @@ -33,7 +33,7 @@ * for this processor and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _ISR_Is_vector_number_valid ( +RTEMS_INLINE_ROUTINE bool _ISR_Is_vector_number_valid ( uint32_t vector ) { @@ -45,7 +45,7 @@ RTEMS_INLINE_ROUTINE boolean _ISR_Is_vector_number_valid ( * use interrupt service routine and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _ISR_Is_valid_user_handler ( +RTEMS_INLINE_ROUTINE bool _ISR_Is_valid_user_handler ( void *handler ) { diff --git a/cpukit/score/inline/rtems/score/mppkt.inl b/cpukit/score/inline/rtems/score/mppkt.inl index d1ab8c07e6..26fb98618f 100644 --- a/cpukit/score/inline/rtems/score/mppkt.inl +++ b/cpukit/score/inline/rtems/score/mppkt.inl @@ -36,7 +36,7 @@ * because this enum starts at lower bound of zero. */ -RTEMS_INLINE_ROUTINE boolean _Mp_packet_Is_valid_packet_class ( +RTEMS_INLINE_ROUTINE bool _Mp_packet_Is_valid_packet_class ( MP_packet_Classes the_packet_class ) { @@ -48,7 +48,7 @@ RTEMS_INLINE_ROUTINE boolean _Mp_packet_Is_valid_packet_class ( * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Mp_packet_Is_null ( +RTEMS_INLINE_ROUTINE bool _Mp_packet_Is_null ( MP_packet_Prefix *the_packet ) { diff --git a/cpukit/score/inline/rtems/score/object.inl b/cpukit/score/inline/rtems/score/object.inl index 0e8feb02b2..f3b1730f18 100644 --- a/cpukit/score/inline/rtems/score/object.inl +++ b/cpukit/score/inline/rtems/score/object.inl @@ -112,7 +112,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index( * @return This method returns TRUE if the specified api value is valid * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Objects_Is_api_valid( +RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { @@ -131,7 +131,7 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_api_valid( * @return This method returns TRUE if the specified node is the local node * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_node( +RTEMS_INLINE_ROUTINE bool _Objects_Is_local_node( uint32_t node ) { @@ -149,7 +149,7 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_node( * * @note On a single processor configuration, this always returns TRUE. */ -RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_id( +RTEMS_INLINE_ROUTINE bool _Objects_Is_local_id( Objects_Id id ) { @@ -170,7 +170,7 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_id( * @return This method returns TRUE if the specified object IDs are equal * and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Objects_Are_ids_equal( +RTEMS_INLINE_ROUTINE bool _Objects_Are_ids_equal( Objects_Id left, Objects_Id right ) diff --git a/cpukit/score/inline/rtems/score/objectmp.inl b/cpukit/score/inline/rtems/score/objectmp.inl index 7ea4efd77c..53db23621a 100644 --- a/cpukit/score/inline/rtems/score/objectmp.inl +++ b/cpukit/score/inline/rtems/score/objectmp.inl @@ -58,7 +58,7 @@ RTEMS_INLINE_ROUTINE void _Objects_MP_Free_global_object ( * This function returns whether the global object is NULL or not. */ -RTEMS_INLINE_ROUTINE boolean _Objects_MP_Is_null_global_object ( +RTEMS_INLINE_ROUTINE bool _Objects_MP_Is_null_global_object ( Objects_MP_Control *the_object ) { diff --git a/cpukit/score/inline/rtems/score/priority.inl b/cpukit/score/inline/rtems/score/priority.inl index 162d42d0e1..660c17a291 100644 --- a/cpukit/score/inline/rtems/score/priority.inl +++ b/cpukit/score/inline/rtems/score/priority.inl @@ -48,7 +48,7 @@ RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) * user task, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Priority_Is_valid ( +RTEMS_INLINE_ROUTINE bool _Priority_Is_valid ( Priority_Control the_priority ) { @@ -192,7 +192,7 @@ RTEMS_INLINE_ROUTINE void _Priority_Initialize_information( * FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Priority_Is_group_empty ( +RTEMS_INLINE_ROUTINE bool _Priority_Is_group_empty ( Priority_Control the_priority ) { diff --git a/cpukit/score/inline/rtems/score/stack.inl b/cpukit/score/inline/rtems/score/stack.inl index 8f0fc87147..0c16b8d98b 100644 --- a/cpukit/score/inline/rtems/score/stack.inl +++ b/cpukit/score/inline/rtems/score/stack.inl @@ -62,7 +62,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Stack_Minimum (void) * * @return This method returns TRUE if the stack is large enough. */ -RTEMS_INLINE_ROUTINE boolean _Stack_Is_enough ( +RTEMS_INLINE_ROUTINE bool _Stack_Is_enough ( size_t size ) { diff --git a/cpukit/score/inline/rtems/score/states.inl b/cpukit/score/inline/rtems/score/states.inl index 212f2eaf48..1d358ded2d 100644 --- a/cpukit/score/inline/rtems/score/states.inl +++ b/cpukit/score/inline/rtems/score/states.inl @@ -59,7 +59,7 @@ RTEMS_INLINE_ROUTINE States_Control _States_Clear ( * state is READY, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_ready ( +RTEMS_INLINE_ROUTINE bool _States_Is_ready ( States_Control the_states ) { @@ -71,7 +71,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_ready ( * set in the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_only_dormant ( +RTEMS_INLINE_ROUTINE bool _States_Is_only_dormant ( States_Control the_states ) { @@ -83,7 +83,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_only_dormant ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_dormant ( +RTEMS_INLINE_ROUTINE bool _States_Is_dormant ( States_Control the_states ) { @@ -95,7 +95,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_dormant ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_suspended ( +RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( States_Control the_states ) { @@ -107,7 +107,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_suspended ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_transient ( +RTEMS_INLINE_ROUTINE bool _States_Is_transient ( States_Control the_states ) { @@ -119,7 +119,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_transient ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_delaying ( +RTEMS_INLINE_ROUTINE bool _States_Is_delaying ( States_Control the_states ) { @@ -131,7 +131,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_delaying ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_buffer ( +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_buffer ( States_Control the_states ) { @@ -143,7 +143,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_buffer ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_segment ( +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_segment ( States_Control the_states ) { @@ -155,7 +155,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_segment ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_message ( +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_message ( States_Control the_states ) { @@ -167,7 +167,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_message ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_event ( +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event ( States_Control the_states ) { @@ -179,7 +179,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_event ( * is set in the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_mutex ( +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_mutex ( States_Control the_states ) { @@ -191,7 +191,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_mutex ( * is set in the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_semaphore ( +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_semaphore ( States_Control the_states ) { @@ -203,7 +203,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_semaphore ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_time ( +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_time ( States_Control the_states ) { @@ -215,7 +215,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_time ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_rpc_reply ( +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_rpc_reply ( States_Control the_states ) { @@ -227,7 +227,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_rpc_reply ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_period ( +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period ( States_Control the_states ) { @@ -240,7 +240,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_period ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_locally_blocked ( +RTEMS_INLINE_ROUTINE bool _States_Is_locally_blocked ( States_Control the_states ) { @@ -253,7 +253,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_locally_blocked ( * the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_on_thread_queue ( +RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue ( States_Control the_states ) { @@ -265,7 +265,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_on_thread_queue ( * that a task is blocked is set in the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Is_blocked ( +RTEMS_INLINE_ROUTINE bool _States_Is_blocked ( States_Control the_states ) { @@ -277,7 +277,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_blocked ( * are set in the_states, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _States_Are_set ( +RTEMS_INLINE_ROUTINE bool _States_Are_set ( States_Control the_states, States_Control mask ) diff --git a/cpukit/score/inline/rtems/score/sysstate.inl b/cpukit/score/inline/rtems/score/sysstate.inl index 072244f05a..0f60a31f57 100644 --- a/cpukit/score/inline/rtems/score/sysstate.inl +++ b/cpukit/score/inline/rtems/score/sysstate.inl @@ -33,7 +33,7 @@ */ RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization ( - boolean is_multiprocessing + bool is_multiprocessing ) { _System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION; @@ -68,7 +68,7 @@ RTEMS_INLINE_ROUTINE System_state_Codes _System_state_Get ( void ) * "before initialization" state, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _System_state_Is_before_initialization ( +RTEMS_INLINE_ROUTINE bool _System_state_Is_before_initialization ( System_state_Codes state ) { @@ -80,7 +80,7 @@ RTEMS_INLINE_ROUTINE boolean _System_state_Is_before_initialization ( * "before multitasking" state, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _System_state_Is_before_multitasking ( +RTEMS_INLINE_ROUTINE bool _System_state_Is_before_multitasking ( System_state_Codes state ) { @@ -92,7 +92,7 @@ RTEMS_INLINE_ROUTINE boolean _System_state_Is_before_multitasking ( * "begin multitasking" state, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _System_state_Is_begin_multitasking ( +RTEMS_INLINE_ROUTINE bool _System_state_Is_begin_multitasking ( System_state_Codes state ) { @@ -104,7 +104,7 @@ RTEMS_INLINE_ROUTINE boolean _System_state_Is_begin_multitasking ( * "up" state, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _System_state_Is_up ( +RTEMS_INLINE_ROUTINE bool _System_state_Is_up ( System_state_Codes state ) { @@ -116,7 +116,7 @@ RTEMS_INLINE_ROUTINE boolean _System_state_Is_up ( * "failed" state, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _System_state_Is_failed ( +RTEMS_INLINE_ROUTINE bool _System_state_Is_failed ( System_state_Codes state ) { diff --git a/cpukit/score/inline/rtems/score/thread.inl b/cpukit/score/inline/rtems/score/thread.inl index e6d4b4800e..d70d5330b3 100644 --- a/cpukit/score/inline/rtems/score/thread.inl +++ b/cpukit/score/inline/rtems/score/thread.inl @@ -52,7 +52,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Stop_multitasking( void ) * thread, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Thread_Is_executing ( +RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { @@ -64,7 +64,7 @@ RTEMS_INLINE_ROUTINE boolean _Thread_Is_executing ( * thread, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Thread_Is_heir ( +RTEMS_INLINE_ROUTINE bool _Thread_Is_heir ( const Thread_Control *the_thread ) { @@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE boolean _Thread_Is_heir ( * is also the heir thread, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Thread_Is_executing_also_the_heir( void ) +RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); } @@ -127,7 +127,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) -RTEMS_INLINE_ROUTINE boolean _Thread_Is_allocated_fp ( +RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp ( const Thread_Control *the_thread ) { @@ -235,7 +235,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) * otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Thread_Is_dispatching_enabled( void ) +RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 ); } @@ -245,7 +245,7 @@ RTEMS_INLINE_ROUTINE boolean _Thread_Is_dispatching_enabled( void ) * otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Thread_Is_context_switch_necessary( void ) +RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Context_Switch_necessary ); } @@ -263,7 +263,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_initialization( void ) * This function returns TRUE if the_thread is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Thread_Is_null ( +RTEMS_INLINE_ROUTINE bool _Thread_Is_null ( const Thread_Control *the_thread ) { @@ -274,7 +274,7 @@ RTEMS_INLINE_ROUTINE boolean _Thread_Is_null ( * * status which indicates that a proxy is blocking, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Thread_Is_proxy_blocking ( +RTEMS_INLINE_ROUTINE bool _Thread_Is_proxy_blocking ( uint32_t code ) { diff --git a/cpukit/score/inline/rtems/score/threadmp.inl b/cpukit/score/inline/rtems/score/threadmp.inl index c9cdb97c3f..c54a22ba3b 100644 --- a/cpukit/score/inline/rtems/score/threadmp.inl +++ b/cpukit/score/inline/rtems/score/threadmp.inl @@ -35,7 +35,7 @@ * multiprocessing receive thread. */ -RTEMS_INLINE_ROUTINE boolean _Thread_MP_Is_receive ( +RTEMS_INLINE_ROUTINE bool _Thread_MP_Is_receive ( Thread_Control *the_thread ) { diff --git a/cpukit/score/inline/rtems/score/tqdata.inl b/cpukit/score/inline/rtems/score/tqdata.inl index 617eb69375..ed4c950868 100644 --- a/cpukit/score/inline/rtems/score/tqdata.inl +++ b/cpukit/score/inline/rtems/score/tqdata.inl @@ -46,7 +46,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number ( * group chain, and FALSE if the search should start at the rear. */ -RTEMS_INLINE_ROUTINE boolean _Thread_queue_Is_reverse_search ( +RTEMS_INLINE_ROUTINE bool _Thread_queue_Is_reverse_search ( Priority_Control the_priority ) { diff --git a/cpukit/score/inline/rtems/score/watchdog.inl b/cpukit/score/inline/rtems/score/watchdog.inl index 966bf7338c..c97a5359ac 100644 --- a/cpukit/score/inline/rtems/score/watchdog.inl +++ b/cpukit/score/inline/rtems/score/watchdog.inl @@ -52,7 +52,7 @@ RTEMS_INLINE_ROUTINE void _Watchdog_Initialize( * state, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Watchdog_Is_active( +RTEMS_INLINE_ROUTINE bool _Watchdog_Is_active( Watchdog_Control *the_watchdog ) { diff --git a/cpukit/score/src/corebarrierwait.c b/cpukit/score/src/corebarrierwait.c index f00b3d73d5..4112d9b44d 100644 --- a/cpukit/score/src/corebarrierwait.c +++ b/cpukit/score/src/corebarrierwait.c @@ -50,7 +50,7 @@ void _CORE_barrier_Wait( CORE_barrier_Control *the_barrier, Objects_Id id, - boolean wait, + bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) diff --git a/cpukit/score/src/coremsg.c b/cpukit/score/src/coremsg.c index 8163df96e5..e7e722ac0c 100644 --- a/cpukit/score/src/coremsg.c +++ b/cpukit/score/src/coremsg.c @@ -52,7 +52,7 @@ * FALSE - if the message queue is NOT initialized */ -boolean _CORE_message_queue_Initialize( +bool _CORE_message_queue_Initialize( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, @@ -79,7 +79,7 @@ boolean _CORE_message_queue_Initialize( } if (allocated_message_size < maximum_message_size) - return FALSE; + return false; /* * Calculate how much total memory is required for message buffering and @@ -89,7 +89,7 @@ boolean _CORE_message_queue_Initialize( (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) - return FALSE; + return false; /* * Attempt to allocate the message memory @@ -98,7 +98,7 @@ boolean _CORE_message_queue_Initialize( _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) - return FALSE; + return false; /* * Initialize the pool of inactive messages, pending messages, @@ -121,5 +121,5 @@ boolean _CORE_message_queue_Initialize( CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); - return TRUE; + return true; } diff --git a/cpukit/score/src/coremsginsert.c b/cpukit/score/src/coremsginsert.c index 2402755447..5c30fd7ee8 100644 --- a/cpukit/score/src/coremsginsert.c +++ b/cpukit/score/src/coremsginsert.c @@ -59,7 +59,7 @@ void _CORE_message_queue_Insert_message( ) { ISR_Level level; - boolean notify = FALSE; + bool notify = false; the_message->priority = submit_type; @@ -67,14 +67,14 @@ void _CORE_message_queue_Insert_message( case CORE_MESSAGE_QUEUE_SEND_REQUEST: _ISR_Disable( level ); if ( the_message_queue->number_of_pending_messages++ == 0 ) - notify = TRUE; + notify = true; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); break; case CORE_MESSAGE_QUEUE_URGENT_REQUEST: _ISR_Disable( level ); if ( the_message_queue->number_of_pending_messages++ == 0 ) - notify = TRUE; + notify = true; _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); break; @@ -99,7 +99,7 @@ void _CORE_message_queue_Insert_message( } _ISR_Disable( level ); if ( the_message_queue->number_of_pending_messages++ == 0 ) - notify = TRUE; + notify = true; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); _ISR_Enable( level ); } diff --git a/cpukit/score/src/coremsgseize.c b/cpukit/score/src/coremsgseize.c index 48c4d7ecb4..70ea8dd4a7 100644 --- a/cpukit/score/src/coremsgseize.c +++ b/cpukit/score/src/coremsgseize.c @@ -64,7 +64,7 @@ void _CORE_message_queue_Seize( Objects_Id id, void *buffer, size_t *size_p, - boolean wait, + bool wait, Watchdog_Interval timeout ) { diff --git a/cpukit/score/src/coremsgsubmit.c b/cpukit/score/src/coremsgsubmit.c index 9882d1c811..9c00c15816 100644 --- a/cpukit/score/src/coremsgsubmit.c +++ b/cpukit/score/src/coremsgsubmit.c @@ -64,7 +64,7 @@ CORE_message_queue_Status _CORE_message_queue_Submit( Objects_Id id, CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, CORE_message_queue_Submit_types submit_type, - boolean wait, + bool wait, Watchdog_Interval timeout ) { diff --git a/cpukit/score/src/coremutexseize.c b/cpukit/score/src/coremutexseize.c index 3dc3a70c5b..b8f6c3831e 100644 --- a/cpukit/score/src/coremutexseize.c +++ b/cpukit/score/src/coremutexseize.c @@ -31,7 +31,7 @@ void _CORE_mutex_Seize( CORE_mutex_Control *_the_mutex, Objects_Id _id, - boolean _wait, + bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) diff --git a/cpukit/score/src/corerwlockobtainread.c b/cpukit/score/src/corerwlockobtainread.c index 21429a5658..59d984907c 100644 --- a/cpukit/score/src/corerwlockobtainread.c +++ b/cpukit/score/src/corerwlockobtainread.c @@ -39,7 +39,7 @@ void _CORE_RWLock_Obtain_for_reading( CORE_RWLock_Control *the_rwlock, Objects_Id id, - boolean wait, + bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) diff --git a/cpukit/score/src/corerwlockobtainwrite.c b/cpukit/score/src/corerwlockobtainwrite.c index 2d1ff2aa3a..339f257397 100644 --- a/cpukit/score/src/corerwlockobtainwrite.c +++ b/cpukit/score/src/corerwlockobtainwrite.c @@ -39,7 +39,7 @@ void _CORE_RWLock_Obtain_for_writing( CORE_RWLock_Control *the_rwlock, Objects_Id id, - boolean wait, + bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) diff --git a/cpukit/score/src/coresemseize.c b/cpukit/score/src/coresemseize.c index 1db77199ba..9d69ec4bd5 100644 --- a/cpukit/score/src/coresemseize.c +++ b/cpukit/score/src/coresemseize.c @@ -53,7 +53,7 @@ void _CORE_semaphore_Seize( CORE_semaphore_Control *the_semaphore, Objects_Id id, - boolean wait, + bool wait, Watchdog_Interval timeout ) { diff --git a/cpukit/score/src/corespinlockwait.c b/cpukit/score/src/corespinlockwait.c index bdb2d408de..ef3bb43fb8 100644 --- a/cpukit/score/src/corespinlockwait.c +++ b/cpukit/score/src/corespinlockwait.c @@ -38,7 +38,7 @@ CORE_spinlock_Status _CORE_spinlock_Wait( CORE_spinlock_Control *the_spinlock, - boolean wait, + bool wait, Watchdog_Interval timeout ) { diff --git a/cpukit/score/src/heapfree.c b/cpukit/score/src/heapfree.c index 30667036d6..db66023bc1 100644 --- a/cpukit/score/src/heapfree.c +++ b/cpukit/score/src/heapfree.c @@ -35,7 +35,7 @@ * FALSE - if starting_address is invalid heap address */ -boolean _Heap_Free( +bool _Heap_Free( Heap_Control *the_heap, void *starting_address ) @@ -45,7 +45,7 @@ boolean _Heap_Free( uint32_t the_size; uint32_t next_size; Heap_Statistics *const stats = &the_heap->stats; - boolean next_is_free; + bool next_is_free; if ( !_Addresses_Is_in_range( starting_address, (void *)the_heap->start, (void *)the_heap->final ) ) { diff --git a/cpukit/score/src/heapresizeblock.c b/cpukit/score/src/heapresizeblock.c index 5598954a2d..49460f9767 100644 --- a/cpukit/score/src/heapresizeblock.c +++ b/cpukit/score/src/heapresizeblock.c @@ -55,7 +55,7 @@ Heap_Resize_status _Heap_Resize_block( Heap_Block *the_block; Heap_Block *next_block; uint32_t next_block_size; - boolean next_is_used; + bool next_is_used; Heap_Block *next_next_block; uint32_t old_block_size; uint32_t old_user_size; diff --git a/cpukit/score/src/heapsizeofuserarea.c b/cpukit/score/src/heapsizeofuserarea.c index 9b075e5433..c1555d2ccc 100644 --- a/cpukit/score/src/heapsizeofuserarea.c +++ b/cpukit/score/src/heapsizeofuserarea.c @@ -39,7 +39,7 @@ * FALSE - if starting_address is invalid heap address */ -boolean _Heap_Size_of_user_area( +bool _Heap_Size_of_user_area( Heap_Control *the_heap, void *starting_address, size_t *size diff --git a/cpukit/score/src/heapwalk.c b/cpukit/score/src/heapwalk.c index 44e06f0f48..2aaff7698d 100644 --- a/cpukit/score/src/heapwalk.c +++ b/cpukit/score/src/heapwalk.c @@ -39,10 +39,10 @@ #include <stdio.h> -boolean _Heap_Walk( +bool _Heap_Walk( Heap_Control *the_heap, int source, - boolean do_dump + bool do_dump ) { Heap_Block *the_block = the_heap->start; @@ -89,7 +89,7 @@ boolean _Heap_Walk( while ( the_block != end ) { uint32_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); - boolean prev_used = _Heap_Is_prev_used(the_block); + bool prev_used = _Heap_Is_prev_used(the_block); if (do_dump) { printk("PASS: %d block %p size %d(%c)", diff --git a/cpukit/score/src/interr.c b/cpukit/score/src/interr.c index 4431c7b313..308636f72f 100644 --- a/cpukit/score/src/interr.c +++ b/cpukit/score/src/interr.c @@ -45,7 +45,7 @@ void _Internal_error_Occurred( Internal_errors_Source the_source, - boolean is_internal, + bool is_internal, uint32_t the_error ) { diff --git a/cpukit/score/src/objectinitializeinformation.c b/cpukit/score/src/objectinitializeinformation.c index c7f54ccecd..32def850f0 100644 --- a/cpukit/score/src/objectinitializeinformation.c +++ b/cpukit/score/src/objectinitializeinformation.c @@ -53,11 +53,11 @@ void _Objects_Initialize_information( uint32_t the_class, uint32_t maximum, uint16_t size, - boolean is_string, + bool is_string, uint32_t maximum_name_length #if defined(RTEMS_MULTIPROCESSING) , - boolean supports_global, + bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) @@ -165,7 +165,7 @@ void _Objects_Initialize_information( #if defined(RTEMS_MULTIPROCESSING) information->extract = extract; - if ( supports_global == TRUE && _System_state_Is_multiprocessing ) { + if ( (supports_global == true) && _System_state_Is_multiprocessing ) { information->global_table = (Chain_Control *) _Workspace_Allocate_or_fatal_error( diff --git a/cpukit/score/src/objectmp.c b/cpukit/score/src/objectmp.c index b9c05ee681..3447069760 100644 --- a/cpukit/score/src/objectmp.c +++ b/cpukit/score/src/objectmp.c @@ -81,11 +81,11 @@ void _Objects_MP_Open ( * */ -boolean _Objects_MP_Allocate_and_open ( +bool _Objects_MP_Allocate_and_open ( Objects_Information *information, uint32_t the_name, /* XXX -- wrong for variable */ Objects_Id the_id, - boolean is_fatal_error + bool is_fatal_error ) { Objects_MP_Control *the_global_object; diff --git a/cpukit/score/src/objectnametoid.c b/cpukit/score/src/objectnametoid.c index 021e361cf7..29d6e18178 100644 --- a/cpukit/score/src/objectnametoid.c +++ b/cpukit/score/src/objectnametoid.c @@ -54,7 +54,7 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32( Objects_Id *id ) { - boolean search_local_node; + bool search_local_node; Objects_Control *the_object; uint32_t index; uint32_t name_length; diff --git a/cpukit/score/src/objectsetname.c b/cpukit/score/src/objectsetname.c index 727b9836eb..3dcfae7706 100644 --- a/cpukit/score/src/objectsetname.c +++ b/cpukit/score/src/objectsetname.c @@ -28,7 +28,7 @@ * This method sets the name of an object based upon a C string. */ -boolean _Objects_Set_name( +bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name diff --git a/cpukit/score/src/pheapextend.c b/cpukit/score/src/pheapextend.c index 1d1943747f..2d8d4ac3a3 100644 --- a/cpukit/score/src/pheapextend.c +++ b/cpukit/score/src/pheapextend.c @@ -16,7 +16,7 @@ #include <rtems/system.h> #include <rtems/score/protectedheap.h> -boolean _Protected_heap_Extend( +bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, size_t size diff --git a/cpukit/score/src/pheapfree.c b/cpukit/score/src/pheapfree.c index 0d5737aac6..1548547855 100644 --- a/cpukit/score/src/pheapfree.c +++ b/cpukit/score/src/pheapfree.c @@ -16,12 +16,12 @@ #include <rtems/system.h> #include <rtems/score/protectedheap.h> -boolean _Protected_heap_Free( +bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { - boolean status; + bool status; _RTEMS_Lock_allocator(); status = _Heap_Free( the_heap, start_address ); diff --git a/cpukit/score/src/pheapgetblocksize.c b/cpukit/score/src/pheapgetblocksize.c index 897236f370..029ef7b2c7 100644 --- a/cpukit/score/src/pheapgetblocksize.c +++ b/cpukit/score/src/pheapgetblocksize.c @@ -16,13 +16,13 @@ #include <rtems/system.h> #include <rtems/score/protectedheap.h> -boolean _Protected_heap_Get_block_size( +bool _Protected_heap_Get_block_size( Heap_Control *the_heap, void *starting_address, size_t *size ) { - boolean status; + bool status; _RTEMS_Lock_allocator(); status = _Heap_Size_of_user_area( the_heap, starting_address, size ); diff --git a/cpukit/score/src/pheapresizeblock.c b/cpukit/score/src/pheapresizeblock.c index 5f9946cb0f..589a520e0d 100644 --- a/cpukit/score/src/pheapresizeblock.c +++ b/cpukit/score/src/pheapresizeblock.c @@ -16,7 +16,7 @@ #include <rtems/system.h> #include <rtems/score/protectedheap.h> -boolean _Protected_heap_Resize_block( +bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, size_t size diff --git a/cpukit/score/src/pheapwalk.c b/cpukit/score/src/pheapwalk.c index e20cf124d7..4ddd5d9f90 100644 --- a/cpukit/score/src/pheapwalk.c +++ b/cpukit/score/src/pheapwalk.c @@ -16,13 +16,13 @@ #include <rtems/system.h> #include <rtems/score/protectedheap.h> -boolean _Protected_heap_Walk( +bool _Protected_heap_Walk( Heap_Control *the_heap, int source, - boolean do_dump + bool do_dump ) { - boolean status; + bool status; /* * If we are called from within a dispatching critical section, diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c index df3ad0983f..ec9099e118 100644 --- a/cpukit/score/src/threadchangepriority.c +++ b/cpukit/score/src/threadchangepriority.c @@ -52,7 +52,7 @@ void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, - boolean prepend_it + bool prepend_it ) { ISR_Level level; diff --git a/cpukit/score/src/threaddispatch.c b/cpukit/score/src/threaddispatch.c index b98ae2a6bc..4911ab5342 100644 --- a/cpukit/score/src/threaddispatch.c +++ b/cpukit/score/src/threaddispatch.c @@ -171,7 +171,7 @@ void _Thread_Dispatch( void ) if ( _Thread_Do_post_task_switch_extension || executing->do_post_task_switch_extension ) { - executing->do_post_task_switch_extension = FALSE; + executing->do_post_task_switch_extension = false; _API_extensions_Run_postswitch(); } diff --git a/cpukit/score/src/threadevaluatemode.c b/cpukit/score/src/threadevaluatemode.c index f4d99b12cc..81322ef466 100644 --- a/cpukit/score/src/threadevaluatemode.c +++ b/cpukit/score/src/threadevaluatemode.c @@ -37,7 +37,7 @@ * XXX */ -boolean _Thread_Evaluate_mode( void ) +bool _Thread_Evaluate_mode( void ) { Thread_Control *executing; diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index 51bbdc4162..b86a2f9006 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -41,14 +41,14 @@ * thread id are allowed. */ -boolean _Thread_Initialize( +bool _Thread_Initialize( Objects_Information *information, Thread_Control *the_thread, void *stack_area, size_t stack_size, - boolean is_fp, + bool is_fp, Priority_Control priority, - boolean is_preemptible, + bool is_preemptible, Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, @@ -61,7 +61,7 @@ boolean _Thread_Initialize( void *fp_area; #endif void *extensions_area; - boolean extension_status; + bool extension_status; #if __RTEMS_ADA__ /* diff --git a/cpukit/score/src/threadloadenv.c b/cpukit/score/src/threadloadenv.c index b586a20621..6a30adbdde 100644 --- a/cpukit/score/src/threadloadenv.c +++ b/cpukit/score/src/threadloadenv.c @@ -47,19 +47,19 @@ void _Thread_Load_environment( Thread_Control *the_thread ) { - boolean is_fp; + bool is_fp; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( the_thread->Start.fp_context ) { the_thread->fp_context = the_thread->Start.fp_context; _Context_Initialize_fp( &the_thread->fp_context ); - is_fp = TRUE; + is_fp = true; } else #endif - is_fp = FALSE; + is_fp = false; - the_thread->do_post_task_switch_extension = FALSE; + the_thread->do_post_task_switch_extension = false; the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; diff --git a/cpukit/score/src/threadqextractpriority.c b/cpukit/score/src/threadqextractpriority.c index 739e6985c4..6da75691c6 100644 --- a/cpukit/score/src/threadqextractpriority.c +++ b/cpukit/score/src/threadqextractpriority.c @@ -46,7 +46,7 @@ void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, - boolean requeuing + bool requeuing ) { ISR_Level level; diff --git a/cpukit/score/src/threadqextractwithproxy.c b/cpukit/score/src/threadqextractwithproxy.c index 16461a2dec..796d5d435a 100644 --- a/cpukit/score/src/threadqextractwithproxy.c +++ b/cpukit/score/src/threadqextractwithproxy.c @@ -36,7 +36,7 @@ * XXX */ -boolean _Thread_queue_Extract_with_proxy( +bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c index ea479c3194..ab24497d08 100644 --- a/cpukit/score/src/threadrestart.c +++ b/cpukit/score/src/threadrestart.c @@ -40,7 +40,7 @@ * original starting point. */ -boolean _Thread_Restart( +bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument diff --git a/cpukit/score/src/threadresume.c b/cpukit/score/src/threadresume.c index 7f3555fe04..5081d5346e 100644 --- a/cpukit/score/src/threadresume.c +++ b/cpukit/score/src/threadresume.c @@ -53,7 +53,7 @@ void _Thread_Resume( Thread_Control *the_thread, - boolean force + bool force ) { diff --git a/cpukit/score/src/threadstart.c b/cpukit/score/src/threadstart.c index 15701b82c0..07fcd217c5 100644 --- a/cpukit/score/src/threadstart.c +++ b/cpukit/score/src/threadstart.c @@ -40,7 +40,7 @@ * thread competes with all other threads for CPU time. */ -boolean _Thread_Start( +bool _Thread_Start( Thread_Control *the_thread, Thread_Start_types the_prototype, void *entry_point, @@ -62,9 +62,8 @@ boolean _Thread_Start( _User_extensions_Thread_start( the_thread ); - return TRUE; + return true; } - return FALSE; - + return false; } diff --git a/cpukit/score/src/timespecgreaterthan.c b/cpukit/score/src/timespecgreaterthan.c index 5541760212..5d8fe77b5d 100644 --- a/cpukit/score/src/timespecgreaterthan.c +++ b/cpukit/score/src/timespecgreaterthan.c @@ -23,7 +23,7 @@ #include <rtems/score/timespec.h> #include <rtems/score/tod.h> -boolean _Timespec_Greater_than( +bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) diff --git a/cpukit/score/src/timespecisvalid.c b/cpukit/score/src/timespecisvalid.c index 5ae50f3c4c..5212036f1f 100644 --- a/cpukit/score/src/timespecisvalid.c +++ b/cpukit/score/src/timespecisvalid.c @@ -23,7 +23,7 @@ #include <rtems/score/timespec.h> #include <rtems/score/tod.h> -boolean _Timespec_Is_valid( +bool _Timespec_Is_valid( const struct timespec *time ) { diff --git a/cpukit/score/src/timespeclessthan.c b/cpukit/score/src/timespeclessthan.c index df824b2d27..b72a15db49 100644 --- a/cpukit/score/src/timespeclessthan.c +++ b/cpukit/score/src/timespeclessthan.c @@ -23,7 +23,7 @@ #include <rtems/score/timespec.h> #include <rtems/score/tod.h> -boolean _Timespec_Less_than( +bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) diff --git a/cpukit/score/src/userextthreadbegin.c b/cpukit/score/src/userextthreadbegin.c index bf2cc1a1af..7c36604d2a 100644 --- a/cpukit/score/src/userextthreadbegin.c +++ b/cpukit/score/src/userextthreadbegin.c @@ -70,7 +70,7 @@ void _User_extensions_Thread_exitted ( void _User_extensions_Fatal ( Internal_errors_Source the_source, - boolean is_internal, + bool is_internal, uint32_t the_error ) { diff --git a/cpukit/score/src/userextthreadcreate.c b/cpukit/score/src/userextthreadcreate.c index 3d9caca174..cec6f62637 100644 --- a/cpukit/score/src/userextthreadcreate.c +++ b/cpukit/score/src/userextthreadcreate.c @@ -21,13 +21,13 @@ * _User_extensions_Thread_create */ -boolean _User_extensions_Thread_create ( +bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { Chain_Node *the_node; User_extensions_Control *the_extension; - boolean status; + bool status; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; diff --git a/cpukit/score/src/wkspace.c b/cpukit/score/src/wkspace.c index 79fe5207ec..ebb71f3297 100644 --- a/cpukit/score/src/wkspace.c +++ b/cpukit/score/src/wkspace.c @@ -70,7 +70,7 @@ void *_Workspace_Allocate( /* * _Workspace_Free */ -boolean _Workspace_Free( +bool _Workspace_Free( void *block ) { |