summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-01-06 05:05:03 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-01-06 05:05:03 +0000
commiteaef4657ac140fd13b67a3ab88703f5d3b5cf74e (patch)
treeb2eb2a7d6fa1346bfec8563229824a0c13f5b61f /cpukit
parent2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-eaef4657ac140fd13b67a3ab88703f5d3b5cf74e.tar.bz2
Eliminate TRUE/FALSE.
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/src/barrier.c4
-rw-r--r--cpukit/rtems/src/barrierwait.c2
-rw-r--r--cpukit/rtems/src/clocktodvalidate.c4
-rw-r--r--cpukit/rtems/src/dpmem.c4
-rw-r--r--cpukit/rtems/src/msg.c4
-rw-r--r--cpukit/rtems/src/msgmp.c2
-rw-r--r--cpukit/rtems/src/msgqcreate.c2
-rw-r--r--cpukit/rtems/src/msgqsend.c2
-rw-r--r--cpukit/rtems/src/msgqurgent.c2
-rw-r--r--cpukit/rtems/src/part.c4
-rw-r--r--cpukit/rtems/src/partcreate.c2
-rw-r--r--cpukit/rtems/src/partmp.c2
-rw-r--r--cpukit/rtems/src/ratemon.c4
-rw-r--r--cpukit/rtems/src/region.c4
-rw-r--r--cpukit/rtems/src/regionmp.c2
-rw-r--r--cpukit/rtems/src/rtemstimer.c4
-rw-r--r--cpukit/rtems/src/sem.c4
-rw-r--r--cpukit/rtems/src/semcreate.c8
-rw-r--r--cpukit/rtems/src/semmp.c2
-rw-r--r--cpukit/rtems/src/semobtain.c4
-rw-r--r--cpukit/rtems/src/signalsend.c2
-rw-r--r--cpukit/rtems/src/taskcreate.c2
-rw-r--r--cpukit/rtems/src/taskinitusers.c4
-rw-r--r--cpukit/rtems/src/taskmode.c6
-rw-r--r--cpukit/rtems/src/taskmp.c2
-rw-r--r--cpukit/rtems/src/taskresume.c2
-rw-r--r--cpukit/rtems/src/tasks.c4
-rw-r--r--cpukit/rtems/src/tasksetpriority.c2
28 files changed, 45 insertions, 45 deletions
diff --git a/cpukit/rtems/src/barrier.c b/cpukit/rtems/src/barrier.c
index 5665e4e9d9..b35b5e3415 100644
--- a/cpukit/rtems/src/barrier.c
+++ b/cpukit/rtems/src/barrier.c
@@ -54,11 +54,11 @@ void _Barrier_Manager_initialization(void)
Configuration_RTEMS_API.maximum_barriers,
/* maximum objects of this class */
sizeof( Barrier_Control ), /* size of this object's control block */
- FALSE, /* TRUE if the name is a string */
+ false, /* true if the name is a string */
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */
#if defined(RTEMS_MULTIPROCESSING)
,
- FALSE, /* TRUE if this is a global object class */
+ false, /* true if this is a global object class */
NULL /* Proxy extraction support callout */
#endif
);
diff --git a/cpukit/rtems/src/barrierwait.c b/cpukit/rtems/src/barrierwait.c
index 92d4c60635..04b2389051 100644
--- a/cpukit/rtems/src/barrierwait.c
+++ b/cpukit/rtems/src/barrierwait.c
@@ -51,7 +51,7 @@ rtems_status_code rtems_barrier_wait(
_CORE_barrier_Wait(
&the_barrier->Barrier,
id,
- TRUE,
+ true,
timeout,
NULL
);
diff --git a/cpukit/rtems/src/clocktodvalidate.c b/cpukit/rtems/src/clocktodvalidate.c
index 54da8284b3..9ea5f01f9d 100644
--- a/cpukit/rtems/src/clocktodvalidate.c
+++ b/cpukit/rtems/src/clocktodvalidate.c
@@ -41,8 +41,8 @@ const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = {
* the_tod - pointer to a time and date structure
*
* Output parameters:
- * TRUE - if the date, time, and tick are valid
- * FALSE - if the the_tod is invalid
+ * true - if the date, time, and tick are valid
+ * false - if the the_tod is invalid
*
* NOTE: This routine only works for leap-years through 2099.
*/
diff --git a/cpukit/rtems/src/dpmem.c b/cpukit/rtems/src/dpmem.c
index aae4f2b42a..9cc58914b8 100644
--- a/cpukit/rtems/src/dpmem.c
+++ b/cpukit/rtems/src/dpmem.c
@@ -46,11 +46,11 @@ void _Dual_ported_memory_Manager_initialization(void)
/* maximum objects of this class */
sizeof( Dual_ported_memory_Control ),
/* size of this object's control block */
- FALSE, /* TRUE if names of this object are strings */
+ false, /* true if names of this object are strings */
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */
#if defined(RTEMS_MULTIPROCESSING)
,
- FALSE, /* TRUE if this is a global object class */
+ false, /* true if this is a global object class */
NULL /* Proxy extraction support callout */
#endif
);
diff --git a/cpukit/rtems/src/msg.c b/cpukit/rtems/src/msg.c
index de8b42bf08..2f00db3e24 100644
--- a/cpukit/rtems/src/msg.c
+++ b/cpukit/rtems/src/msg.c
@@ -57,11 +57,11 @@ void _Message_queue_Manager_initialization(void)
/* maximum objects of this class */
sizeof( Message_queue_Control ),
/* size of this object's control block */
- FALSE, /* TRUE if names of this object are strings */
+ false, /* true if names of this object are strings */
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */
#if defined(RTEMS_MULTIPROCESSING)
,
- TRUE, /* TRUE if this is a global object class */
+ true, /* true if this is a global object class */
_Message_queue_MP_Send_extract_proxy
/* Proxy extraction support callout */
#endif
diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c
index f0e39b34cc..9f033a8bbb 100644
--- a/cpukit/rtems/src/msgmp.c
+++ b/cpukit/rtems/src/msgmp.c
@@ -276,7 +276,7 @@ void _Message_queue_MP_Process_packet (
&_Message_queue_Information,
the_packet->name,
the_packet->Prefix.id,
- TRUE
+ true
);
_MPCI_Return_packet( the_packet_prefix );
diff --git a/cpukit/rtems/src/msgqcreate.c b/cpukit/rtems/src/msgqcreate.c
index 191a3d6e32..d333beaaac 100644
--- a/cpukit/rtems/src/msgqcreate.c
+++ b/cpukit/rtems/src/msgqcreate.c
@@ -111,7 +111,7 @@ rtems_status_code rtems_message_queue_create(
#if defined(RTEMS_MULTIPROCESSING)
if ( is_global &&
!( _Objects_MP_Allocate_and_open( &_Message_queue_Information,
- name, the_message_queue->Object.id, FALSE ) ) ) {
+ name, the_message_queue->Object.id, false ) ) ) {
_Message_queue_Free( the_message_queue );
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
diff --git a/cpukit/rtems/src/msgqsend.c b/cpukit/rtems/src/msgqsend.c
index b86d99341a..6311051991 100644
--- a/cpukit/rtems/src/msgqsend.c
+++ b/cpukit/rtems/src/msgqsend.c
@@ -79,7 +79,7 @@ rtems_status_code rtems_message_queue_send(
size,
id,
MESSAGE_QUEUE_MP_HANDLER,
- FALSE, /* sender does not block */
+ false, /* sender does not block */
0 /* no timeout */
);
diff --git a/cpukit/rtems/src/msgqurgent.c b/cpukit/rtems/src/msgqurgent.c
index 60684ebf5c..8022ecfdc4 100644
--- a/cpukit/rtems/src/msgqurgent.c
+++ b/cpukit/rtems/src/msgqurgent.c
@@ -79,7 +79,7 @@ rtems_status_code rtems_message_queue_urgent(
size,
id,
MESSAGE_QUEUE_MP_HANDLER,
- FALSE, /* sender does not block */
+ false, /* sender does not block */
0 /* no timeout */
);
_Thread_Enable_dispatch();
diff --git a/cpukit/rtems/src/part.c b/cpukit/rtems/src/part.c
index ab23479b8b..a5c12e5fb9 100644
--- a/cpukit/rtems/src/part.c
+++ b/cpukit/rtems/src/part.c
@@ -46,11 +46,11 @@ void _Partition_Manager_initialization(void)
Configuration_RTEMS_API.maximum_partitions,
/* maximum objects of this class */
sizeof( Partition_Control ), /* size of this object's control block */
- 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)
,
- TRUE, /* TRUE if this is a global object class */
+ true, /* true if this is a global object class */
_Partition_MP_Send_extract_proxy /* Proxy extraction support callout */
#endif
);
diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c
index d77586fc76..c51c67a6fe 100644
--- a/cpukit/rtems/src/partcreate.c
+++ b/cpukit/rtems/src/partcreate.c
@@ -91,7 +91,7 @@ rtems_status_code rtems_partition_create(
#if defined(RTEMS_MULTIPROCESSING)
if ( _Attributes_Is_global( attribute_set ) &&
!( _Objects_MP_Allocate_and_open( &_Partition_Information, name,
- the_partition->Object.id, FALSE ) ) ) {
+ the_partition->Object.id, false ) ) ) {
_Partition_Free( the_partition );
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
diff --git a/cpukit/rtems/src/partmp.c b/cpukit/rtems/src/partmp.c
index 5c076e4523..da6e2ca8d6 100644
--- a/cpukit/rtems/src/partmp.c
+++ b/cpukit/rtems/src/partmp.c
@@ -193,7 +193,7 @@ void _Partition_MP_Process_packet (
&_Partition_Information,
the_packet->name,
the_packet->Prefix.id,
- TRUE
+ true
);
_MPCI_Return_packet( the_packet_prefix );
diff --git a/cpukit/rtems/src/ratemon.c b/cpukit/rtems/src/ratemon.c
index 4c71f5d99c..9f17a777b8 100644
--- a/cpukit/rtems/src/ratemon.c
+++ b/cpukit/rtems/src/ratemon.c
@@ -49,11 +49,11 @@ void _Rate_monotonic_Manager_initialization(void)
Configuration_RTEMS_API.maximum_periods,
/* maximum objects of this class */
sizeof( Rate_monotonic_Control ),/* size of this object's control block */
- FALSE, /* TRUE if the name is a string */
+ false, /* true if the name is a string */
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */
#if defined(RTEMS_MULTIPROCESSING)
,
- FALSE, /* TRUE if this is a global object class */
+ false, /* true if this is a global object class */
NULL /* Proxy extraction support callout */
#endif
);
diff --git a/cpukit/rtems/src/region.c b/cpukit/rtems/src/region.c
index 4811412cfb..1b06ee60b5 100644
--- a/cpukit/rtems/src/region.c
+++ b/cpukit/rtems/src/region.c
@@ -47,11 +47,11 @@ void _Region_Manager_initialization(void)
Configuration_RTEMS_API.maximum_regions,
/* maximum objects of this class */
sizeof( Region_Control ), /* size of this object's control block */
- FALSE, /* TRUE if the name is a string */
+ false, /* true if the name is a string */
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */
#if defined(RTEMS_MULTIPROCESSING)
,
- FALSE, /* TRUE if this is a global object class */
+ false, /* true if this is a global object class */
NULL /* Proxy extraction support callout */
#endif
);
diff --git a/cpukit/rtems/src/regionmp.c b/cpukit/rtems/src/regionmp.c
index 94d0104ae9..a978c2d288 100644
--- a/cpukit/rtems/src/regionmp.c
+++ b/cpukit/rtems/src/regionmp.c
@@ -199,7 +199,7 @@ void _Region_MP_Process_packet (
&_Region_Information,
the_packet->name,
the_packet->Prefix.id,
- TRUE
+ true
);
_MPCI_Return_packet( the_packet_prefix );
diff --git a/cpukit/rtems/src/rtemstimer.c b/cpukit/rtems/src/rtemstimer.c
index 179e99c7aa..5aeb2fdab2 100644
--- a/cpukit/rtems/src/rtemstimer.c
+++ b/cpukit/rtems/src/rtemstimer.c
@@ -46,11 +46,11 @@ void _Timer_Manager_initialization(void)
Configuration_RTEMS_API.maximum_timers ,
/* maximum objects of this class */
sizeof( Timer_Control ), /* size of this object's control block */
- FALSE, /* TRUE if the name is a string */
+ false, /* true if the name is a string */
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */
#if defined(RTEMS_MULTIPROCESSING)
,
- FALSE, /* TRUE if this is a global object class */
+ false, /* true if this is a global object class */
NULL /* Proxy extraction support callout */
#endif
);
diff --git a/cpukit/rtems/src/sem.c b/cpukit/rtems/src/sem.c
index 4f8d7b0893..ecf070e44d 100644
--- a/cpukit/rtems/src/sem.c
+++ b/cpukit/rtems/src/sem.c
@@ -70,11 +70,11 @@ void _Semaphore_Manager_initialization(void)
Configuration_RTEMS_API.maximum_semaphores,
/* maximum objects of this class */
sizeof( Semaphore_Control ), /* size of this object's control block */
- 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)
,
- TRUE, /* TRUE if this is a global object class */
+ true, /* true if this is a global object class */
_Semaphore_MP_Send_extract_proxy /* Proxy extraction support callout */
#endif
);
diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c
index ec34436b87..efacd6df5e 100644
--- a/cpukit/rtems/src/semcreate.c
+++ b/cpukit/rtems/src/semcreate.c
@@ -126,7 +126,7 @@ rtems_status_code rtems_semaphore_create(
#if defined(RTEMS_MULTIPROCESSING)
if ( _Attributes_Is_global( attribute_set ) &&
! ( _Objects_MP_Allocate_and_open( &_Semaphore_Information, name,
- the_semaphore->Object.id, FALSE ) ) ) {
+ the_semaphore->Object.id, false ) ) ) {
_Semaphore_Free( the_semaphore );
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
@@ -158,16 +158,16 @@ rtems_status_code rtems_semaphore_create(
switch ( the_mutex_attributes.discipline ) {
case CORE_MUTEX_DISCIPLINES_FIFO:
case CORE_MUTEX_DISCIPLINES_PRIORITY:
- the_mutex_attributes.only_owner_release = FALSE;
+ the_mutex_attributes.only_owner_release = false;
break;
case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING:
case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT:
- the_mutex_attributes.only_owner_release = TRUE;
+ the_mutex_attributes.only_owner_release = true;
break;
}
} else {
the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS;
- the_mutex_attributes.only_owner_release = FALSE;
+ the_mutex_attributes.only_owner_release = false;
}
the_mutex_attributes.priority_ceiling = priority_ceiling;
diff --git a/cpukit/rtems/src/semmp.c b/cpukit/rtems/src/semmp.c
index f4d96452c5..06bed8a52c 100644
--- a/cpukit/rtems/src/semmp.c
+++ b/cpukit/rtems/src/semmp.c
@@ -196,7 +196,7 @@ void _Semaphore_MP_Process_packet (
&_Semaphore_Information,
the_packet->name,
the_packet->Prefix.id,
- TRUE
+ true
);
_MPCI_Return_packet( the_packet_prefix );
diff --git a/cpukit/rtems/src/semobtain.c b/cpukit/rtems/src/semobtain.c
index 972b12f0ee..e3f3af1b10 100644
--- a/cpukit/rtems/src/semobtain.c
+++ b/cpukit/rtems/src/semobtain.c
@@ -83,7 +83,7 @@ rtems_status_code rtems_semaphore_obtain(
_CORE_mutex_Seize(
&the_semaphore->Core_control.mutex,
id,
- ((_Options_Is_no_wait( option_set )) ? FALSE : TRUE),
+ ((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
level
);
@@ -95,7 +95,7 @@ rtems_status_code rtems_semaphore_obtain(
_CORE_semaphore_Seize_isr_disable(
&the_semaphore->Core_control.semaphore,
id,
- ((_Options_Is_no_wait( option_set )) ? FALSE : TRUE),
+ ((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
&level
);
diff --git a/cpukit/rtems/src/signalsend.c b/cpukit/rtems/src/signalsend.c
index 1063830ee5..d5dc503cdd 100644
--- a/cpukit/rtems/src/signalsend.c
+++ b/cpukit/rtems/src/signalsend.c
@@ -67,7 +67,7 @@ rtems_status_code rtems_signal_send(
the_thread->do_post_task_switch_extension = true;
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
- _ISR_Signals_to_thread_executing = TRUE;
+ _ISR_Signals_to_thread_executing = true;
} else {
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c
index 71684d85b2..b82b7e8468 100644
--- a/cpukit/rtems/src/taskcreate.c
+++ b/cpukit/rtems/src/taskcreate.c
@@ -178,7 +178,7 @@ rtems_status_code rtems_task_create(
stack_size,
is_fp,
core_priority,
- _Modes_Is_preempt(initial_modes) ? TRUE : FALSE,
+ _Modes_Is_preempt(initial_modes) ? true : false,
_Modes_Is_timeslice(initial_modes) ?
THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE :
THREAD_CPU_BUDGET_ALGORITHM_NONE,
diff --git a/cpukit/rtems/src/taskinitusers.c b/cpukit/rtems/src/taskinitusers.c
index 0e5a19a35e..da6ec5c879 100644
--- a/cpukit/rtems/src/taskinitusers.c
+++ b/cpukit/rtems/src/taskinitusers.c
@@ -79,7 +79,7 @@ void _RTEMS_tasks_Initialize_user_tasks_body( void )
);
if ( !rtems_is_status_successful( return_value ) )
- _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value );
+ _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
return_value = rtems_task_start(
id,
@@ -88,6 +88,6 @@ void _RTEMS_tasks_Initialize_user_tasks_body( void )
);
if ( !rtems_is_status_successful( return_value ) )
- _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value );
+ _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
}
}
diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c
index 472e21e7d9..8a0837039d 100644
--- a/cpukit/rtems/src/taskmode.c
+++ b/cpukit/rtems/src/taskmode.c
@@ -86,7 +86,7 @@ rtems_status_code rtems_task_mode(
*/
if ( mask & RTEMS_PREEMPT_MASK )
- executing->is_preemptible = _Modes_Is_preempt(mode_set) ? TRUE : FALSE;
+ executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
if ( mask & RTEMS_TIMESLICE_MASK ) {
if ( _Modes_Is_timeslice(mode_set) ) {
@@ -107,8 +107,8 @@ rtems_status_code rtems_task_mode(
* This is specific to the RTEMS API
*/
- is_asr_enabled = FALSE;
- needs_asr_dispatching = FALSE;
+ is_asr_enabled = false;
+ needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
diff --git a/cpukit/rtems/src/taskmp.c b/cpukit/rtems/src/taskmp.c
index a9ca8031c9..5f13860492 100644
--- a/cpukit/rtems/src/taskmp.c
+++ b/cpukit/rtems/src/taskmp.c
@@ -202,7 +202,7 @@ void _RTEMS_tasks_MP_Process_packet (
&_RTEMS_tasks_Information,
the_packet->name,
the_packet->Prefix.id,
- TRUE
+ true
);
_MPCI_Return_packet( the_packet_prefix );
diff --git a/cpukit/rtems/src/taskresume.c b/cpukit/rtems/src/taskresume.c
index 7d220c071d..224d259759 100644
--- a/cpukit/rtems/src/taskresume.c
+++ b/cpukit/rtems/src/taskresume.c
@@ -59,7 +59,7 @@ rtems_status_code rtems_task_resume(
case OBJECTS_LOCAL:
if ( _States_Is_suspended( the_thread->current_state ) ) {
- _Thread_Resume( the_thread, TRUE );
+ _Thread_Resume( the_thread, true );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c
index 4091720eb0..78b5c0fad8 100644
--- a/cpukit/rtems/src/tasks.c
+++ b/cpukit/rtems/src/tasks.c
@@ -255,11 +255,11 @@ void _RTEMS_tasks_Manager_initialization(void)
Configuration_RTEMS_API.maximum_tasks,
/* maximum objects of this class */
sizeof( Thread_Control ), /* size of this object's control block */
- 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)
,
- TRUE, /* TRUE if this is a global object class */
+ true, /* true if this is a global object class */
NULL /* Proxy extraction support callout */
#endif
);
diff --git a/cpukit/rtems/src/tasksetpriority.c b/cpukit/rtems/src/tasksetpriority.c
index 9d9567e65e..3b1493bdf2 100644
--- a/cpukit/rtems/src/tasksetpriority.c
+++ b/cpukit/rtems/src/tasksetpriority.c
@@ -77,7 +77,7 @@ rtems_status_code rtems_task_set_priority(
the_thread->real_priority = new_priority;
if ( the_thread->resource_count == 0 ||
the_thread->current_priority > new_priority )
- _Thread_Change_priority( the_thread, new_priority, FALSE );
+ _Thread_Change_priority( the_thread, new_priority, false );
}
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;