summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 11:42:19 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 11:42:19 +0000
commit4088d01d9f037d26365d462fa243561da8cd8cb1 (patch)
tree09c49db259194ed146ef51d086e6cb142e63fb1b /cpukit/libcsupport/src
parent2008-09-01 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-4088d01d9f037d26365d462fa243561da8cd8cb1.tar.bz2
Convert using "bool".
Diffstat (limited to 'cpukit/libcsupport/src')
-rw-r--r--cpukit/libcsupport/src/chdir.c2
-rw-r--r--cpukit/libcsupport/src/chmod.c2
-rw-r--r--cpukit/libcsupport/src/chown.c2
-rw-r--r--cpukit/libcsupport/src/free.c2
-rw-r--r--cpukit/libcsupport/src/link.c2
-rw-r--r--cpukit/libcsupport/src/lstat.c2
-rw-r--r--cpukit/libcsupport/src/malloc.c2
-rw-r--r--cpukit/libcsupport/src/malloc_deferred.c8
-rw-r--r--cpukit/libcsupport/src/malloc_initialize.c2
-rw-r--r--cpukit/libcsupport/src/malloc_p.h2
-rw-r--r--cpukit/libcsupport/src/mount.c10
-rw-r--r--cpukit/libcsupport/src/newlibc.c4
-rw-r--r--cpukit/libcsupport/src/open.c4
-rw-r--r--cpukit/libcsupport/src/readlink.c2
-rw-r--r--cpukit/libcsupport/src/readv.c8
-rw-r--r--cpukit/libcsupport/src/rmdir.c2
-rw-r--r--cpukit/libcsupport/src/stat.c2
-rw-r--r--cpukit/libcsupport/src/termios.c6
-rw-r--r--cpukit/libcsupport/src/unlink.c2
-rw-r--r--cpukit/libcsupport/src/unmount.c10
-rw-r--r--cpukit/libcsupport/src/utime.c2
-rw-r--r--cpukit/libcsupport/src/writev.c8
22 files changed, 43 insertions, 43 deletions
diff --git a/cpukit/libcsupport/src/chdir.c b/cpukit/libcsupport/src/chdir.c
index b508ea20ed..fb6f7e6497 100644
--- a/cpukit/libcsupport/src/chdir.c
+++ b/cpukit/libcsupport/src/chdir.c
@@ -35,7 +35,7 @@ int chdir(
*/
result = rtems_filesystem_evaluate_path(
- pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, TRUE );
+ pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
if ( result != 0 )
return -1;
diff --git a/cpukit/libcsupport/src/chmod.c b/cpukit/libcsupport/src/chmod.c
index 1007be6b26..a19302517d 100644
--- a/cpukit/libcsupport/src/chmod.c
+++ b/cpukit/libcsupport/src/chmod.c
@@ -34,7 +34,7 @@ int chmod(
rtems_filesystem_location_info_t loc;
int result;
- status = rtems_filesystem_evaluate_path( path, 0, &loc, TRUE );
+ status = rtems_filesystem_evaluate_path( path, 0, &loc, true );
if ( status != 0 )
return -1;
diff --git a/cpukit/libcsupport/src/chown.c b/cpukit/libcsupport/src/chown.c
index 8ac0a91979..4784315d57 100644
--- a/cpukit/libcsupport/src/chown.c
+++ b/cpukit/libcsupport/src/chown.c
@@ -33,7 +33,7 @@ int chown(
rtems_filesystem_location_info_t loc;
int result;
- if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, TRUE ) )
+ if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, true ) )
return -1;
if ( !loc.ops->chown_h ) {
diff --git a/cpukit/libcsupport/src/free.c b/cpukit/libcsupport/src/free.c
index a4b1917ec2..e7d92dd1aa 100644
--- a/cpukit/libcsupport/src/free.c
+++ b/cpukit/libcsupport/src/free.c
@@ -29,7 +29,7 @@ void free(
return;
#if defined(RTEMS_HEAP_DEBUG)
- _Protected_heap_Walk( &RTEMS_Malloc_Heap, 0, FALSE );
+ _Protected_heap_Walk( &RTEMS_Malloc_Heap, 0, false );
#endif
/*
diff --git a/cpukit/libcsupport/src/link.c b/cpukit/libcsupport/src/link.c
index 217342e844..c105a33742 100644
--- a/cpukit/libcsupport/src/link.c
+++ b/cpukit/libcsupport/src/link.c
@@ -37,7 +37,7 @@ int link(
* Get the node we are linking to.
*/
- result = rtems_filesystem_evaluate_path( existing, 0, &existing_loc, TRUE );
+ result = rtems_filesystem_evaluate_path( existing, 0, &existing_loc, true );
if ( result != 0 )
return -1;
diff --git a/cpukit/libcsupport/src/lstat.c b/cpukit/libcsupport/src/lstat.c
index d51296cbe9..f034f4aa76 100644
--- a/cpukit/libcsupport/src/lstat.c
+++ b/cpukit/libcsupport/src/lstat.c
@@ -17,6 +17,6 @@
#define _STAT_NAME lstat
#define _STAT_R_NAME _lstat_r
-#define _STAT_FOLLOW_LINKS FALSE
+#define _STAT_FOLLOW_LINKS false
#include "stat.c"
diff --git a/cpukit/libcsupport/src/malloc.c b/cpukit/libcsupport/src/malloc.c
index 60a8793f8d..fad15520bc 100644
--- a/cpukit/libcsupport/src/malloc.c
+++ b/cpukit/libcsupport/src/malloc.c
@@ -52,7 +52,7 @@ void *malloc(
* Walk the heap and verify its integrity
*/
#if defined(RTEMS_HEAP_DEBUG)
- _Protected_heap_Walk( &RTEMS_Malloc_Heap, 0, FALSE );
+ _Protected_heap_Walk( &RTEMS_Malloc_Heap, 0, false );
#endif
#if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)
diff --git a/cpukit/libcsupport/src/malloc_deferred.c b/cpukit/libcsupport/src/malloc_deferred.c
index 923b0d980d..4289a899bc 100644
--- a/cpukit/libcsupport/src/malloc_deferred.c
+++ b/cpukit/libcsupport/src/malloc_deferred.c
@@ -24,15 +24,15 @@
rtems_chain_control RTEMS_Malloc_GC_list;
-boolean malloc_is_system_state_OK(void)
+bool malloc_is_system_state_OK(void)
{
if ( _Thread_Dispatch_disable_level > 0 )
- return FALSE;
+ return false;
if ( _ISR_Nest_level > 0 )
- return FALSE;
+ return false;
- return TRUE;
+ return true;
}
void malloc_deferred_frees_initialize(void)
diff --git a/cpukit/libcsupport/src/malloc_initialize.c b/cpukit/libcsupport/src/malloc_initialize.c
index 3ad7d69765..6c466b6955 100644
--- a/cpukit/libcsupport/src/malloc_initialize.c
+++ b/cpukit/libcsupport/src/malloc_initialize.c
@@ -93,7 +93,7 @@ void RTEMS_Malloc_Initialize(
rtems_fatal_error_occurred( status );
#if defined(RTEMS_HEAP_DEBUG)
- if ( _Protected_heap_Walk( &RTEMS_Malloc_Heap, 0, FALSE ) ) {
+ if ( _Protected_heap_Walk( &RTEMS_Malloc_Heap, 0, false ) ) {
printk( "Malloc heap not initialized correctly\n" );
rtems_print_buffer( start, 32 );
printk( "\n" );
diff --git a/cpukit/libcsupport/src/malloc_p.h b/cpukit/libcsupport/src/malloc_p.h
index 1bca6e0d18..961acc4e80 100644
--- a/cpukit/libcsupport/src/malloc_p.h
+++ b/cpukit/libcsupport/src/malloc_p.h
@@ -49,7 +49,7 @@ extern rtems_malloc_statistics_t rtems_malloc_statistics;
/*
* Process deferred free operations
*/
-boolean malloc_is_system_state_OK(void);
+bool malloc_is_system_state_OK(void);
void malloc_deferred_frees_initialize(void);
void malloc_deferred_frees_process(void);
void malloc_deferred_free(void *);
diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c
index cc0e3ef44c..04264ad234 100644
--- a/cpukit/libcsupport/src/mount.c
+++ b/cpukit/libcsupport/src/mount.c
@@ -40,7 +40,7 @@ rtems_chain_control rtems_filesystem_mount_table_control;
*/
int init_fs_mount_table( void );
-static int Is_node_fs_root(
+static bool Is_node_fs_root(
rtems_filesystem_location_info_t *loc
);
@@ -139,7 +139,7 @@ int mount(
if ( mount_point ) {
if ( rtems_filesystem_evaluate_path(
- mount_point, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE ) == -1 )
+ mount_point, RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 )
goto cleanup_and_bail;
loc_to_free = &loc;
@@ -271,7 +271,7 @@ int init_fs_mount_table(void)
*
*/
-static int Is_node_fs_root(
+static bool Is_node_fs_root(
rtems_filesystem_location_info_t *loc
)
{
@@ -287,7 +287,7 @@ static int Is_node_fs_root(
the_node = the_node->next ) {
the_mount_entry = (rtems_filesystem_mount_table_entry_t *) the_node;
if ( the_mount_entry->mt_fs_root.node_access == loc->node_access )
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
diff --git a/cpukit/libcsupport/src/newlibc.c b/cpukit/libcsupport/src/newlibc.c
index 378cc255ec..79c1dc7dd4 100644
--- a/cpukit/libcsupport/src/newlibc.c
+++ b/cpukit/libcsupport/src/newlibc.c
@@ -84,10 +84,10 @@ bool libc_create_hook(
_REENT_INIT_PTR((ptr)); /* GCC extension: structure constants */
creating_task->libc_reent = ptr;
- return TRUE;
+ return true;
}
else
- return FALSE;
+ return false;
}
/*
diff --git a/cpukit/libcsupport/src/open.c b/cpukit/libcsupport/src/open.c
index a67680a031..e29427e568 100644
--- a/cpukit/libcsupport/src/open.c
+++ b/cpukit/libcsupport/src/open.c
@@ -111,7 +111,7 @@ int open(
*/
status = rtems_filesystem_evaluate_path(
- pathname, eval_flags, &loc, TRUE );
+ pathname, eval_flags, &loc, true );
if ( status == -1 ) {
if ( errno != ENOENT ) {
@@ -133,7 +133,7 @@ int open(
}
/* Sanity check to see if the file name exists after the mknod() */
- status = rtems_filesystem_evaluate_path( pathname, 0x0, &loc, TRUE );
+ status = rtems_filesystem_evaluate_path( pathname, 0x0, &loc, true );
if ( status != 0 ) { /* The file did not exist */
rc = EACCES;
goto done;
diff --git a/cpukit/libcsupport/src/readlink.c b/cpukit/libcsupport/src/readlink.c
index 238830a187..957e27d1c8 100644
--- a/cpukit/libcsupport/src/readlink.c
+++ b/cpukit/libcsupport/src/readlink.c
@@ -30,7 +30,7 @@ ssize_t readlink(
if (!buf)
rtems_set_errno_and_return_minus_one( EFAULT );
- result = rtems_filesystem_evaluate_path( pathname, 0, &loc, FALSE );
+ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false );
if ( result != 0 )
return -1;
diff --git a/cpukit/libcsupport/src/readv.c b/cpukit/libcsupport/src/readv.c
index 08f0b9c52e..7b77c11fe2 100644
--- a/cpukit/libcsupport/src/readv.c
+++ b/cpukit/libcsupport/src/readv.c
@@ -35,7 +35,7 @@ ssize_t readv(
int v;
int bytes;
rtems_libio_t *iop;
- boolean all_zeros;
+ bool all_zeros;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
@@ -67,7 +67,7 @@ ssize_t readv(
* that we do not do anything if there is an argument error.
*/
- all_zeros = TRUE;
+ all_zeros = true;
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ssize_t old;
@@ -84,7 +84,7 @@ ssize_t readv(
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
- all_zeros = FALSE;
+ all_zeros = false;
}
/*
@@ -92,7 +92,7 @@ ssize_t readv(
* OpenGroup didn't address this case as they did with writev(),
* we will handle it the same way for symmetry.
*/
- if ( all_zeros == TRUE ) {
+ if ( all_zeros == true ) {
return 0;
}
diff --git a/cpukit/libcsupport/src/rmdir.c b/cpukit/libcsupport/src/rmdir.c
index 61d6390840..4b1de71c8a 100644
--- a/cpukit/libcsupport/src/rmdir.c
+++ b/cpukit/libcsupport/src/rmdir.c
@@ -35,7 +35,7 @@ int rmdir(
* Get the node where we wish to go.
*/
- result = rtems_filesystem_evaluate_path( pathname, 0, &loc, FALSE );
+ result = rtems_filesystem_evaluate_path( pathname, 0, &loc, false );
if ( result != 0 )
return -1;
diff --git a/cpukit/libcsupport/src/stat.c b/cpukit/libcsupport/src/stat.c
index a39deda79e..c2f2badf22 100644
--- a/cpukit/libcsupport/src/stat.c
+++ b/cpukit/libcsupport/src/stat.c
@@ -25,7 +25,7 @@
#ifndef _STAT_NAME
#define _STAT_NAME stat
#define _STAT_R_NAME _stat_r
-#define _STAT_FOLLOW_LINKS TRUE
+#define _STAT_FOLLOW_LINKS true
#endif
diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c
index c6033ed388..6898f4493d 100644
--- a/cpukit/libcsupport/src/termios.c
+++ b/cpukit/libcsupport/src/termios.c
@@ -1144,7 +1144,7 @@ rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
unsigned int newTail;
char c;
int dropped = 0;
- boolean flow_rcv = FALSE; /* TRUE, if flow control char received */
+ bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
@@ -1180,13 +1180,13 @@ rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
}
- flow_rcv = TRUE;
+ flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
/* VSTART received */
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
- flow_rcv = TRUE;
+ flow_rcv = true;
}
}
if (flow_rcv) {
diff --git a/cpukit/libcsupport/src/unlink.c b/cpukit/libcsupport/src/unlink.c
index b4fb6cbab1..a441d4d6ec 100644
--- a/cpukit/libcsupport/src/unlink.c
+++ b/cpukit/libcsupport/src/unlink.c
@@ -31,7 +31,7 @@ int unlink(
* Get the node to be unlinked.
*/
- result = rtems_filesystem_evaluate_path( path, 0, &loc, FALSE );
+ result = rtems_filesystem_evaluate_path( path, 0, &loc, false );
if ( result != 0 )
return -1;
diff --git a/cpukit/libcsupport/src/unmount.c b/cpukit/libcsupport/src/unmount.c
index 422e89ea6e..e4ee7a74a4 100644
--- a/cpukit/libcsupport/src/unmount.c
+++ b/cpukit/libcsupport/src/unmount.c
@@ -43,7 +43,7 @@ int search_mt_for_mount_point(
rtems_filesystem_location_info_t *location_of_mount_point
);
-rtems_boolean rtems_filesystem_nodes_equal(
+bool rtems_filesystem_nodes_equal(
const rtems_filesystem_location_info_t *loc1,
const rtems_filesystem_location_info_t *loc2
){
@@ -63,7 +63,7 @@ rtems_boolean rtems_filesystem_nodes_equal(
* the root node of the file system being unmounted.
*/
-rtems_boolean file_systems_below_this_mountpoint(
+bool file_systems_below_this_mountpoint(
const char *path,
rtems_filesystem_location_info_t *fs_root_loc,
rtems_filesystem_mount_table_entry_t *fs_to_unmount
@@ -82,11 +82,11 @@ rtems_boolean file_systems_below_this_mountpoint(
the_node = the_node->next ) {
the_mount_entry = ( rtems_filesystem_mount_table_entry_t * )the_node;
if (the_mount_entry->mt_point_node.mt_entry == fs_root_loc->mt_entry ) {
- return TRUE;
+ return true;
}
}
- return FALSE;
+ return false;
}
/*
@@ -113,7 +113,7 @@ int unmount(
* The mount entry that is being refered to.
*/
- if ( rtems_filesystem_evaluate_path( path, 0x0, &loc, TRUE ) )
+ if ( rtems_filesystem_evaluate_path( path, 0x0, &loc, true ) )
return -1;
mt_entry = loc.mt_entry;
diff --git a/cpukit/libcsupport/src/utime.c b/cpukit/libcsupport/src/utime.c
index 3af884a5bb..5bd5060549 100644
--- a/cpukit/libcsupport/src/utime.c
+++ b/cpukit/libcsupport/src/utime.c
@@ -30,7 +30,7 @@ int utime(
rtems_filesystem_location_info_t temp_loc;
int result;
- if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, TRUE ) )
+ if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, true ) )
return -1;
if ( !temp_loc.ops->utime_h ){
diff --git a/cpukit/libcsupport/src/writev.c b/cpukit/libcsupport/src/writev.c
index c032f9f6bc..88d495da56 100644
--- a/cpukit/libcsupport/src/writev.c
+++ b/cpukit/libcsupport/src/writev.c
@@ -36,7 +36,7 @@ ssize_t writev(
int bytes;
rtems_libio_t *iop;
ssize_t old;
- boolean all_zeros;
+ bool all_zeros;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
@@ -73,7 +73,7 @@ ssize_t writev(
* The variable "all_zero" is used as an early exit point before
* entering the write loop.
*/
- all_zeros = TRUE;
+ all_zeros = true;
for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {
if ( !iov[v].iov_base )
@@ -83,7 +83,7 @@ ssize_t writev(
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
- all_zeros = FALSE;
+ all_zeros = false;
/* check for wrap */
old = total;
@@ -95,7 +95,7 @@ ssize_t writev(
/*
* A writev with all zeros is supposed to have no effect per OpenGroup.
*/
- if ( all_zeros == TRUE ) {
+ if ( all_zeros == true ) {
return 0;
}