Convert to "bool".

This commit is contained in:
Ralf Corsepius
2008-09-04 17:46:39 +00:00
parent 301fef142e
commit 484a76996e
124 changed files with 364 additions and 365 deletions

View File

@@ -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. */

View File

@@ -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
);

View File

@@ -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

View File

@@ -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;

View File

@@ -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
);

View File

@@ -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
);

View File

@@ -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
)
{

View File

@@ -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;
}
/**@}*/

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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;
}
/**@}*/

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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;
}

View File

@@ -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();
}

View File

@@ -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;

View File

@@ -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 ) )

View File

@@ -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,

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
}
}
}

View File

@@ -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;

View File

@@ -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

View File

@@ -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;

View File

@@ -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
)
{

View File

@@ -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;

View File

@@ -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
)

View File

@@ -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
)
{

View File

@@ -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;
}

View File

@@ -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
);

View File

@@ -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;
}
}

View File

@@ -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
);

View File

@@ -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

View File

@@ -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
);

View File

@@ -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
);

View File

@@ -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
);

View File

@@ -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
);

View File

@@ -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
);

View File

@@ -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
);

View File

@@ -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
);
/**

View File

@@ -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;

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View File

@@ -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
);
/**

View File

@@ -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
/**

View File

@@ -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)
/**

View File

@@ -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
);
/**

View File

@@ -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
);

View File

@@ -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.

View File

@@ -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
);

View File

@@ -80,7 +80,7 @@ void *_Workspace_Allocate(
* @return TRUE if the free was successful.
*/
boolean _Workspace_Free(
bool _Workspace_Free(
void *block
);

View File

@@ -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

View File

@@ -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
)

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)

View File

@@ -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
)
{

View File

@@ -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
)

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)

View File

@@ -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;
}

View File

@@ -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 );
}

View File

@@ -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
)
{

View File

@@ -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
)
{

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -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
)

View File

@@ -53,7 +53,7 @@
void _CORE_semaphore_Seize(
CORE_semaphore_Control *the_semaphore,
Objects_Id id,
boolean wait,
bool wait,
Watchdog_Interval timeout
)
{

View File

@@ -38,7 +38,7 @@
CORE_spinlock_Status _CORE_spinlock_Wait(
CORE_spinlock_Control *the_spinlock,
boolean wait,
bool wait,
Watchdog_Interval timeout
)
{

View File

@@ -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 ) ) {

View File

@@ -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;

View File

@@ -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

View File

@@ -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)",

View File

@@ -45,7 +45,7 @@
void _Internal_error_Occurred(
Internal_errors_Source the_source,
boolean is_internal,
bool is_internal,
uint32_t the_error
)
{

View File

@@ -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(

Some files were not shown because too many files have changed in this diff Show More