diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-02-03 10:10:57 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-02-03 10:10:57 +0000 |
commit | b1dbfd724bf418ad997d72c68d3683589b53d2d5 (patch) | |
tree | f57b43a51d2d32a576577f544a0a4254b1462b9f /cpukit | |
parent | 2009-02-03 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-b1dbfd724bf418ad997d72c68d3683589b53d2d5.tar.bz2 |
Eliminate TRUE/FALSE.
Diffstat (limited to 'cpukit')
59 files changed, 96 insertions, 96 deletions
diff --git a/cpukit/posix/src/barrierattrdestroy.c b/cpukit/posix/src/barrierattrdestroy.c index 8f806520d2..8821866af9 100644 --- a/cpukit/posix/src/barrierattrdestroy.c +++ b/cpukit/posix/src/barrierattrdestroy.c @@ -33,9 +33,9 @@ int pthread_barrierattr_destroy( pthread_barrierattr_t *attr ) { - if ( !attr || attr->is_initialized == FALSE ) + if ( !attr || attr->is_initialized == false ) return EINVAL; - attr->is_initialized = FALSE; + attr->is_initialized = false; return 0; } diff --git a/cpukit/posix/src/barrierattrinit.c b/cpukit/posix/src/barrierattrinit.c index 3520d094e1..b1a6e980c9 100644 --- a/cpukit/posix/src/barrierattrinit.c +++ b/cpukit/posix/src/barrierattrinit.c @@ -30,7 +30,7 @@ int pthread_barrierattr_init( if ( !attr ) return EINVAL; - attr->is_initialized = TRUE; + attr->is_initialized = true; attr->process_shared = PTHREAD_PROCESS_PRIVATE; return 0; } diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c index 7cebd7c212..954fb34b78 100644 --- a/cpukit/posix/src/cond.c +++ b/cpukit/posix/src/cond.c @@ -48,11 +48,11 @@ void _POSIX_Condition_variables_Manager_initialization(void) /* maximum objects of this class */ sizeof( POSIX_Condition_variables_Control ), /* size of this object's control block */ - TRUE, /* TRUE if names for this object are strings */ + true, /* true if names for this object are strings */ _POSIX_PATH_MAX /* 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/posix/src/condattrdestroy.c b/cpukit/posix/src/condattrdestroy.c index 66eb27368e..821f93fba9 100644 --- a/cpukit/posix/src/condattrdestroy.c +++ b/cpukit/posix/src/condattrdestroy.c @@ -34,9 +34,9 @@ int pthread_condattr_destroy( pthread_condattr_t *attr ) { - if ( !attr || attr->is_initialized == FALSE ) + if ( !attr || attr->is_initialized == false ) return EINVAL; - attr->is_initialized = FALSE; + attr->is_initialized = false; return 0; } diff --git a/cpukit/posix/src/condbroadcast.c b/cpukit/posix/src/condbroadcast.c index e7ade5b205..73875f7952 100644 --- a/cpukit/posix/src/condbroadcast.c +++ b/cpukit/posix/src/condbroadcast.c @@ -33,5 +33,5 @@ int pthread_cond_broadcast( pthread_cond_t *cond ) { - return _POSIX_Condition_variables_Signal_support( cond, TRUE ); + return _POSIX_Condition_variables_Signal_support( cond, true ); } diff --git a/cpukit/posix/src/conddefaultattributes.c b/cpukit/posix/src/conddefaultattributes.c index 1ce1989583..7d83bf473c 100644 --- a/cpukit/posix/src/conddefaultattributes.c +++ b/cpukit/posix/src/conddefaultattributes.c @@ -30,6 +30,6 @@ */ const pthread_condattr_t _POSIX_Condition_variables_Default_attributes = { - TRUE, /* is_initialized */ + true, /* is_initialized */ PTHREAD_PROCESS_PRIVATE /* process_shared */ }; diff --git a/cpukit/posix/src/condsignal.c b/cpukit/posix/src/condsignal.c index ec7b12e41e..fd607fd641 100644 --- a/cpukit/posix/src/condsignal.c +++ b/cpukit/posix/src/condsignal.c @@ -33,5 +33,5 @@ int pthread_cond_signal( pthread_cond_t *cond ) { - return _POSIX_Condition_variables_Signal_support( cond, FALSE ); + return _POSIX_Condition_variables_Signal_support( cond, false ); } diff --git a/cpukit/posix/src/condtimedwait.c b/cpukit/posix/src/condtimedwait.c index 46b872b465..5f085a04c8 100644 --- a/cpukit/posix/src/condtimedwait.c +++ b/cpukit/posix/src/condtimedwait.c @@ -56,10 +56,10 @@ int pthread_cond_timedwait( return EINVAL; case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST: case POSIX_ABSOLUTE_TIMEOUT_IS_NOW: - already_timedout = TRUE; + already_timedout = true; break; case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: - already_timedout = FALSE; + already_timedout = false; break; } diff --git a/cpukit/posix/src/condwait.c b/cpukit/posix/src/condwait.c index 2479c2be09..2d925a3b80 100644 --- a/cpukit/posix/src/condwait.c +++ b/cpukit/posix/src/condwait.c @@ -38,6 +38,6 @@ int pthread_cond_wait( cond, mutex, THREAD_QUEUE_WAIT_FOREVER, - FALSE + false ); } diff --git a/cpukit/posix/src/key.c b/cpukit/posix/src/key.c index 013b19b859..a32853cac4 100644 --- a/cpukit/posix/src/key.c +++ b/cpukit/posix/src/key.c @@ -47,11 +47,11 @@ void _POSIX_Key_Manager_initialization(void) /* maximum objects of this class */ sizeof( POSIX_Keys_Control ), /* size of this object's control block */ - TRUE, /* TRUE if names for this object are strings */ + true, /* true if names for this object are strings */ _POSIX_PATH_MAX /* 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/posix/src/keycreate.c b/cpukit/posix/src/keycreate.c index df5cec3241..4e26e7d6eb 100644 --- a/cpukit/posix/src/keycreate.c +++ b/cpukit/posix/src/keycreate.c @@ -69,7 +69,7 @@ int pthread_key_create( if (_Objects_Information_table[ the_api ][ 1 ] == NULL ) _Internal_error_Occurred( INTERNAL_ERROR_CORE, - TRUE, + true, INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY ); #endif @@ -96,7 +96,7 @@ int pthread_key_create( } - the_key->is_active = TRUE; + the_key->is_active = true; _Objects_Open_u32( &_POSIX_Keys_Information, &the_key->Object, 0 ); diff --git a/cpukit/posix/src/keydelete.c b/cpukit/posix/src/keydelete.c index 7b4e716c5c..0abfee14c7 100644 --- a/cpukit/posix/src/keydelete.c +++ b/cpukit/posix/src/keydelete.c @@ -42,7 +42,7 @@ int pthread_key_delete( case OBJECTS_LOCAL: _Objects_Close( &_POSIX_Keys_Information, &the_key->Object ); - the_key->is_active = FALSE; + the_key->is_active = false; for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; diff --git a/cpukit/posix/src/keyrundestructors.c b/cpukit/posix/src/keyrundestructors.c index de37741765..79f671e036 100644 --- a/cpukit/posix/src/keyrundestructors.c +++ b/cpukit/posix/src/keyrundestructors.c @@ -52,7 +52,7 @@ void _POSIX_Keys_Run_destructors( for ( ; ; ) { - are_all_null = TRUE; + are_all_null = true; for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) { @@ -64,12 +64,12 @@ void _POSIX_Keys_Run_destructors( if ( value ) { (*the_key->destructor)( value ); if ( the_key->Values[ thread_api ][ thread_index ] ) - are_all_null = FALSE; + are_all_null = false; } } } - if ( are_all_null == TRUE ) + if ( are_all_null == true ) return; iterations++; diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c index 2702c7cdbc..47e6605c41 100644 --- a/cpukit/posix/src/killinfo.c +++ b/cpukit/posix/src/killinfo.c @@ -299,7 +299,7 @@ process_it: the_thread->do_post_task_switch_extension = true; /* - * Returns TRUE if the signal was synchronously given to a thread + * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ diff --git a/cpukit/posix/src/mqueue.c b/cpukit/posix/src/mqueue.c index 33f236d50c..5ae45f9b47 100644 --- a/cpukit/posix/src/mqueue.c +++ b/cpukit/posix/src/mqueue.c @@ -61,11 +61,11 @@ void _POSIX_Message_queue_Manager_initialization(void) /* maximum objects of this class */ sizeof( POSIX_Message_queue_Control ), /* size of this object's control block */ - TRUE, /* TRUE if names for this object are strings */ + true, /* true if names for this object are strings */ _POSIX_PATH_MAX /* 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 ); @@ -76,11 +76,11 @@ void _POSIX_Message_queue_Manager_initialization(void) Configuration_POSIX_API.maximum_message_queues, sizeof( POSIX_Message_queue_Control_fd ), /* size of this object's control block */ - TRUE, /* TRUE if names for this object are strings */ + true, /* true if names for this object are strings */ NAME_MAX /* 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/posix/src/mqueuecreatesupp.c b/cpukit/posix/src/mqueuecreatesupp.c index d6c45f09f4..335d1fc74d 100644 --- a/cpukit/posix/src/mqueuecreatesupp.c +++ b/cpukit/posix/src/mqueuecreatesupp.c @@ -103,9 +103,9 @@ int _POSIX_Message_queue_Create_support( } the_mq->process_shared = pshared; - the_mq->named = TRUE; + the_mq->named = true; the_mq->open_count = 1; - the_mq->linked = TRUE; + the_mq->linked = true; /* * Make a copy of the user's string for name just in case it was diff --git a/cpukit/posix/src/mqueueopen.c b/cpukit/posix/src/mqueueopen.c index 1305d3fc65..02d1b08e5e 100644 --- a/cpukit/posix/src/mqueueopen.c +++ b/cpukit/posix/src/mqueueopen.c @@ -137,7 +137,7 @@ mqd_t mq_open( status = _POSIX_Message_queue_Create_support( name, - TRUE, /* shared across processes */ + true, /* shared across processes */ attr, &the_mq ); diff --git a/cpukit/posix/src/mqueuereceive.c b/cpukit/posix/src/mqueuereceive.c index e27f3ccd48..46b46b8359 100644 --- a/cpukit/posix/src/mqueuereceive.c +++ b/cpukit/posix/src/mqueuereceive.c @@ -58,7 +58,7 @@ ssize_t mq_receive( msg_ptr, msg_len, msg_prio, - TRUE, + true, THREAD_QUEUE_WAIT_FOREVER ); } diff --git a/cpukit/posix/src/mqueuerecvsupp.c b/cpukit/posix/src/mqueuerecvsupp.c index dff76c184d..9c3fb47371 100644 --- a/cpukit/posix/src/mqueuerecvsupp.c +++ b/cpukit/posix/src/mqueuerecvsupp.c @@ -88,7 +88,7 @@ ssize_t _POSIX_Message_queue_Receive_support( * A timed receive with a bad time will do a poll regardless. */ if ( wait ) - do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? FALSE : TRUE; + do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true; else do_wait = wait; diff --git a/cpukit/posix/src/mqueuesend.c b/cpukit/posix/src/mqueuesend.c index 61e7c93b53..312b04dac2 100644 --- a/cpukit/posix/src/mqueuesend.c +++ b/cpukit/posix/src/mqueuesend.c @@ -58,7 +58,7 @@ int mq_send( msg_ptr, msg_len, msg_prio, - TRUE, + true, THREAD_QUEUE_WAIT_FOREVER ); } diff --git a/cpukit/posix/src/mqueuesendsupp.c b/cpukit/posix/src/mqueuesendsupp.c index c33bec7ae3..13e91756e8 100644 --- a/cpukit/posix/src/mqueuesendsupp.c +++ b/cpukit/posix/src/mqueuesendsupp.c @@ -83,7 +83,7 @@ int _POSIX_Message_queue_Send_support( * A timed receive with a bad time will do a poll regardless. */ if ( wait ) - do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? FALSE : TRUE; + do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true; else do_wait = wait; diff --git a/cpukit/posix/src/mqueuetimedreceive.c b/cpukit/posix/src/mqueuetimedreceive.c index 55ca4c4c90..0ed59084a8 100644 --- a/cpukit/posix/src/mqueuetimedreceive.c +++ b/cpukit/posix/src/mqueuetimedreceive.c @@ -72,11 +72,11 @@ ssize_t mq_timedreceive( case POSIX_ABSOLUTE_TIMEOUT_INVALID: case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST: case POSIX_ABSOLUTE_TIMEOUT_IS_NOW: - do_wait = FALSE; + do_wait = false; break; case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: default: /* only to silence warnings */ - do_wait = TRUE; + do_wait = true; break; } diff --git a/cpukit/posix/src/mqueuetimedsend.c b/cpukit/posix/src/mqueuetimedsend.c index 423df8cbab..694c5d0323 100644 --- a/cpukit/posix/src/mqueuetimedsend.c +++ b/cpukit/posix/src/mqueuetimedsend.c @@ -72,11 +72,11 @@ int mq_timedsend( case POSIX_ABSOLUTE_TIMEOUT_INVALID: case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST: case POSIX_ABSOLUTE_TIMEOUT_IS_NOW: - do_wait = FALSE; + do_wait = false; break; case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: default: /* only to silence warnings */ - do_wait = TRUE; + do_wait = true; break; } diff --git a/cpukit/posix/src/mqueueunlink.c b/cpukit/posix/src/mqueueunlink.c index 3213fdbe0b..67bb26928f 100644 --- a/cpukit/posix/src/mqueueunlink.c +++ b/cpukit/posix/src/mqueueunlink.c @@ -66,7 +66,7 @@ int mq_unlink( _Objects_Get_index( the_mq_id ) ); - the_mq->linked = FALSE; + the_mq->linked = false; _POSIX_Message_queue_Namespace_remove( the_mq ); _POSIX_Message_queue_Delete( the_mq ); diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c index 5e8693f830..ea71d6b277 100644 --- a/cpukit/posix/src/mutex.c +++ b/cpukit/posix/src/mutex.c @@ -48,11 +48,11 @@ void _POSIX_Mutex_Manager_initialization(void) * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ - default_attr->is_initialized = TRUE; + default_attr->is_initialized = true; default_attr->process_shared = PTHREAD_PROCESS_PRIVATE; default_attr->prio_ceiling = POSIX_SCHEDULER_MAXIMUM_PRIORITY; default_attr->protocol = PTHREAD_PRIO_NONE; - default_attr->recursive = FALSE; + default_attr->recursive = false; /* * Initialize the POSIX mutex object class information structure. @@ -65,11 +65,11 @@ void _POSIX_Mutex_Manager_initialization(void) /* maximum objects of this class */ sizeof( POSIX_Mutex_Control ), /* size of this object's control block */ - TRUE, /* TRUE if names for this object are strings */ + true, /* true if names for this object are strings */ _POSIX_PATH_MAX /* 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/posix/src/mutexattrdestroy.c b/cpukit/posix/src/mutexattrdestroy.c index d387aa5e4e..86e8c4597c 100644 --- a/cpukit/posix/src/mutexattrdestroy.c +++ b/cpukit/posix/src/mutexattrdestroy.c @@ -35,6 +35,6 @@ int pthread_mutexattr_destroy( if ( !attr || !attr->is_initialized ) return EINVAL; - attr->is_initialized = FALSE; + attr->is_initialized = false; return 0; } diff --git a/cpukit/posix/src/mutexinit.c b/cpukit/posix/src/mutexinit.c index da6af07c12..5fe81d100b 100644 --- a/cpukit/posix/src/mutexinit.c +++ b/cpukit/posix/src/mutexinit.c @@ -144,7 +144,7 @@ int pthread_mutex_init( the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; else the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR; - the_mutex_attr->only_owner_release = TRUE; + the_mutex_attr->only_owner_release = true; the_mutex_attr->priority_ceiling = _POSIX_Priority_To_core( the_attr->prio_ceiling ); the_mutex_attr->discipline = the_discipline; diff --git a/cpukit/posix/src/mutexlock.c b/cpukit/posix/src/mutexlock.c index eb00253b99..85d1bd623b 100644 --- a/cpukit/posix/src/mutexlock.c +++ b/cpukit/posix/src/mutexlock.c @@ -37,5 +37,5 @@ int pthread_mutex_lock( pthread_mutex_t *mutex ) { - return _POSIX_Mutex_Lock_support( mutex, TRUE, THREAD_QUEUE_WAIT_FOREVER ); + return _POSIX_Mutex_Lock_support( mutex, true, THREAD_QUEUE_WAIT_FOREVER ); } diff --git a/cpukit/posix/src/mutextimedlock.c b/cpukit/posix/src/mutextimedlock.c index 623644b466..0e3e46f37d 100644 --- a/cpukit/posix/src/mutextimedlock.c +++ b/cpukit/posix/src/mutextimedlock.c @@ -61,10 +61,10 @@ int pthread_mutex_timedlock( case POSIX_ABSOLUTE_TIMEOUT_INVALID: case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST: case POSIX_ABSOLUTE_TIMEOUT_IS_NOW: - do_wait = FALSE; + do_wait = false; break; case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: - do_wait = TRUE; + do_wait = true; break; } diff --git a/cpukit/posix/src/mutextrylock.c b/cpukit/posix/src/mutextrylock.c index c920663d85..d44f216614 100644 --- a/cpukit/posix/src/mutextrylock.c +++ b/cpukit/posix/src/mutextrylock.c @@ -37,5 +37,5 @@ int pthread_mutex_trylock( pthread_mutex_t *mutex ) { - return _POSIX_Mutex_Lock_support( mutex, FALSE, THREAD_QUEUE_WAIT_FOREVER ); + return _POSIX_Mutex_Lock_support( mutex, false, THREAD_QUEUE_WAIT_FOREVER ); } diff --git a/cpukit/posix/src/pbarrier.c b/cpukit/posix/src/pbarrier.c index fa290d2616..d131000e89 100644 --- a/cpukit/posix/src/pbarrier.c +++ b/cpukit/posix/src/pbarrier.c @@ -46,11 +46,11 @@ void _POSIX_Barrier_Manager_initialization(void) Configuration_POSIX_API.maximum_barriers, /* maximum objects of this class */ sizeof( POSIX_Barrier_Control ),/* size of this object's control block */ - TRUE, /* TRUE if the name is a string */ + true, /* true if the name is a string */ _POSIX_PATH_MAX /* 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/posix/src/prwlock.c b/cpukit/posix/src/prwlock.c index 8f97cb46cc..9c3fd707d8 100644 --- a/cpukit/posix/src/prwlock.c +++ b/cpukit/posix/src/prwlock.c @@ -34,11 +34,11 @@ void _POSIX_RWLock_Manager_initialization(void) Configuration_POSIX_API.maximum_rwlocks, /* maximum objects of this class */ sizeof( POSIX_RWLock_Control ), /* size of this object's control block */ - TRUE, /* TRUE if the name is a string */ + true, /* true if the name is a string */ _POSIX_PATH_MAX /* 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/posix/src/prwlockrdlock.c b/cpukit/posix/src/prwlockrdlock.c index d96937a3e8..ccc3b63c8e 100644 --- a/cpukit/posix/src/prwlockrdlock.c +++ b/cpukit/posix/src/prwlockrdlock.c @@ -52,7 +52,7 @@ int pthread_rwlock_rdlock( _CORE_RWLock_Obtain_for_reading( &the_rwlock->RWLock, *rwlock, - TRUE, /* we are willing to wait forever */ + true, /* we are willing to wait forever */ 0, NULL ); diff --git a/cpukit/posix/src/prwlocktimedrdlock.c b/cpukit/posix/src/prwlocktimedrdlock.c index 545a7885e8..020bec6ac9 100644 --- a/cpukit/posix/src/prwlocktimedrdlock.c +++ b/cpukit/posix/src/prwlocktimedrdlock.c @@ -63,10 +63,10 @@ int pthread_rwlock_timedrdlock( case POSIX_ABSOLUTE_TIMEOUT_INVALID: case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST: case POSIX_ABSOLUTE_TIMEOUT_IS_NOW: - do_wait = FALSE; + do_wait = false; break; case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: - do_wait = TRUE; + do_wait = true; break; } diff --git a/cpukit/posix/src/prwlocktimedwrlock.c b/cpukit/posix/src/prwlocktimedwrlock.c index 1900c30f06..4b44e6934d 100644 --- a/cpukit/posix/src/prwlocktimedwrlock.c +++ b/cpukit/posix/src/prwlocktimedwrlock.c @@ -63,10 +63,10 @@ int pthread_rwlock_timedwrlock( case POSIX_ABSOLUTE_TIMEOUT_INVALID: case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST: case POSIX_ABSOLUTE_TIMEOUT_IS_NOW: - do_wait = FALSE; + do_wait = false; break; case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: - do_wait = TRUE; + do_wait = true; break; } diff --git a/cpukit/posix/src/prwlocktryrdlock.c b/cpukit/posix/src/prwlocktryrdlock.c index 5b5e0ce245..9e227f9fcb 100644 --- a/cpukit/posix/src/prwlocktryrdlock.c +++ b/cpukit/posix/src/prwlocktryrdlock.c @@ -52,7 +52,7 @@ int pthread_rwlock_tryrdlock( _CORE_RWLock_Obtain_for_reading( &the_rwlock->RWLock, *rwlock, - FALSE, /* do not wait for the rwlock */ + false, /* do not wait for the rwlock */ 0, NULL ); diff --git a/cpukit/posix/src/prwlocktrywrlock.c b/cpukit/posix/src/prwlocktrywrlock.c index 31e3469398..cf8c8c0fc3 100644 --- a/cpukit/posix/src/prwlocktrywrlock.c +++ b/cpukit/posix/src/prwlocktrywrlock.c @@ -52,7 +52,7 @@ int pthread_rwlock_trywrlock( _CORE_RWLock_Obtain_for_writing( &the_rwlock->RWLock, *rwlock, - FALSE, /* we are not willing to wait */ + false, /* we are not willing to wait */ 0, NULL ); diff --git a/cpukit/posix/src/prwlockwrlock.c b/cpukit/posix/src/prwlockwrlock.c index 300a255e88..d6294b030d 100644 --- a/cpukit/posix/src/prwlockwrlock.c +++ b/cpukit/posix/src/prwlockwrlock.c @@ -52,7 +52,7 @@ int pthread_rwlock_wrlock( _CORE_RWLock_Obtain_for_writing( &the_rwlock->RWLock, *rwlock, - TRUE, /* do not timeout -- wait forever */ + true, /* do not timeout -- wait forever */ 0, NULL ); diff --git a/cpukit/posix/src/psignalunblockthread.c b/cpukit/posix/src/psignalunblockthread.c index 40cb43a8a9..c7d1c80266 100644 --- a/cpukit/posix/src/psignalunblockthread.c +++ b/cpukit/posix/src/psignalunblockthread.c @@ -120,7 +120,7 @@ bool _POSIX_signals_Unblock_thread( } } else if ( the_thread->current_state == STATES_READY ) { if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) - _ISR_Signals_to_thread_executing = TRUE; + _ISR_Signals_to_thread_executing = true; } } return false; diff --git a/cpukit/posix/src/pspin.c b/cpukit/posix/src/pspin.c index f6d2ede38e..88dadf2cba 100644 --- a/cpukit/posix/src/pspin.c +++ b/cpukit/posix/src/pspin.c @@ -46,11 +46,11 @@ void _POSIX_Spinlock_Manager_initialization(void) Configuration_POSIX_API.maximum_spinlocks, /* maximum objects of this class */ sizeof( POSIX_Spinlock_Control ),/* size of this object's control block */ - TRUE, /* TRUE if the name is a string */ + true, /* true if the name is a string */ _POSIX_PATH_MAX /* 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/posix/src/pspinlock.c b/cpukit/posix/src/pspinlock.c index 364549f20c..845117a3e3 100644 --- a/cpukit/posix/src/pspinlock.c +++ b/cpukit/posix/src/pspinlock.c @@ -49,7 +49,7 @@ int pthread_spin_lock( switch ( location ) { case OBJECTS_LOCAL: - status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, TRUE, 0 ); + status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, true, 0 ); _Thread_Enable_dispatch(); return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); diff --git a/cpukit/posix/src/pspintrylock.c b/cpukit/posix/src/pspintrylock.c index ba72179470..7e66d88e8b 100644 --- a/cpukit/posix/src/pspintrylock.c +++ b/cpukit/posix/src/pspintrylock.c @@ -49,7 +49,7 @@ int pthread_spin_trylock( switch ( location ) { case OBJECTS_LOCAL: - status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, FALSE, 0 ); + status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, false, 0 ); _Thread_Enable_dispatch(); return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index eb84be8047..72354ae49a 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -44,7 +44,7 @@ */ const pthread_attr_t _POSIX_Threads_Default_attributes = { - TRUE, /* is_initialized */ + true, /* is_initialized */ NULL, /* stackaddr */ 0, /* stacksize -- will be adjusted to minimum */ PTHREAD_SCOPE_PROCESS, /* contentionscope */ @@ -91,7 +91,7 @@ void _POSIX_Threads_Sporadic_budget_TSR( if ( the_thread->resource_count == 0 || the_thread->current_priority > new_priority ) - _Thread_Change_priority( the_thread, new_priority, TRUE ); + _Thread_Change_priority( the_thread, new_priority, true ); ticks = _Timespec_To_ticks( &api->schedparam.ss_replenish_period ); @@ -128,7 +128,7 @@ void _POSIX_Threads_Sporadic_budget_callout( if ( the_thread->resource_count == 0 || the_thread->current_priority > new_priority ) - _Thread_Change_priority( the_thread, new_priority, TRUE ); + _Thread_Change_priority( the_thread, new_priority, true ); } /*PAGE @@ -323,7 +323,7 @@ void _POSIX_Threads_Manager_initialization(void) #if 0 if ( user_threads == NULL || number_of_initialization_threads == 0 ) - _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, TRUE, EINVAL ); + _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, EINVAL ); #endif _Objects_Initialize_information( @@ -334,11 +334,11 @@ void _POSIX_Threads_Manager_initialization(void) /* maximum objects of this class */ sizeof( Thread_Control ), /* size of this object's control block */ - TRUE, /* TRUE if names for this object are strings */ + true, /* true if names for this object are strings */ _POSIX_PATH_MAX /* 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/posix/src/pthreadattrdestroy.c b/cpukit/posix/src/pthreadattrdestroy.c index 9b5858ff60..60787322e7 100644 --- a/cpukit/posix/src/pthreadattrdestroy.c +++ b/cpukit/posix/src/pthreadattrdestroy.c @@ -27,6 +27,6 @@ int pthread_attr_destroy( if ( !attr || !attr->is_initialized ) return EINVAL; - attr->is_initialized = FALSE; + attr->is_initialized = false; return 0; } diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c index 69feb1e0c3..4ce8c2b2d1 100644 --- a/cpukit/posix/src/pthreadcreate.c +++ b/cpukit/posix/src/pthreadcreate.c @@ -164,9 +164,9 @@ int pthread_create( #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) - is_fp = TRUE; + is_fp = true; #else - is_fp = FALSE; + is_fp = false; #endif /* @@ -199,7 +199,7 @@ int pthread_create( _POSIX_Threads_Ensure_minimum_stack(the_attr->stacksize), is_fp, core_priority, - TRUE, /* preemptible */ + true, /* preemptible */ budget_algorithm, budget_callout, 0, /* isr level */ diff --git a/cpukit/posix/src/pthreadinitthreads.c b/cpukit/posix/src/pthreadinitthreads.c index 7d46ca4292..700b063ba4 100644 --- a/cpukit/posix/src/pthreadinitthreads.c +++ b/cpukit/posix/src/pthreadinitthreads.c @@ -82,7 +82,7 @@ void _POSIX_Threads_Initialize_user_threads_body(void) NULL ); if ( status ) - _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, TRUE, status ); + _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status ); } } diff --git a/cpukit/posix/src/pthreadkill.c b/cpukit/posix/src/pthreadkill.c index df3b146323..9b6bd408e0 100644 --- a/cpukit/posix/src/pthreadkill.c +++ b/cpukit/posix/src/pthreadkill.c @@ -66,7 +66,7 @@ int pthread_kill( 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; } _Thread_Enable_dispatch(); return 0; diff --git a/cpukit/posix/src/pthreadonce.c b/cpukit/posix/src/pthreadonce.c index b1371c8def..8e4a9dc6d8 100644 --- a/cpukit/posix/src/pthreadonce.c +++ b/cpukit/posix/src/pthreadonce.c @@ -34,8 +34,8 @@ int pthread_once( rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); if ( !once_control->init_executed ) { - once_control->is_initialized = TRUE; - once_control->init_executed = TRUE; + once_control->is_initialized = true; + once_control->init_executed = true; (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); diff --git a/cpukit/posix/src/pthreadsetschedparam.c b/cpukit/posix/src/pthreadsetschedparam.c index 4edd96cf68..8d5ffb1888 100644 --- a/cpukit/posix/src/pthreadsetschedparam.c +++ b/cpukit/posix/src/pthreadsetschedparam.c @@ -110,7 +110,7 @@ int pthread_setschedparam( _Thread_Change_priority( the_thread, the_thread->real_priority, - TRUE + true ); break; diff --git a/cpukit/posix/src/ptimer.c b/cpukit/posix/src/ptimer.c index 3ee6cf8aa5..6ded55c0a6 100644 --- a/cpukit/posix/src/ptimer.c +++ b/cpukit/posix/src/ptimer.c @@ -61,11 +61,11 @@ void _POSIX_Timer_Manager_initialization(void) /* maximum objects of this class */ sizeof( POSIX_Timer_Control ), /* size of this object's control block */ - TRUE, /* TRUE if names for this object are strings */ + true, /* true if names for this object are strings */ _POSIX_PATH_MAX /* 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/posix/src/rwlockattrdestroy.c b/cpukit/posix/src/rwlockattrdestroy.c index 21af023e40..aa4b6e3345 100644 --- a/cpukit/posix/src/rwlockattrdestroy.c +++ b/cpukit/posix/src/rwlockattrdestroy.c @@ -33,9 +33,9 @@ int pthread_rwlockattr_destroy( pthread_rwlockattr_t *attr ) { - if ( !attr || attr->is_initialized == FALSE ) + if ( !attr || attr->is_initialized == false ) return EINVAL; - attr->is_initialized = FALSE; + attr->is_initialized = false; return 0; } diff --git a/cpukit/posix/src/rwlockattrinit.c b/cpukit/posix/src/rwlockattrinit.c index 104c20c5b6..77f5992038 100644 --- a/cpukit/posix/src/rwlockattrinit.c +++ b/cpukit/posix/src/rwlockattrinit.c @@ -30,7 +30,7 @@ int pthread_rwlockattr_init( if ( !attr ) return EINVAL; - attr->is_initialized = TRUE; + attr->is_initialized = true; attr->process_shared = PTHREAD_PROCESS_PRIVATE; return 0; } diff --git a/cpukit/posix/src/semaphore.c b/cpukit/posix/src/semaphore.c index a896655197..e84bea87a4 100644 --- a/cpukit/posix/src/semaphore.c +++ b/cpukit/posix/src/semaphore.c @@ -49,11 +49,11 @@ void _POSIX_Semaphore_Manager_initialization(void) /* maximum objects of this class */ sizeof( POSIX_Semaphore_Control ), /* size of this object's control block */ - TRUE, /* TRUE if names for this object are strings */ + true, /* true if names for this object are strings */ _POSIX_PATH_MAX /* 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/posix/src/semaphorecreatesupp.c b/cpukit/posix/src/semaphorecreatesupp.c index 0ee09f5fa6..da4050024c 100644 --- a/cpukit/posix/src/semaphorecreatesupp.c +++ b/cpukit/posix/src/semaphorecreatesupp.c @@ -73,13 +73,13 @@ int _POSIX_Semaphore_Create_support( the_semaphore->process_shared = pshared; if ( name ) { - the_semaphore->named = TRUE; + the_semaphore->named = true; the_semaphore->open_count = 1; - the_semaphore->linked = TRUE; + the_semaphore->linked = true; } else { - the_semaphore->named = FALSE; + the_semaphore->named = false; the_semaphore->open_count = 0; - the_semaphore->linked = FALSE; + the_semaphore->linked = false; } the_sem_attr = &the_semaphore->Semaphore.Attributes; diff --git a/cpukit/posix/src/semdestroy.c b/cpukit/posix/src/semdestroy.c index fc7b31ea62..8a3b20c23f 100644 --- a/cpukit/posix/src/semdestroy.c +++ b/cpukit/posix/src/semdestroy.c @@ -47,7 +47,7 @@ int sem_destroy( * Undefined operation on a named semaphore. */ - if ( the_semaphore->named == TRUE ) { + if ( the_semaphore->named == true ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } diff --git a/cpukit/posix/src/semopen.c b/cpukit/posix/src/semopen.c index f3e857e37a..72920e4938 100644 --- a/cpukit/posix/src/semopen.c +++ b/cpukit/posix/src/semopen.c @@ -111,7 +111,7 @@ sem_t *sem_open( status =_POSIX_Semaphore_Create_support( name, - FALSE, /* not shared across processes */ + false, /* not shared across processes */ value, &the_semaphore ); diff --git a/cpukit/posix/src/semtrywait.c b/cpukit/posix/src/semtrywait.c index 473bf78852..fdf50be29d 100644 --- a/cpukit/posix/src/semtrywait.c +++ b/cpukit/posix/src/semtrywait.c @@ -38,5 +38,5 @@ int sem_trywait( sem_t *sem ) { - return _POSIX_Semaphore_Wait_support(sem, FALSE, THREAD_QUEUE_WAIT_FOREVER); + return _POSIX_Semaphore_Wait_support(sem, false, THREAD_QUEUE_WAIT_FOREVER); } diff --git a/cpukit/posix/src/semunlink.c b/cpukit/posix/src/semunlink.c index e1353105f8..864749c6ac 100644 --- a/cpukit/posix/src/semunlink.c +++ b/cpukit/posix/src/semunlink.c @@ -58,7 +58,7 @@ int sem_unlink( _Objects_Get_index( the_semaphore_id ) ); - the_semaphore->linked = FALSE; + the_semaphore->linked = false; _POSIX_Semaphore_Namespace_remove( the_semaphore ); _POSIX_Semaphore_Delete( the_semaphore ); diff --git a/cpukit/posix/src/semwait.c b/cpukit/posix/src/semwait.c index d9bb81e5ff..462c31ccda 100644 --- a/cpukit/posix/src/semwait.c +++ b/cpukit/posix/src/semwait.c @@ -38,5 +38,5 @@ int sem_wait( sem_t *sem ) { - return _POSIX_Semaphore_Wait_support( sem, TRUE, THREAD_QUEUE_WAIT_FOREVER ); + return _POSIX_Semaphore_Wait_support( sem, true, THREAD_QUEUE_WAIT_FOREVER ); } |