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 /cpukit/score/include/rtems/score | |
parent | 2008-09-04 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-484a76996eeb65ad726b65946642516c70b3257b.tar.bz2 |
Convert to "bool".
Diffstat (limited to 'cpukit/score/include/rtems/score')
20 files changed, 63 insertions, 63 deletions
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 ); |