From f8437c81d5e191ebe10374938974315aee07faf3 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 4 Sep 2008 15:23:12 +0000 Subject: Convert to "bool". --- cpukit/posix/inline/rtems/posix/barrier.inl | 2 +- cpukit/posix/inline/rtems/posix/cond.inl | 2 +- cpukit/posix/inline/rtems/posix/key.inl | 2 +- cpukit/posix/inline/rtems/posix/mqueue.inl | 3 +-- cpukit/posix/inline/rtems/posix/mutex.inl | 2 +- cpukit/posix/inline/rtems/posix/priority.inl | 4 ++-- cpukit/posix/inline/rtems/posix/pthread.inl | 2 +- cpukit/posix/inline/rtems/posix/rwlock.inl | 2 +- cpukit/posix/inline/rtems/posix/semaphore.inl | 2 +- cpukit/posix/inline/rtems/posix/spinlock.inl | 2 +- cpukit/posix/inline/rtems/posix/timer.inl | 2 +- 11 files changed, 12 insertions(+), 13 deletions(-) (limited to 'cpukit/posix/inline/rtems') diff --git a/cpukit/posix/inline/rtems/posix/barrier.inl b/cpukit/posix/inline/rtems/posix/barrier.inl index 8740ee595d..7995f13786 100644 --- a/cpukit/posix/inline/rtems/posix/barrier.inl +++ b/cpukit/posix/inline/rtems/posix/barrier.inl @@ -78,7 +78,7 @@ RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get ( * * This function returns TRUE if the_barrier is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _POSIX_Barrier_Is_null ( +RTEMS_INLINE_ROUTINE bool _POSIX_Barrier_Is_null ( POSIX_Barrier_Control *the_barrier ) { diff --git a/cpukit/posix/inline/rtems/posix/cond.inl b/cpukit/posix/inline/rtems/posix/cond.inl index 3aded03789..3b011c0383 100644 --- a/cpukit/posix/inline/rtems/posix/cond.inl +++ b/cpukit/posix/inline/rtems/posix/cond.inl @@ -58,7 +58,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Free ( * _POSIX_Condition_variables_Is_null */ -RTEMS_INLINE_ROUTINE boolean _POSIX_Condition_variables_Is_null ( +RTEMS_INLINE_ROUTINE bool _POSIX_Condition_variables_Is_null ( POSIX_Condition_variables_Control *the_condition_variable ) { diff --git a/cpukit/posix/inline/rtems/posix/key.inl b/cpukit/posix/inline/rtems/posix/key.inl index e110293dc8..6fbce5a7ee 100644 --- a/cpukit/posix/inline/rtems/posix/key.inl +++ b/cpukit/posix/inline/rtems/posix/key.inl @@ -65,7 +65,7 @@ RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Get ( * _POSIX_Keys_Is_null */ -RTEMS_INLINE_ROUTINE boolean _POSIX_Keys_Is_null ( +RTEMS_INLINE_ROUTINE bool _POSIX_Keys_Is_null ( POSIX_Keys_Control *the_key ) { diff --git a/cpukit/posix/inline/rtems/posix/mqueue.inl b/cpukit/posix/inline/rtems/posix/mqueue.inl index 2c3fd3f3c7..22862edf0c 100644 --- a/cpukit/posix/inline/rtems/posix/mqueue.inl +++ b/cpukit/posix/inline/rtems/posix/mqueue.inl @@ -118,7 +118,7 @@ RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd * _POSIX_Message_queue_Is_null */ -RTEMS_INLINE_ROUTINE boolean _POSIX_Message_queue_Is_null ( +RTEMS_INLINE_ROUTINE bool _POSIX_Message_queue_Is_null ( POSIX_Message_queue_Control *the_mq ) { @@ -155,4 +155,3 @@ RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core( #endif /* end of include file */ - diff --git a/cpukit/posix/inline/rtems/posix/mutex.inl b/cpukit/posix/inline/rtems/posix/mutex.inl index be27ff1bf9..b5e3721a3a 100644 --- a/cpukit/posix/inline/rtems/posix/mutex.inl +++ b/cpukit/posix/inline/rtems/posix/mutex.inl @@ -51,7 +51,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Mutex_Free ( * _POSIX_Mutex_Is_null */ -RTEMS_INLINE_ROUTINE boolean _POSIX_Mutex_Is_null ( +RTEMS_INLINE_ROUTINE bool _POSIX_Mutex_Is_null ( POSIX_Mutex_Control *the_mutex ) { diff --git a/cpukit/posix/inline/rtems/posix/priority.inl b/cpukit/posix/inline/rtems/posix/priority.inl index 999727e469..efabbda65a 100644 --- a/cpukit/posix/inline/rtems/posix/priority.inl +++ b/cpukit/posix/inline/rtems/posix/priority.inl @@ -28,11 +28,11 @@ * Thus, RTEMS Core has priorities run in the opposite sense of the POSIX API. */ -RTEMS_INLINE_ROUTINE boolean _POSIX_Priority_Is_valid( +RTEMS_INLINE_ROUTINE bool _POSIX_Priority_Is_valid( int priority ) { - return (boolean) (priority >= 1 && priority <= 254); + return (priority >= 1 && priority <= 254); } RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( diff --git a/cpukit/posix/inline/rtems/posix/pthread.inl b/cpukit/posix/inline/rtems/posix/pthread.inl index b1b168c872..7f35e9a08b 100644 --- a/cpukit/posix/inline/rtems/posix/pthread.inl +++ b/cpukit/posix/inline/rtems/posix/pthread.inl @@ -65,7 +65,7 @@ RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( * _POSIX_Threads_Is_null */ -RTEMS_INLINE_ROUTINE boolean _POSIX_Threads_Is_null ( +RTEMS_INLINE_ROUTINE bool _POSIX_Threads_Is_null ( Thread_Control *the_pthread ) { diff --git a/cpukit/posix/inline/rtems/posix/rwlock.inl b/cpukit/posix/inline/rtems/posix/rwlock.inl index f75d741710..b0410fa104 100644 --- a/cpukit/posix/inline/rtems/posix/rwlock.inl +++ b/cpukit/posix/inline/rtems/posix/rwlock.inl @@ -78,7 +78,7 @@ RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get ( * * This function returns TRUE if the_RWLock is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _POSIX_RWLock_Is_null ( +RTEMS_INLINE_ROUTINE bool _POSIX_RWLock_Is_null ( POSIX_RWLock_Control *the_RWLock ) { diff --git a/cpukit/posix/inline/rtems/posix/semaphore.inl b/cpukit/posix/inline/rtems/posix/semaphore.inl index b4b847e211..59917bb081 100644 --- a/cpukit/posix/inline/rtems/posix/semaphore.inl +++ b/cpukit/posix/inline/rtems/posix/semaphore.inl @@ -81,7 +81,7 @@ RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get ( * _POSIX_Semaphore_Is_null */ -RTEMS_INLINE_ROUTINE boolean _POSIX_Semaphore_Is_null ( +RTEMS_INLINE_ROUTINE bool _POSIX_Semaphore_Is_null ( POSIX_Semaphore_Control *the_semaphore ) { diff --git a/cpukit/posix/inline/rtems/posix/spinlock.inl b/cpukit/posix/inline/rtems/posix/spinlock.inl index 1660fa2ac7..97cdeb97bb 100644 --- a/cpukit/posix/inline/rtems/posix/spinlock.inl +++ b/cpukit/posix/inline/rtems/posix/spinlock.inl @@ -78,7 +78,7 @@ RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get ( * * This function returns TRUE if the_spinlock is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _POSIX_Spinlock_Is_null ( +RTEMS_INLINE_ROUTINE bool _POSIX_Spinlock_Is_null ( POSIX_Spinlock_Control *the_spinlock ) { diff --git a/cpukit/posix/inline/rtems/posix/timer.inl b/cpukit/posix/inline/rtems/posix/timer.inl index 9dd253fda7..383e65102f 100644 --- a/cpukit/posix/inline/rtems/posix/timer.inl +++ b/cpukit/posix/inline/rtems/posix/timer.inl @@ -87,7 +87,7 @@ RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get ( * This function returns TRUE if the_timer is NULL and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _POSIX_Timer_Is_null ( +RTEMS_INLINE_ROUTINE bool _POSIX_Timer_Is_null ( POSIX_Timer_Control *the_timer ) { -- cgit v1.2.3