summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-04 17:46:39 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-04 17:46:39 +0000
commit484a76996eeb65ad726b65946642516c70b3257b (patch)
tree6aed4eba45d4eb704f004622ecbf63e275bb876c /cpukit/rtems/src
parent2008-09-04 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-484a76996eeb65ad726b65946642516c70b3257b.tar.bz2
Convert to "bool".
Diffstat (limited to 'cpukit/rtems/src')
-rw-r--r--cpukit/rtems/src/clocktodvalidate.c8
-rw-r--r--cpukit/rtems/src/intrbody.c2
-rw-r--r--cpukit/rtems/src/msgmp.c2
-rw-r--r--cpukit/rtems/src/msgqcreate.c2
-rw-r--r--cpukit/rtems/src/msgqreceive.c6
-rw-r--r--cpukit/rtems/src/partmp.c2
-rw-r--r--cpukit/rtems/src/regionmp.c2
-rw-r--r--cpukit/rtems/src/semmp.c2
-rw-r--r--cpukit/rtems/src/signalsend.c2
-rw-r--r--cpukit/rtems/src/taskcreate.c16
-rw-r--r--cpukit/rtems/src/taskmode.c10
-rw-r--r--cpukit/rtems/src/taskmp.c2
-rw-r--r--cpukit/rtems/src/tasks.c6
-rw-r--r--cpukit/rtems/src/timerserver.c10
-rw-r--r--cpukit/rtems/src/workspace.c14
15 files changed, 43 insertions, 43 deletions
diff --git a/cpukit/rtems/src/clocktodvalidate.c b/cpukit/rtems/src/clocktodvalidate.c
index c9bdf4fd12..e40f7b9595 100644
--- a/cpukit/rtems/src/clocktodvalidate.c
+++ b/cpukit/rtems/src/clocktodvalidate.c
@@ -46,7 +46,7 @@ const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = {
* NOTE: This routine only works for leap-years through 2099.
*/
-boolean _TOD_Validate(
+bool _TOD_Validate(
rtems_time_of_day *the_tod
)
{
@@ -62,7 +62,7 @@ boolean _TOD_Validate(
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
- return FALSE;
+ return false;
if ( (the_tod->year % 4) == 0 )
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
@@ -70,7 +70,7 @@ boolean _TOD_Validate(
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
if ( the_tod->day > days_in_month )
- return FALSE;
+ return false;
- return TRUE;
+ return true;
}
diff --git a/cpukit/rtems/src/intrbody.c b/cpukit/rtems/src/intrbody.c
index b1d1470a7a..aac994229d 100644
--- a/cpukit/rtems/src/intrbody.c
+++ b/cpukit/rtems/src/intrbody.c
@@ -68,7 +68,7 @@ void rtems_interrupt_flash(
#undef rtems_interrupt_is_in_progress
-boolean rtems_interrupt_is_in_progress( void )
+bool rtems_interrupt_is_in_progress( void )
{
return _ISR_Is_in_progress();
}
diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c
index e6a156c5f7..1c419947cc 100644
--- a/cpukit/rtems/src/msgmp.c
+++ b/cpukit/rtems/src/msgmp.c
@@ -264,7 +264,7 @@ void _Message_queue_MP_Process_packet (
{
Message_queue_MP_Packet *the_packet;
Thread_Control *the_thread;
- boolean ignored;
+ bool ignored;
the_packet = (Message_queue_MP_Packet *) the_packet_prefix;
diff --git a/cpukit/rtems/src/msgqcreate.c b/cpukit/rtems/src/msgqcreate.c
index bf4d2b098a..191a3d6e32 100644
--- a/cpukit/rtems/src/msgqcreate.c
+++ b/cpukit/rtems/src/msgqcreate.c
@@ -65,7 +65,7 @@ rtems_status_code rtems_message_queue_create(
register Message_queue_Control *the_message_queue;
CORE_message_queue_Attributes the_msgq_attributes;
#if defined(RTEMS_MULTIPROCESSING)
- boolean is_global;
+ bool is_global;
#endif
if ( !rtems_is_name_valid( name ) )
diff --git a/cpukit/rtems/src/msgqreceive.c b/cpukit/rtems/src/msgqreceive.c
index e55122835a..48b3af4289 100644
--- a/cpukit/rtems/src/msgqreceive.c
+++ b/cpukit/rtems/src/msgqreceive.c
@@ -63,7 +63,7 @@ rtems_status_code rtems_message_queue_receive(
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
- boolean wait;
+ bool wait;
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
@@ -76,9 +76,9 @@ rtems_status_code rtems_message_queue_receive(
case OBJECTS_LOCAL:
if ( _Options_Is_no_wait( option_set ) )
- wait = FALSE;
+ wait = false;
else
- wait = TRUE;
+ wait = true;
_CORE_message_queue_Seize(
&the_message_queue->message_queue,
diff --git a/cpukit/rtems/src/partmp.c b/cpukit/rtems/src/partmp.c
index f1b6a7bcfd..5c076e4523 100644
--- a/cpukit/rtems/src/partmp.c
+++ b/cpukit/rtems/src/partmp.c
@@ -181,7 +181,7 @@ void _Partition_MP_Process_packet (
{
Partition_MP_Packet *the_packet;
Thread_Control *the_thread;
- boolean ignored;
+ bool ignored;
the_packet = (Partition_MP_Packet *) the_packet_prefix;
diff --git a/cpukit/rtems/src/regionmp.c b/cpukit/rtems/src/regionmp.c
index 3f33d56934..48148cc726 100644
--- a/cpukit/rtems/src/regionmp.c
+++ b/cpukit/rtems/src/regionmp.c
@@ -187,7 +187,7 @@ void _Region_MP_Process_packet (
{
Region_MP_Packet *the_packet;
Thread_Control *the_thread;
- boolean ignored;
+ bool ignored;
the_packet = (Region_MP_Packet *) the_packet_prefix;
diff --git a/cpukit/rtems/src/semmp.c b/cpukit/rtems/src/semmp.c
index 570288d4a2..c8dc27b11b 100644
--- a/cpukit/rtems/src/semmp.c
+++ b/cpukit/rtems/src/semmp.c
@@ -184,7 +184,7 @@ void _Semaphore_MP_Process_packet (
{
Semaphore_MP_Packet *the_packet;
Thread_Control *the_thread;
- boolean ignored;
+ bool ignored;
the_packet = (Semaphore_MP_Packet *) the_packet_prefix;
diff --git a/cpukit/rtems/src/signalsend.c b/cpukit/rtems/src/signalsend.c
index f302eeb8f2..1063830ee5 100644
--- a/cpukit/rtems/src/signalsend.c
+++ b/cpukit/rtems/src/signalsend.c
@@ -64,7 +64,7 @@ rtems_status_code rtems_signal_send(
if ( asr->is_enabled ) {
_ASR_Post_signals( signal_set, &asr->signals_posted );
- the_thread->do_post_task_switch_extension = TRUE;
+ the_thread->do_post_task_switch_extension = true;
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
_ISR_Signals_to_thread_executing = TRUE;
diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c
index 38d924ad39..71684d85b2 100644
--- a/cpukit/rtems/src/taskcreate.c
+++ b/cpukit/rtems/src/taskcreate.c
@@ -65,12 +65,12 @@ rtems_status_code rtems_task_create(
)
{
register Thread_Control *the_thread;
- boolean is_fp;
+ bool is_fp;
#if defined(RTEMS_MULTIPROCESSING)
Objects_MP_Control *the_global_object = NULL;
- boolean is_global;
+ bool is_global;
#endif
- boolean status;
+ bool status;
rtems_attribute the_attribute_set;
Priority_Control core_priority;
RTEMS_API_Control *api;
@@ -102,9 +102,9 @@ rtems_status_code rtems_task_create(
_Attributes_Clear( the_attribute_set, ATTRIBUTES_NOT_SUPPORTED );
if ( _Attributes_Is_floating_point( the_attribute_set ) )
- is_fp = TRUE;
+ is_fp = true;
else
- is_fp = FALSE;
+ is_fp = false;
/*
* Validate the RTEMS API priority and convert it to the core priority range.
@@ -120,13 +120,13 @@ rtems_status_code rtems_task_create(
#if defined(RTEMS_MULTIPROCESSING)
if ( _Attributes_Is_global( the_attribute_set ) ) {
- is_global = TRUE;
+ is_global = true;
if ( !_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
} else
- is_global = FALSE;
+ is_global = false;
#endif
/*
@@ -200,7 +200,7 @@ rtems_status_code rtems_task_create(
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
- asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? FALSE : TRUE;
+ asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true;
*id = the_thread->Object.id;
diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c
index 65fc07a81f..472e21e7d9 100644
--- a/cpukit/rtems/src/taskmode.c
+++ b/cpukit/rtems/src/taskmode.c
@@ -58,8 +58,8 @@ rtems_status_code rtems_task_mode(
Thread_Control *executing;
RTEMS_API_Control *api;
ASR_Information *asr;
- boolean is_asr_enabled = FALSE;
- boolean needs_asr_dispatching = FALSE;
+ bool is_asr_enabled = false;
+ bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
@@ -111,13 +111,13 @@ rtems_status_code rtems_task_mode(
needs_asr_dispatching = FALSE;
if ( mask & RTEMS_ASR_MASK ) {
- is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? FALSE : TRUE;
+ is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
if ( is_asr_enabled != asr->is_enabled ) {
asr->is_enabled = is_asr_enabled;
_ASR_Swap_signals( asr );
if ( _ASR_Are_signals_pending( asr ) ) {
- needs_asr_dispatching = TRUE;
- executing->do_post_task_switch_extension = TRUE;
+ needs_asr_dispatching = true;
+ executing->do_post_task_switch_extension = true;
}
}
}
diff --git a/cpukit/rtems/src/taskmp.c b/cpukit/rtems/src/taskmp.c
index dec5986017..a9ca8031c9 100644
--- a/cpukit/rtems/src/taskmp.c
+++ b/cpukit/rtems/src/taskmp.c
@@ -190,7 +190,7 @@ void _RTEMS_tasks_MP_Process_packet (
{
RTEMS_tasks_MP_Packet *the_packet;
Thread_Control *the_thread;
- boolean ignored;
+ bool ignored;
the_packet = (RTEMS_tasks_MP_Packet *) the_packet_prefix;
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c
index b49975bb6f..2ccacd677e 100644
--- a/cpukit/rtems/src/tasks.c
+++ b/cpukit/rtems/src/tasks.c
@@ -43,7 +43,7 @@
* area.
*/
-boolean _RTEMS_tasks_Create_extension(
+bool _RTEMS_tasks_Create_extension(
Thread_Control *executing,
Thread_Control *created
)
@@ -63,7 +63,7 @@ boolean _RTEMS_tasks_Create_extension(
api = _Workspace_Allocate( to_allocate );
if ( !api )
- return FALSE;
+ return false;
created->API_Extensions[ THREAD_API_RTEMS ] = api;
@@ -76,7 +76,7 @@ boolean _RTEMS_tasks_Create_extension(
api->Notepads[i] = 0;
}
- return TRUE;
+ return true;
}
/*PAGE
diff --git a/cpukit/rtems/src/timerserver.c b/cpukit/rtems/src/timerserver.c
index 00a91e8937..a96b45272e 100644
--- a/cpukit/rtems/src/timerserver.c
+++ b/cpukit/rtems/src/timerserver.c
@@ -147,8 +147,8 @@ rtems_status_code rtems_timer_initiate_server(
rtems_id id;
rtems_status_code status;
rtems_task_priority _priority;
- static boolean initialized = FALSE;
- boolean tmpInitialized;
+ static bool initialized = false;
+ bool tmpInitialized;
/*
* Make sure the requested priority is valid. The if is
@@ -169,7 +169,7 @@ rtems_status_code rtems_timer_initiate_server(
_Thread_Disable_dispatch();
tmpInitialized = initialized;
- initialized = TRUE;
+ initialized = true;
_Thread_Enable_dispatch();
if ( tmpInitialized )
@@ -201,7 +201,7 @@ rtems_status_code rtems_timer_initiate_server(
&id /* get the id back */
);
if (status) {
- initialized = FALSE;
+ initialized = false;
return status;
}
@@ -254,7 +254,7 @@ rtems_status_code rtems_timer_initiate_server(
* be good. If this service fails, something is weirdly wrong on the
* target such as a stray write in an ISR or incorrect memory layout.
*/
- initialized = FALSE;
+ initialized = false;
}
return status;
diff --git a/cpukit/rtems/src/workspace.c b/cpukit/rtems/src/workspace.c
index d5335ebc8d..f573440475 100644
--- a/cpukit/rtems/src/workspace.c
+++ b/cpukit/rtems/src/workspace.c
@@ -22,7 +22,7 @@
#include <string.h> /* for memset */
-boolean rtems_workspace_get_information(
+bool rtems_workspace_get_information(
Heap_Information_block *the_info
)
{
@@ -30,30 +30,30 @@ boolean rtems_workspace_get_information(
status = _Heap_Get_information( &_Workspace_Area, the_info );
if ( status == HEAP_GET_INFORMATION_SUCCESSFUL )
- return TRUE;
+ return true;
else
- return FALSE;
+ return false;
}
/*
* _Workspace_Allocate
*/
-boolean rtems_workspace_allocate(
+bool rtems_workspace_allocate(
size_t bytes,
void **pointer
)
{
*pointer = _Heap_Allocate( &_Workspace_Area, bytes );
if (!pointer)
- return FALSE;
+ return false;
else
- return TRUE;
+ return true;
}
/*
* _Workspace_Allocate
*/
-boolean rtems_workspace_free(
+bool rtems_workspace_free(
void *pointer
)
{