summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
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
parent2008-09-04 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-484a76996eeb65ad726b65946642516c70b3257b.tar.bz2
Convert to "bool".
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/include/rtems/rtems/asr.h6
-rw-r--r--cpukit/rtems/include/rtems/rtems/clock.h2
-rw-r--r--cpukit/rtems/include/rtems/rtems/config.h8
-rw-r--r--cpukit/rtems/include/rtems/rtems/object.h10
-rw-r--r--cpukit/rtems/include/rtems/rtems/sem.h2
-rw-r--r--cpukit/rtems/include/rtems/rtems/support.h6
-rw-r--r--cpukit/rtems/inline/rtems/rtems/asr.inl6
-rw-r--r--cpukit/rtems/inline/rtems/rtems/attr.inl34
-rw-r--r--cpukit/rtems/inline/rtems/rtems/barrier.inl2
-rw-r--r--cpukit/rtems/inline/rtems/rtems/dpmem.inl4
-rw-r--r--cpukit/rtems/inline/rtems/rtems/eventset.inl2
-rw-r--r--cpukit/rtems/inline/rtems/rtems/message.inl2
-rw-r--r--cpukit/rtems/inline/rtems/rtems/modes.inl10
-rw-r--r--cpukit/rtems/inline/rtems/rtems/options.inl8
-rw-r--r--cpukit/rtems/inline/rtems/rtems/part.inl8
-rw-r--r--cpukit/rtems/inline/rtems/rtems/ratemon.inl8
-rw-r--r--cpukit/rtems/inline/rtems/rtems/region.inl4
-rw-r--r--cpukit/rtems/inline/rtems/rtems/sem.inl2
-rw-r--r--cpukit/rtems/inline/rtems/rtems/status.inl4
-rw-r--r--cpukit/rtems/inline/rtems/rtems/support.inl2
-rw-r--r--cpukit/rtems/inline/rtems/rtems/tasks.inl2
-rw-r--r--cpukit/rtems/inline/rtems/rtems/timer.inl8
-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
37 files changed, 113 insertions, 113 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/asr.h b/cpukit/rtems/include/rtems/rtems/asr.h
index 1d5ba6194f..ea5fab8538 100644
--- a/cpukit/rtems/include/rtems/rtems/asr.h
+++ b/cpukit/rtems/include/rtems/rtems/asr.h
@@ -19,12 +19,12 @@
#ifndef _RTEMS_RTEMS_ASR_H
#define _RTEMS_RTEMS_ASR_H
+#include <rtems/rtems/modes.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-#include <rtems/rtems/modes.h>
-
/**
* @defgroup ClassicASR Classic API ASR Support
*
@@ -57,7 +57,7 @@ typedef rtems_asr ( *rtems_asr_entry )(
*/
typedef struct {
/** This field indicates if are ASRs enabled currently. */
- boolean is_enabled;
+ bool is_enabled;
/** This field indicates if address of the signal handler function. */
rtems_asr_entry handler;
/** This field indicates if the task mode the signal will run with. */
diff --git a/cpukit/rtems/include/rtems/rtems/clock.h b/cpukit/rtems/include/rtems/rtems/clock.h
index 721e30ae35..7e6336d606 100644
--- a/cpukit/rtems/include/rtems/rtems/clock.h
+++ b/cpukit/rtems/include/rtems/rtems/clock.h
@@ -245,7 +245,7 @@ rtems_status_code rtems_clock_get_uptime(
*
* @return This method returns TRUE if the TOD is valid and FALSE otherwise.
*/
-boolean _TOD_Validate(
+bool _TOD_Validate(
rtems_time_of_day *the_tod
);
diff --git a/cpukit/rtems/include/rtems/rtems/config.h b/cpukit/rtems/include/rtems/rtems/config.h
index 4298e6a215..05b232482f 100644
--- a/cpukit/rtems/include/rtems/rtems/config.h
+++ b/cpukit/rtems/include/rtems/rtems/config.h
@@ -18,13 +18,13 @@
#ifndef _RTEMS_RTEMS_CONFIG_H
#define _RTEMS_RTEMS_CONFIG_H
+#include <rtems/rtems/types.h>
+#include <rtems/rtems/tasks.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-#include <rtems/rtems/types.h>
-#include <rtems/rtems/tasks.h>
-
/**
* @defgroup ClassicConfig Classic API Configuration
*
@@ -51,7 +51,7 @@ typedef struct {
* This field indicates whether Classic API notepads are
* enabled or disabled.
*/
- boolean notepads_enabled;
+ bool notepads_enabled;
/**
* This field contains the maximum number of Classic API
diff --git a/cpukit/rtems/include/rtems/rtems/object.h b/cpukit/rtems/include/rtems/rtems/object.h
index 4437141049..58ca9f8b6c 100644
--- a/cpukit/rtems/include/rtems/rtems/object.h
+++ b/cpukit/rtems/include/rtems/rtems/object.h
@@ -15,15 +15,15 @@
#ifndef _RTEMS_RTEMS_OBJECT_H
#define _RTEMS_RTEMS_OBJECT_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <stdint.h>
#include <rtems/score/object.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @defgroup ClassicClassInfo Classic API Class Information
*
@@ -43,7 +43,7 @@ typedef struct {
/** This field is the number of object instances configured for this class. */
uint32_t maximum;
/** This field indicates if the class is configured for auto-extend. */
- boolean auto_extend;
+ bool auto_extend;
/** This field is the number of currently unallocated objects. */
uint32_t unallocated;
} rtems_object_api_class_information;
diff --git a/cpukit/rtems/include/rtems/rtems/sem.h b/cpukit/rtems/include/rtems/rtems/sem.h
index 8fff8a60ab..d6385b9e64 100644
--- a/cpukit/rtems/include/rtems/rtems/sem.h
+++ b/cpukit/rtems/include/rtems/rtems/sem.h
@@ -202,7 +202,7 @@ rtems_status_code rtems_semaphore_flush(
* option_set, then the routine returns. Otherwise, the calling task
* is blocked until a unit becomes available.
*/
-boolean _Semaphore_Seize(
+bool _Semaphore_Seize(
Semaphore_Control *the_semaphore,
uint32_t option_set
);
diff --git a/cpukit/rtems/include/rtems/rtems/support.h b/cpukit/rtems/include/rtems/rtems/support.h
index b204d498a7..25f6ebf08d 100644
--- a/cpukit/rtems/include/rtems/rtems/support.h
+++ b/cpukit/rtems/include/rtems/rtems/support.h
@@ -63,7 +63,7 @@ extern "C" {
*
* @return TRUE if successful
*/
-boolean rtems_workspace_get_information(
+bool rtems_workspace_get_information(
Heap_Information_block *the_info
);
@@ -78,7 +78,7 @@ boolean rtems_workspace_get_information(
*
* @return TRUE if successful
*/
-boolean rtems_workspace_allocate(
+bool rtems_workspace_allocate(
size_t bytes,
void **pointer
);
@@ -93,7 +93,7 @@ boolean rtems_workspace_allocate(
*
* @return TRUE if successful
*/
-boolean rtems_workspace_free(
+bool rtems_workspace_free(
void *pointer
);
diff --git a/cpukit/rtems/inline/rtems/rtems/asr.inl b/cpukit/rtems/inline/rtems/rtems/asr.inl
index 918a7d87c1..1cb3246f1f 100644
--- a/cpukit/rtems/inline/rtems/rtems/asr.inl
+++ b/cpukit/rtems/inline/rtems/rtems/asr.inl
@@ -38,7 +38,7 @@ RTEMS_INLINE_ROUTINE void _ASR_Initialize (
ASR_Information *information
)
{
- information->is_enabled = TRUE;
+ information->is_enabled = true;
information->handler = NULL;
information->mode_set = RTEMS_DEFAULT_MODES;
information->signals_posted = 0;
@@ -73,7 +73,7 @@ RTEMS_INLINE_ROUTINE void _ASR_Swap_signals (
* This function returns TRUE if the given asr_handler is NULL and
* FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _ASR_Is_null_handler (
+RTEMS_INLINE_ROUTINE bool _ASR_Is_null_handler (
rtems_asr_entry asr_handler
)
{
@@ -86,7 +86,7 @@ RTEMS_INLINE_ROUTINE boolean _ASR_Is_null_handler (
* This function returns TRUE if there are signals pending in the
* given RTEMS_ASR information record and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _ASR_Are_signals_pending (
+RTEMS_INLINE_ROUTINE bool _ASR_Are_signals_pending (
ASR_Information *information
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/attr.inl b/cpukit/rtems/inline/rtems/rtems/attr.inl
index d66a1920ed..a426e40777 100644
--- a/cpukit/rtems/inline/rtems/rtems/attr.inl
+++ b/cpukit/rtems/inline/rtems/rtems/attr.inl
@@ -62,11 +62,11 @@ RTEMS_INLINE_ROUTINE rtems_attribute _Attributes_Clear (
* This function returns TRUE if the floating point attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Attributes_Is_floating_point(
+RTEMS_INLINE_ROUTINE bool _Attributes_Is_floating_point(
rtems_attribute attribute_set
)
{
- return ( attribute_set & RTEMS_FLOATING_POINT );
+ return ( attribute_set & RTEMS_FLOATING_POINT ) ? true : false;
}
#if defined(RTEMS_MULTIPROCESSING)
@@ -76,11 +76,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_floating_point(
* This function returns TRUE if the global object attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Attributes_Is_global(
+RTEMS_INLINE_ROUTINE bool _Attributes_Is_global(
rtems_attribute attribute_set
)
{
- return ( attribute_set & RTEMS_GLOBAL );
+ return ( attribute_set & RTEMS_GLOBAL ) ? true : false;
}
#endif
@@ -90,11 +90,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_global(
* This function returns TRUE if the priority attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority(
+RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority(
rtems_attribute attribute_set
)
{
- return ( attribute_set & RTEMS_PRIORITY );
+ return ( attribute_set & RTEMS_PRIORITY ) ? true : false;
}
/**
@@ -103,7 +103,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority(
* This function returns TRUE if the binary semaphore attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Attributes_Is_binary_semaphore(
+RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore(
rtems_attribute attribute_set
)
{
@@ -116,7 +116,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_binary_semaphore(
* This function returns TRUE if the simple binary semaphore attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Attributes_Is_simple_binary_semaphore(
+RTEMS_INLINE_ROUTINE bool _Attributes_Is_simple_binary_semaphore(
rtems_attribute attribute_set
)
{
@@ -130,7 +130,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_simple_binary_semaphore(
* This function returns TRUE if the counting semaphore attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Attributes_Is_counting_semaphore(
+RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(
rtems_attribute attribute_set
)
{
@@ -143,11 +143,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_counting_semaphore(
* This function returns TRUE if the priority inheritance attribute
* is enabled in the attribute_set and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Attributes_Is_inherit_priority(
+RTEMS_INLINE_ROUTINE bool _Attributes_Is_inherit_priority(
rtems_attribute attribute_set
)
{
- return ( attribute_set & RTEMS_INHERIT_PRIORITY );
+ return ( attribute_set & RTEMS_INHERIT_PRIORITY ) ? true : false;
}
/**
@@ -156,11 +156,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_inherit_priority(
* This function returns TRUE if the priority ceiling attribute
* is enabled in the attribute_set and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority_ceiling(
+RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority_ceiling(
rtems_attribute attribute_set
)
{
- return ( attribute_set & RTEMS_PRIORITY_CEILING );
+ return ( attribute_set & RTEMS_PRIORITY_CEILING ) ? true : false;
}
/**
@@ -169,11 +169,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority_ceiling(
* This function returns TRUE if the barrier automatic release
* attribute is enabled in the attribute_set and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Attributes_Is_barrier_automatic(
+RTEMS_INLINE_ROUTINE bool _Attributes_Is_barrier_automatic(
rtems_attribute attribute_set
)
{
- return ( attribute_set & RTEMS_BARRIER_AUTOMATIC_RELEASE );
+ return ( attribute_set & RTEMS_BARRIER_AUTOMATIC_RELEASE ) ? true : false;
}
/**
@@ -182,11 +182,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_barrier_automatic(
* This function returns TRUE if the system task attribute
* is enabled in the attribute_set and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Attributes_Is_system_task(
+RTEMS_INLINE_ROUTINE bool _Attributes_Is_system_task(
rtems_attribute attribute_set
)
{
- return ( attribute_set & RTEMS_SYSTEM_TASK );
+ return ( attribute_set & RTEMS_SYSTEM_TASK ) ? true : false;
}
/**@}*/
diff --git a/cpukit/rtems/inline/rtems/rtems/barrier.inl b/cpukit/rtems/inline/rtems/rtems/barrier.inl
index bc9d4d79dc..3bec0f2075 100644
--- a/cpukit/rtems/inline/rtems/rtems/barrier.inl
+++ b/cpukit/rtems/inline/rtems/rtems/barrier.inl
@@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get (
*
* This function returns TRUE if the_barrier is NULL and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Barrier_Is_null (
+RTEMS_INLINE_ROUTINE bool _Barrier_Is_null (
Barrier_Control *the_barrier
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/dpmem.inl b/cpukit/rtems/inline/rtems/rtems/dpmem.inl
index 5528878f18..5b944484b5 100644
--- a/cpukit/rtems/inline/rtems/rtems/dpmem.inl
+++ b/cpukit/rtems/inline/rtems/rtems/dpmem.inl
@@ -75,9 +75,9 @@ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get (
/**
* @brief Dual_ported_memory_Is_null
*
- * This function returns TRUE if the_port is NULL and FALSE otherwise.
+ * This function returns true if the_port is NULL and false otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Dual_ported_memory_Is_null(
+RTEMS_INLINE_ROUTINE bool _Dual_ported_memory_Is_null(
Dual_ported_memory_Control *the_port
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/eventset.inl b/cpukit/rtems/inline/rtems/rtems/eventset.inl
index c3ff7c4241..35b74517b2 100644
--- a/cpukit/rtems/inline/rtems/rtems/eventset.inl
+++ b/cpukit/rtems/inline/rtems/rtems/eventset.inl
@@ -32,7 +32,7 @@
* This function returns TRUE if on events are posted in the event_set,
* and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Event_sets_Is_empty(
+RTEMS_INLINE_ROUTINE bool _Event_sets_Is_empty(
rtems_event_set the_event_set
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/message.inl b/cpukit/rtems/inline/rtems/rtems/message.inl
index 1155658136..dfaeb25fb3 100644
--- a/cpukit/rtems/inline/rtems/rtems/message.inl
+++ b/cpukit/rtems/inline/rtems/rtems/message.inl
@@ -35,7 +35,7 @@
* This function places the_message at the rear of the outstanding
* messages on the_message_queue.
*/
-RTEMS_INLINE_ROUTINE boolean _Message_queue_Is_null (
+RTEMS_INLINE_ROUTINE bool _Message_queue_Is_null (
Message_queue_Control *the_message_queue
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/modes.inl b/cpukit/rtems/inline/rtems/rtems/modes.inl
index 76802a4289..d0dfe4932b 100644
--- a/cpukit/rtems/inline/rtems/rtems/modes.inl
+++ b/cpukit/rtems/inline/rtems/rtems/modes.inl
@@ -33,12 +33,12 @@
* This function returns TRUE if any of the mode flags in mask
* are set in mode_set, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Modes_Mask_changed (
+RTEMS_INLINE_ROUTINE bool _Modes_Mask_changed (
Modes_Control mode_set,
Modes_Control masks
)
{
- return ( mode_set & masks );
+ return ( mode_set & masks ) ? true : false;
}
/**
@@ -47,7 +47,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Mask_changed (
* This function returns TRUE if mode_set indicates that Asynchronous
* Signal Processing is disabled, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Modes_Is_asr_disabled (
+RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled (
Modes_Control mode_set
)
{
@@ -60,7 +60,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Is_asr_disabled (
* This function returns TRUE if mode_set indicates that preemption
* is enabled, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Modes_Is_preempt (
+RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (
Modes_Control mode_set
)
{
@@ -73,7 +73,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Is_preempt (
* This function returns TRUE if mode_set indicates that timeslicing
* is enabled, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Modes_Is_timeslice (
+RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice (
Modes_Control mode_set
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/options.inl b/cpukit/rtems/inline/rtems/rtems/options.inl
index d079a50a44..fd8c3ba234 100644
--- a/cpukit/rtems/inline/rtems/rtems/options.inl
+++ b/cpukit/rtems/inline/rtems/rtems/options.inl
@@ -33,11 +33,11 @@
* This function returns TRUE if the RTEMS_NO_WAIT option is enabled in
* option_set, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Options_Is_no_wait (
+RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (
rtems_option option_set
)
{
- return (option_set & RTEMS_NO_WAIT);
+ return (option_set & RTEMS_NO_WAIT) ? true : false;
}
/**
@@ -46,11 +46,11 @@ RTEMS_INLINE_ROUTINE boolean _Options_Is_no_wait (
* This function returns TRUE if the RTEMS_EVENT_ANY option is enabled in
* OPTION_SET, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Options_Is_any (
+RTEMS_INLINE_ROUTINE bool _Options_Is_any (
rtems_option option_set
)
{
- return (option_set & RTEMS_EVENT_ANY);
+ return (option_set & RTEMS_EVENT_ANY) ? true : false;
}
/**@}*/
diff --git a/cpukit/rtems/inline/rtems/rtems/part.inl b/cpukit/rtems/inline/rtems/rtems/part.inl
index 060dd5850d..9cab7013bb 100644
--- a/cpukit/rtems/inline/rtems/rtems/part.inl
+++ b/cpukit/rtems/inline/rtems/rtems/part.inl
@@ -60,7 +60,7 @@ RTEMS_INLINE_ROUTINE void _Partition_Free_buffer (
* This function returns TRUE if the_buffer is on a valid buffer
* boundary for the_partition, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_on_boundary (
+RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_on_boundary (
void *the_buffer,
Partition_Control *the_partition
)
@@ -81,7 +81,7 @@ RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_on_boundary (
* This function returns TRUE if the_buffer is a valid buffer from
* the_partition, otherwise FALSE is returned.
*/
-RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_valid (
+RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_valid (
Chain_Node *the_buffer,
Partition_Control *the_partition
)
@@ -105,7 +105,7 @@ RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_valid (
* will result in the allocation of buffers whose first byte is
* properly aligned, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_size_aligned (
+RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned (
uint32_t buffer_size
)
{
@@ -162,7 +162,7 @@ RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get (
* This function returns TRUE if the_partition is NULL
* and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Partition_Is_null (
+RTEMS_INLINE_ROUTINE bool _Partition_Is_null (
Partition_Control *the_partition
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/ratemon.inl b/cpukit/rtems/inline/rtems/rtems/ratemon.inl
index 3fcb845da1..2e8964faa1 100644
--- a/cpukit/rtems/inline/rtems/rtems/ratemon.inl
+++ b/cpukit/rtems/inline/rtems/rtems/ratemon.inl
@@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get (
* This function returns TRUE if the_period is in the ACTIVE state,
* and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_active (
+RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_active (
Rate_monotonic_Control *the_period
)
{
@@ -89,7 +89,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_active (
* This function returns TRUE if the_period is in the ACTIVE state,
* and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_inactive (
+RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_inactive (
Rate_monotonic_Control *the_period
)
{
@@ -102,7 +102,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_inactive (
* This function returns TRUE if the_period is in the EXPIRED state,
* and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_expired (
+RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_expired (
Rate_monotonic_Control *the_period
)
{
@@ -114,7 +114,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_expired (
*
* This function returns TRUE if the_period is NULL and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_null (
+RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_null (
Rate_monotonic_Control *the_period
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/region.inl b/cpukit/rtems/inline/rtems/rtems/region.inl
index b5f612ef51..18380e2862 100644
--- a/cpukit/rtems/inline/rtems/rtems/region.inl
+++ b/cpukit/rtems/inline/rtems/rtems/region.inl
@@ -89,7 +89,7 @@ RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment (
*
* This function frees the_segment to the_region.
*/
-RTEMS_INLINE_ROUTINE boolean _Region_Free_segment (
+RTEMS_INLINE_ROUTINE bool _Region_Free_segment (
Region_Control *the_region,
void *the_segment
)
@@ -102,7 +102,7 @@ RTEMS_INLINE_ROUTINE boolean _Region_Free_segment (
*
* This function returns TRUE if the_region is NULL and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Region_Is_null (
+RTEMS_INLINE_ROUTINE bool _Region_Is_null (
Region_Control *the_region
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/sem.inl b/cpukit/rtems/inline/rtems/rtems/sem.inl
index 43523eba03..de876d896a 100644
--- a/cpukit/rtems/inline/rtems/rtems/sem.inl
+++ b/cpukit/rtems/inline/rtems/rtems/sem.inl
@@ -97,7 +97,7 @@ RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get_interrupt_disable (
*
* This function returns TRUE if the_semaphore is NULL and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Semaphore_Is_null (
+RTEMS_INLINE_ROUTINE bool _Semaphore_Is_null (
Semaphore_Control *the_semaphore
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/status.inl b/cpukit/rtems/inline/rtems/rtems/status.inl
index 042f426de3..ba3d41b887 100644
--- a/cpukit/rtems/inline/rtems/rtems/status.inl
+++ b/cpukit/rtems/inline/rtems/rtems/status.inl
@@ -33,7 +33,7 @@
* This function returns TRUE if the status code is equal to RTEMS_SUCCESSFUL,
* and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean rtems_is_status_successful(
+RTEMS_INLINE_ROUTINE bool rtems_is_status_successful(
rtems_status_code code
)
{
@@ -46,7 +46,7 @@ RTEMS_INLINE_ROUTINE boolean rtems_is_status_successful(
* This function returns TRUE if the status code1 is equal to code2,
* and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean rtems_are_statuses_equal(
+RTEMS_INLINE_ROUTINE bool rtems_are_statuses_equal(
rtems_status_code code1,
rtems_status_code code2
)
diff --git a/cpukit/rtems/inline/rtems/rtems/support.inl b/cpukit/rtems/inline/rtems/rtems/support.inl
index dadcbc7baa..0f4defc92f 100644
--- a/cpukit/rtems/inline/rtems/rtems/support.inl
+++ b/cpukit/rtems/inline/rtems/rtems/support.inl
@@ -32,7 +32,7 @@
*
* This function returns TRUE if the name is valid, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE rtems_boolean rtems_is_name_valid (
+RTEMS_INLINE_ROUTINE bool rtems_is_name_valid (
rtems_name name
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/tasks.inl b/cpukit/rtems/inline/rtems/rtems/tasks.inl
index ca63aa83f5..e0fe241d45 100644
--- a/cpukit/rtems/inline/rtems/rtems/tasks.inl
+++ b/cpukit/rtems/inline/rtems/rtems/tasks.inl
@@ -72,7 +72,7 @@ RTEMS_INLINE_ROUTINE Priority_Control _RTEMS_tasks_Priority_to_Core(
* This function returns TRUE if the_priority is a valid user task priority
* and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _RTEMS_tasks_Priority_is_valid (
+RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
diff --git a/cpukit/rtems/inline/rtems/rtems/timer.inl b/cpukit/rtems/inline/rtems/rtems/timer.inl
index 30d8407d5d..10cae3f67d 100644
--- a/cpukit/rtems/inline/rtems/rtems/timer.inl
+++ b/cpukit/rtems/inline/rtems/rtems/timer.inl
@@ -75,7 +75,7 @@ RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (
* This function returns TRUE if the class is that of an INTERVAL
* timer, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Timer_Is_interval_class (
+RTEMS_INLINE_ROUTINE bool _Timer_Is_interval_class (
Timer_Classes the_class
)
{
@@ -88,7 +88,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_interval_class (
* This function returns TRUE if the class is that of an INTERVAL
* timer, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Timer_Is_timer_of_day_class (
+RTEMS_INLINE_ROUTINE bool _Timer_Is_timer_of_day_class (
Timer_Classes the_class
)
{
@@ -101,7 +101,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_timer_of_day_class (
* This function returns TRUE if the class is that of a DORMANT
* timer, and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Timer_Is_dormant_class (
+RTEMS_INLINE_ROUTINE bool _Timer_Is_dormant_class (
Timer_Classes the_class
)
{
@@ -113,7 +113,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_dormant_class (
*
* This function returns TRUE if the_timer is NULL and FALSE otherwise.
*/
-RTEMS_INLINE_ROUTINE boolean _Timer_Is_null (
+RTEMS_INLINE_ROUTINE bool _Timer_Is_null (
Timer_Control *the_timer
)
{
diff --git a/cpukit/rtems/src/clocktodvalidate.c b/cpukit/rtems/src/clocktodvalidate.c
index c9bdf4fd12..e40f7b9595 100644
--- a/cpukit/rtems/src/clocktodvalidate.c
+++ b/cpukit/rtems/src/clocktodvalidate.c
@@ -46,7 +46,7 @@ const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = {
* NOTE: This routine only works for leap-years through 2099.
*/
-boolean _TOD_Validate(
+bool _TOD_Validate(
rtems_time_of_day *the_tod
)
{
@@ -62,7 +62,7 @@ boolean _TOD_Validate(
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
- return FALSE;
+ return false;
if ( (the_tod->year % 4) == 0 )
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
@@ -70,7 +70,7 @@ boolean _TOD_Validate(
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
if ( the_tod->day > days_in_month )
- return FALSE;
+ return false;
- return TRUE;
+ return true;
}
diff --git a/cpukit/rtems/src/intrbody.c b/cpukit/rtems/src/intrbody.c
index b1d1470a7a..aac994229d 100644
--- a/cpukit/rtems/src/intrbody.c
+++ b/cpukit/rtems/src/intrbody.c
@@ -68,7 +68,7 @@ void rtems_interrupt_flash(
#undef rtems_interrupt_is_in_progress
-boolean rtems_interrupt_is_in_progress( void )
+bool rtems_interrupt_is_in_progress( void )
{
return _ISR_Is_in_progress();
}
diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c
index e6a156c5f7..1c419947cc 100644
--- a/cpukit/rtems/src/msgmp.c
+++ b/cpukit/rtems/src/msgmp.c
@@ -264,7 +264,7 @@ void _Message_queue_MP_Process_packet (
{
Message_queue_MP_Packet *the_packet;
Thread_Control *the_thread;
- boolean ignored;
+ bool ignored;
the_packet = (Message_queue_MP_Packet *) the_packet_prefix;
diff --git a/cpukit/rtems/src/msgqcreate.c b/cpukit/rtems/src/msgqcreate.c
index bf4d2b098a..191a3d6e32 100644
--- a/cpukit/rtems/src/msgqcreate.c
+++ b/cpukit/rtems/src/msgqcreate.c
@@ -65,7 +65,7 @@ rtems_status_code rtems_message_queue_create(
register Message_queue_Control *the_message_queue;
CORE_message_queue_Attributes the_msgq_attributes;
#if defined(RTEMS_MULTIPROCESSING)
- boolean is_global;
+ bool is_global;
#endif
if ( !rtems_is_name_valid( name ) )
diff --git a/cpukit/rtems/src/msgqreceive.c b/cpukit/rtems/src/msgqreceive.c
index e55122835a..48b3af4289 100644
--- a/cpukit/rtems/src/msgqreceive.c
+++ b/cpukit/rtems/src/msgqreceive.c
@@ -63,7 +63,7 @@ rtems_status_code rtems_message_queue_receive(
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
- boolean wait;
+ bool wait;
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
@@ -76,9 +76,9 @@ rtems_status_code rtems_message_queue_receive(
case OBJECTS_LOCAL:
if ( _Options_Is_no_wait( option_set ) )
- wait = FALSE;
+ wait = false;
else
- wait = TRUE;
+ wait = true;
_CORE_message_queue_Seize(
&the_message_queue->message_queue,
diff --git a/cpukit/rtems/src/partmp.c b/cpukit/rtems/src/partmp.c
index f1b6a7bcfd..5c076e4523 100644
--- a/cpukit/rtems/src/partmp.c
+++ b/cpukit/rtems/src/partmp.c
@@ -181,7 +181,7 @@ void _Partition_MP_Process_packet (
{
Partition_MP_Packet *the_packet;
Thread_Control *the_thread;
- boolean ignored;
+ bool ignored;
the_packet = (Partition_MP_Packet *) the_packet_prefix;
diff --git a/cpukit/rtems/src/regionmp.c b/cpukit/rtems/src/regionmp.c
index 3f33d56934..48148cc726 100644
--- a/cpukit/rtems/src/regionmp.c
+++ b/cpukit/rtems/src/regionmp.c
@@ -187,7 +187,7 @@ void _Region_MP_Process_packet (
{
Region_MP_Packet *the_packet;
Thread_Control *the_thread;
- boolean ignored;
+ bool ignored;
the_packet = (Region_MP_Packet *) the_packet_prefix;
diff --git a/cpukit/rtems/src/semmp.c b/cpukit/rtems/src/semmp.c
index 570288d4a2..c8dc27b11b 100644
--- a/cpukit/rtems/src/semmp.c
+++ b/cpukit/rtems/src/semmp.c
@@ -184,7 +184,7 @@ void _Semaphore_MP_Process_packet (
{
Semaphore_MP_Packet *the_packet;
Thread_Control *the_thread;
- boolean ignored;
+ bool ignored;
the_packet = (Semaphore_MP_Packet *) the_packet_prefix;
diff --git a/cpukit/rtems/src/signalsend.c b/cpukit/rtems/src/signalsend.c
index f302eeb8f2..1063830ee5 100644
--- a/cpukit/rtems/src/signalsend.c
+++ b/cpukit/rtems/src/signalsend.c
@@ -64,7 +64,7 @@ rtems_status_code rtems_signal_send(
if ( asr->is_enabled ) {
_ASR_Post_signals( signal_set, &asr->signals_posted );
- the_thread->do_post_task_switch_extension = TRUE;
+ the_thread->do_post_task_switch_extension = true;
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
_ISR_Signals_to_thread_executing = TRUE;
diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c
index 38d924ad39..71684d85b2 100644
--- a/cpukit/rtems/src/taskcreate.c
+++ b/cpukit/rtems/src/taskcreate.c
@@ -65,12 +65,12 @@ rtems_status_code rtems_task_create(
)
{
register Thread_Control *the_thread;
- boolean is_fp;
+ bool is_fp;
#if defined(RTEMS_MULTIPROCESSING)
Objects_MP_Control *the_global_object = NULL;
- boolean is_global;
+ bool is_global;
#endif
- boolean status;
+ bool status;
rtems_attribute the_attribute_set;
Priority_Control core_priority;
RTEMS_API_Control *api;
@@ -102,9 +102,9 @@ rtems_status_code rtems_task_create(
_Attributes_Clear( the_attribute_set, ATTRIBUTES_NOT_SUPPORTED );
if ( _Attributes_Is_floating_point( the_attribute_set ) )
- is_fp = TRUE;
+ is_fp = true;
else
- is_fp = FALSE;
+ is_fp = false;
/*
* Validate the RTEMS API priority and convert it to the core priority range.
@@ -120,13 +120,13 @@ rtems_status_code rtems_task_create(
#if defined(RTEMS_MULTIPROCESSING)
if ( _Attributes_Is_global( the_attribute_set ) ) {
- is_global = TRUE;
+ is_global = true;
if ( !_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
} else
- is_global = FALSE;
+ is_global = false;
#endif
/*
@@ -200,7 +200,7 @@ rtems_status_code rtems_task_create(
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
- asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? FALSE : TRUE;
+ asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true;
*id = the_thread->Object.id;
diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c
index 65fc07a81f..472e21e7d9 100644
--- a/cpukit/rtems/src/taskmode.c
+++ b/cpukit/rtems/src/taskmode.c
@@ -58,8 +58,8 @@ rtems_status_code rtems_task_mode(
Thread_Control *executing;
RTEMS_API_Control *api;
ASR_Information *asr;
- boolean is_asr_enabled = FALSE;
- boolean needs_asr_dispatching = FALSE;
+ bool is_asr_enabled = false;
+ bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
@@ -111,13 +111,13 @@ rtems_status_code rtems_task_mode(
needs_asr_dispatching = FALSE;
if ( mask & RTEMS_ASR_MASK ) {
- is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? FALSE : TRUE;
+ is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
if ( is_asr_enabled != asr->is_enabled ) {
asr->is_enabled = is_asr_enabled;
_ASR_Swap_signals( asr );
if ( _ASR_Are_signals_pending( asr ) ) {
- needs_asr_dispatching = TRUE;
- executing->do_post_task_switch_extension = TRUE;
+ needs_asr_dispatching = true;
+ executing->do_post_task_switch_extension = true;
}
}
}
diff --git a/cpukit/rtems/src/taskmp.c b/cpukit/rtems/src/taskmp.c
index dec5986017..a9ca8031c9 100644
--- a/cpukit/rtems/src/taskmp.c
+++ b/cpukit/rtems/src/taskmp.c
@@ -190,7 +190,7 @@ void _RTEMS_tasks_MP_Process_packet (
{
RTEMS_tasks_MP_Packet *the_packet;
Thread_Control *the_thread;
- boolean ignored;
+ bool ignored;
the_packet = (RTEMS_tasks_MP_Packet *) the_packet_prefix;
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c
index b49975bb6f..2ccacd677e 100644
--- a/cpukit/rtems/src/tasks.c
+++ b/cpukit/rtems/src/tasks.c
@@ -43,7 +43,7 @@
* area.
*/
-boolean _RTEMS_tasks_Create_extension(
+bool _RTEMS_tasks_Create_extension(
Thread_Control *executing,
Thread_Control *created
)
@@ -63,7 +63,7 @@ boolean _RTEMS_tasks_Create_extension(
api = _Workspace_Allocate( to_allocate );
if ( !api )
- return FALSE;
+ return false;
created->API_Extensions[ THREAD_API_RTEMS ] = api;
@@ -76,7 +76,7 @@ boolean _RTEMS_tasks_Create_extension(
api->Notepads[i] = 0;
}
- return TRUE;
+ return true;
}
/*PAGE
diff --git a/cpukit/rtems/src/timerserver.c b/cpukit/rtems/src/timerserver.c
index 00a91e8937..a96b45272e 100644
--- a/cpukit/rtems/src/timerserver.c
+++ b/cpukit/rtems/src/timerserver.c
@@ -147,8 +147,8 @@ rtems_status_code rtems_timer_initiate_server(
rtems_id id;
rtems_status_code status;
rtems_task_priority _priority;
- static boolean initialized = FALSE;
- boolean tmpInitialized;
+ static bool initialized = false;
+ bool tmpInitialized;
/*
* Make sure the requested priority is valid. The if is
@@ -169,7 +169,7 @@ rtems_status_code rtems_timer_initiate_server(
_Thread_Disable_dispatch();
tmpInitialized = initialized;
- initialized = TRUE;
+ initialized = true;
_Thread_Enable_dispatch();
if ( tmpInitialized )
@@ -201,7 +201,7 @@ rtems_status_code rtems_timer_initiate_server(
&id /* get the id back */
);
if (status) {
- initialized = FALSE;
+ initialized = false;
return status;
}
@@ -254,7 +254,7 @@ rtems_status_code rtems_timer_initiate_server(
* be good. If this service fails, something is weirdly wrong on the
* target such as a stray write in an ISR or incorrect memory layout.
*/
- initialized = FALSE;
+ initialized = false;
}
return status;
diff --git a/cpukit/rtems/src/workspace.c b/cpukit/rtems/src/workspace.c
index d5335ebc8d..f573440475 100644
--- a/cpukit/rtems/src/workspace.c
+++ b/cpukit/rtems/src/workspace.c
@@ -22,7 +22,7 @@
#include <string.h> /* for memset */
-boolean rtems_workspace_get_information(
+bool rtems_workspace_get_information(
Heap_Information_block *the_info
)
{
@@ -30,30 +30,30 @@ boolean rtems_workspace_get_information(
status = _Heap_Get_information( &_Workspace_Area, the_info );
if ( status == HEAP_GET_INFORMATION_SUCCESSFUL )
- return TRUE;
+ return true;
else
- return FALSE;
+ return false;
}
/*
* _Workspace_Allocate
*/
-boolean rtems_workspace_allocate(
+bool rtems_workspace_allocate(
size_t bytes,
void **pointer
)
{
*pointer = _Heap_Allocate( &_Workspace_Area, bytes );
if (!pointer)
- return FALSE;
+ return false;
else
- return TRUE;
+ return true;
}
/*
* _Workspace_Allocate
*/
-boolean rtems_workspace_free(
+bool rtems_workspace_free(
void *pointer
)
{