diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-11 14:12:11 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-11 14:12:11 -0500 |
commit | 6c2de6052d450fa36338ed0c082647b9d535a928 (patch) | |
tree | cf352d1305edc992fceda6c7b75ab3658b982834 /testsuites/psxtests/psxfile01 | |
parent | libtmtests - Eliminate missing prototype warnings (diff) | |
download | rtems-6c2de6052d450fa36338ed0c082647b9d535a928.tar.bz2 |
psxtests - Eliminate missing prototype warnings
Diffstat (limited to 'testsuites/psxtests/psxfile01')
-rw-r--r-- | testsuites/psxtests/psxfile01/main.c | 8 | ||||
-rw-r--r-- | testsuites/psxtests/psxfile01/test.c | 15 | ||||
-rw-r--r-- | testsuites/psxtests/psxfile01/test_cat.c | 13 | ||||
-rw-r--r-- | testsuites/psxtests/psxfile01/test_extend.c | 14 | ||||
-rw-r--r-- | testsuites/psxtests/psxfile01/test_write.c | 14 |
5 files changed, 45 insertions, 19 deletions
diff --git a/testsuites/psxtests/psxfile01/main.c b/testsuites/psxtests/psxfile01/main.c index 9314a65aa9..f5a5a3edf1 100644 --- a/testsuites/psxtests/psxfile01/main.c +++ b/testsuites/psxtests/psxfile01/main.c @@ -1,7 +1,5 @@ /* - * Simple test program -- simplified version of sample test hello. - * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -18,7 +16,9 @@ #include <bsp.h> #include <pmacros.h> -void test_main( void ); +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument ignored); +void test_main(void); rtems_task Init( rtems_task_argument ignored diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c index 6ce62c65c8..20a079277e 100644 --- a/testsuites/psxtests/psxfile01/test.c +++ b/testsuites/psxtests/psxfile01/test.c @@ -1,4 +1,6 @@ -/* +/** + * @file + * * Simple test program to exercise some of the basic functionality of * POSIX Files and Directories Support. * @@ -9,8 +11,10 @@ * / * /dev * /dev/XXX [where XXX includes at least console] - * - * COPYRIGHT (c) 1989-2011. + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -40,7 +44,11 @@ #include "primode.h" +/* forward declarations to avoid warnings */ void test_case_reopen_append(void); +void dump_statbuf(struct stat *buf); +void stat_a_file(const char *file); +int test_main(void); char test_write_buffer[ 1024 ]; rtems_filesystem_operations_table IMFS_ops_no_evalformake; @@ -70,7 +78,6 @@ void test_extend( /* * dump_statbuf */ - void dump_statbuf( struct stat *buf ) { int major1; diff --git a/testsuites/psxtests/psxfile01/test_cat.c b/testsuites/psxtests/psxfile01/test_cat.c index a828f8a227..ac291026e0 100644 --- a/testsuites/psxtests/psxfile01/test_cat.c +++ b/testsuites/psxtests/psxfile01/test_cat.c @@ -1,8 +1,12 @@ -/* +/** + * @file + * * A test support function which performs a crude version of * "cat" so you can look at specific parts of a file. - * - * COPYRIGHT (c) 1989-2009. + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -26,6 +30,9 @@ #include <tmacros.h> +/* forward declarations to avoid warnings */ +void test_cat(char *file, int offset_arg, int length); + /* * test_cat routine */ diff --git a/testsuites/psxtests/psxfile01/test_extend.c b/testsuites/psxtests/psxfile01/test_extend.c index 850b10c788..c89bf20d73 100644 --- a/testsuites/psxtests/psxfile01/test_extend.c +++ b/testsuites/psxtests/psxfile01/test_extend.c @@ -1,12 +1,16 @@ -/* +/** + * @file + * * A test support function which extends the file to the specified * length. This handles the implied open(), lseek(), write(), and close() * operations. * * The defined behavior is a seek() followed by a write() extends the file * and zero fills the new length part. - * - * COPYRIGHT (c) 1989-2009. + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -30,10 +34,12 @@ #include <pmacros.h> +/* forward declarations to avoid warnings */ +void test_extend(char *file, off_t offset); + /* * test_extend routine */ - void test_extend( char *file, off_t offset diff --git a/testsuites/psxtests/psxfile01/test_write.c b/testsuites/psxtests/psxfile01/test_write.c index 472d5a950f..3c9344af93 100644 --- a/testsuites/psxtests/psxfile01/test_write.c +++ b/testsuites/psxtests/psxfile01/test_write.c @@ -1,8 +1,12 @@ -/* +/** + * @file + * * A test support function which performs a write() and * handles implied open(), lseek(), write(), and close() operations. - * - * COPYRIGHT (c) 1989-2009. + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -25,10 +29,12 @@ #include <pmacros.h> +/* forward declarations to avoid warnings */ +void test_write(char *file, off_t offset, char *buffer); + /* * test_write routine */ - void test_write( char *file, off_t offset, |