From 4c86e3d8bee2680c9be999b4627b19438f1ae728 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 11 May 2012 12:20:47 -0500 Subject: libtmtests - Eliminate missing prototype warnings --- testsuites/libtests/block01/init.c | 3 ++ testsuites/libtests/block02/init.c | 3 ++ testsuites/libtests/block03/init.c | 3 ++ testsuites/libtests/block04/init.c | 3 ++ testsuites/libtests/block05/init.c | 3 ++ testsuites/libtests/block06/init.c | 3 ++ testsuites/libtests/block07/init.c | 3 ++ testsuites/libtests/block09/init.c | 3 ++ testsuites/libtests/block10/init.c | 3 ++ testsuites/libtests/block11/init.c | 3 ++ testsuites/libtests/bspcmdline01/init.c | 7 ++- testsuites/libtests/devfs01/init.c | 5 ++- testsuites/libtests/devfs02/init.c | 5 ++- testsuites/libtests/devfs03/init.c | 5 ++- testsuites/libtests/devfs04/init.c | 5 ++- testsuites/libtests/deviceio01/init.c | 5 ++- testsuites/libtests/dumpbuf01/init.c | 9 ++-- testsuites/libtests/flashdisk01/init.c | 3 ++ testsuites/libtests/ftp01/init.c | 3 ++ testsuites/libtests/gxx01/init.c | 11 ++++- testsuites/libtests/malloc02/init.c | 6 ++- testsuites/libtests/malloc03/init.c | 5 ++- testsuites/libtests/malloc05/init.c | 5 ++- testsuites/libtests/mouse01/init.c | 15 ++++++- testsuites/libtests/rbheap01/init.c | 3 ++ testsuites/libtests/stackchk/blow.c | 15 +++++-- testsuites/libtests/stackchk01/init.c | 5 ++- testsuites/libtests/stringto01/init.c | 5 ++- .../libtests/stringto01/stringto_test_template.h | 5 ++- testsuites/libtests/syscall01/init.c | 3 ++ testsuites/libtests/tar01/init.c | 7 ++- testsuites/libtests/tar02/init.c | 6 ++- testsuites/libtests/tar03/init.c | 6 ++- testsuites/libtests/termios/init.c | 51 +++++++++++++++------- testsuites/libtests/termios01/termios_testdriver.c | 29 ++++++++++-- testsuites/libtests/termios02/init.c | 5 ++- testsuites/libtests/termios03/init.c | 10 ++++- .../libtests/termios03/termios_testdriver_polled.c | 23 ++++++++-- testsuites/libtests/termios04/init.c | 10 ++++- .../libtests/termios04/termios_testdriver_intr.c | 34 +++++++++++++-- testsuites/libtests/termios05/init.c | 10 ++++- testsuites/libtests/termios06/init.c | 15 ++++++- testsuites/libtests/termios06/test_pppd.c | 5 ++- testsuites/libtests/termios07/init.c | 10 ++++- testsuites/libtests/termios08/init.c | 15 +++++-- testsuites/libtests/tztest/init.c | 14 ++++-- 46 files changed, 341 insertions(+), 64 deletions(-) (limited to 'testsuites/libtests') diff --git a/testsuites/libtests/block01/init.c b/testsuites/libtests/block01/init.c index 3c1eb4ed19..76f345cf7d 100644 --- a/testsuites/libtests/block01/init.c +++ b/testsuites/libtests/block01/init.c @@ -33,6 +33,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL) #define ASSERT_SC_EQ(sc, sc_expected) rtems_test_assert((sc) == (sc_expected)) diff --git a/testsuites/libtests/block02/init.c b/testsuites/libtests/block02/init.c index 58b78d3e47..5f89700b60 100644 --- a/testsuites/libtests/block02/init.c +++ b/testsuites/libtests/block02/init.c @@ -31,6 +31,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL) #define PRIORITY_INIT 10 diff --git a/testsuites/libtests/block03/init.c b/testsuites/libtests/block03/init.c index 2cfb8060a8..802d8d02d8 100644 --- a/testsuites/libtests/block03/init.c +++ b/testsuites/libtests/block03/init.c @@ -31,6 +31,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL) #define PRIORITY_INIT 10 diff --git a/testsuites/libtests/block04/init.c b/testsuites/libtests/block04/init.c index ff7b204d2b..98d49c0609 100644 --- a/testsuites/libtests/block04/init.c +++ b/testsuites/libtests/block04/init.c @@ -31,6 +31,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL) #define PRIORITY_INIT 10 diff --git a/testsuites/libtests/block05/init.c b/testsuites/libtests/block05/init.c index 8af26fe937..38c7d6dbfe 100644 --- a/testsuites/libtests/block05/init.c +++ b/testsuites/libtests/block05/init.c @@ -32,6 +32,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL) #define PRIORITY_INIT 1 diff --git a/testsuites/libtests/block06/init.c b/testsuites/libtests/block06/init.c index 53f488838a..b6e6bce245 100644 --- a/testsuites/libtests/block06/init.c +++ b/testsuites/libtests/block06/init.c @@ -29,6 +29,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define BDBUF_DISKS 2 #define BDBUF_SIZE 1024 diff --git a/testsuites/libtests/block07/init.c b/testsuites/libtests/block07/init.c index 969fd36207..9ae38ad06f 100644 --- a/testsuites/libtests/block07/init.c +++ b/testsuites/libtests/block07/init.c @@ -34,6 +34,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL) #define PRIORITY_INIT 1 diff --git a/testsuites/libtests/block09/init.c b/testsuites/libtests/block09/init.c index b7426c36c2..04b88787f8 100644 --- a/testsuites/libtests/block09/init.c +++ b/testsuites/libtests/block09/init.c @@ -31,6 +31,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define ASSERT_SC(sc) assert((sc) == RTEMS_SUCCESSFUL) #define BLOCK_SIZE sizeof(char) diff --git a/testsuites/libtests/block10/init.c b/testsuites/libtests/block10/init.c index 80ca98e5ae..1fcc1a9af0 100644 --- a/testsuites/libtests/block10/init.c +++ b/testsuites/libtests/block10/init.c @@ -30,6 +30,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define ASSERT_SC(sc) assert((sc) == RTEMS_SUCCESSFUL) #define PRIORITY_HIGH 1 diff --git a/testsuites/libtests/block11/init.c b/testsuites/libtests/block11/init.c index 31273313b5..d29e8ab0b4 100644 --- a/testsuites/libtests/block11/init.c +++ b/testsuites/libtests/block11/init.c @@ -37,6 +37,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL) #define CHUNK_MAX 32U diff --git a/testsuites/libtests/bspcmdline01/init.c b/testsuites/libtests/bspcmdline01/init.c index 7bc8d08b38..fbffecbdfe 100644 --- a/testsuites/libtests/bspcmdline01/init.c +++ b/testsuites/libtests/bspcmdline01/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2009. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -14,6 +14,11 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void test_errors(void); +void test_search(bool null_expected, const char *cmdline, const char *param); + extern const char *bsp_boot_cmdline; void test_errors(void) diff --git a/testsuites/libtests/devfs01/init.c b/testsuites/libtests/devfs01/init.c index 697847bc7f..91f712f314 100644 --- a/testsuites/libtests/devfs01/init.c +++ b/testsuites/libtests/devfs01/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -16,6 +16,9 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument argument ) diff --git a/testsuites/libtests/devfs02/init.c b/testsuites/libtests/devfs02/init.c index 84a8ff9b3c..47a70a8a50 100644 --- a/testsuites/libtests/devfs02/init.c +++ b/testsuites/libtests/devfs02/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * Modifications to support reference counting in the file system are @@ -26,6 +26,9 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument argument ) diff --git a/testsuites/libtests/devfs03/init.c b/testsuites/libtests/devfs03/init.c index 30bd88ab55..0f3155bcff 100644 --- a/testsuites/libtests/devfs03/init.c +++ b/testsuites/libtests/devfs03/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * Modifications to support reference counting in the file system are @@ -23,6 +23,9 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument argument ) diff --git a/testsuites/libtests/devfs04/init.c b/testsuites/libtests/devfs04/init.c index acdafd5b8a..ecf560fcea 100644 --- a/testsuites/libtests/devfs04/init.c +++ b/testsuites/libtests/devfs04/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -22,6 +22,9 @@ #include "test_driver.h" #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument argument ) diff --git a/testsuites/libtests/deviceio01/init.c b/testsuites/libtests/deviceio01/init.c index 445afd9697..e73e74bcfb 100644 --- a/testsuites/libtests/deviceio01/init.c +++ b/testsuites/libtests/deviceio01/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -22,6 +22,9 @@ #include "test_driver.h" #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument argument ) diff --git a/testsuites/libtests/dumpbuf01/init.c b/testsuites/libtests/dumpbuf01/init.c index 1c86502ba3..e14375705f 100644 --- a/testsuites/libtests/dumpbuf01/init.c +++ b/testsuites/libtests/dumpbuf01/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -15,8 +15,11 @@ #include "test_support.h" #include -unsigned char Buffer[] = -"ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890\n"; +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void do_test(int length); + +unsigned char Buffer[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890\n"; void do_test( int length diff --git a/testsuites/libtests/flashdisk01/init.c b/testsuites/libtests/flashdisk01/init.c index d9f26f38c2..5ca6614e0c 100644 --- a/testsuites/libtests/flashdisk01/init.c +++ b/testsuites/libtests/flashdisk01/init.c @@ -32,6 +32,9 @@ #include "test-file-system.h" +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define FLASHDISK_CONFIG_COUNT 1 #define FLASHDISK_DEVICE_COUNT 1 diff --git a/testsuites/libtests/ftp01/init.c b/testsuites/libtests/ftp01/init.c index 4b4e8e7b09..c60cc56ee1 100644 --- a/testsuites/libtests/ftp01/init.c +++ b/testsuites/libtests/ftp01/init.c @@ -27,6 +27,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + struct rtems_bsdnet_config rtems_bsdnet_config; #define FTP_WORKER_TASK_COUNT 2 diff --git a/testsuites/libtests/gxx01/init.c b/testsuites/libtests/gxx01/init.c index c8bc16acab..1b782feb25 100644 --- a/testsuites/libtests/gxx01/init.c +++ b/testsuites/libtests/gxx01/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -15,6 +15,15 @@ #include "test_support.h" #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void test_recursive_mutex(void); +void test_mutex(void); +void once_function(void); +void test_once(void); +void key_dtor(void *ptr); +void test_key(void); + void test_recursive_mutex(void) { int sc; diff --git a/testsuites/libtests/malloc02/init.c b/testsuites/libtests/malloc02/init.c index 39e379b9ce..f2fd55ef64 100644 --- a/testsuites/libtests/malloc02/init.c +++ b/testsuites/libtests/malloc02/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2009. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -13,6 +13,10 @@ #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +rtems_timer_service_routine test_operation_from_isr(rtems_id timer, void *arg); + volatile bool operation_performed_from_tsr; void *Pointer1; diff --git a/testsuites/libtests/malloc03/init.c b/testsuites/libtests/malloc03/init.c index cc55912734..0aa2545567 100644 --- a/testsuites/libtests/malloc03/init.c +++ b/testsuites/libtests/malloc03/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -14,6 +14,9 @@ #include #include "test_support.h" +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument argument ) diff --git a/testsuites/libtests/malloc05/init.c b/testsuites/libtests/malloc05/init.c index 80032c0138..f60377fcb1 100644 --- a/testsuites/libtests/malloc05/init.c +++ b/testsuites/libtests/malloc05/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -15,6 +15,9 @@ #include "test_support.h" #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument argument ) diff --git a/testsuites/libtests/mouse01/init.c b/testsuites/libtests/mouse01/init.c index 5950f92def..78010f1bd6 100644 --- a/testsuites/libtests/mouse01/init.c +++ b/testsuites/libtests/mouse01/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2011. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -27,6 +27,19 @@ #define UID_MESSAGE_COUNT 10 +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +bool enqueue_next_action( + const unsigned char *actions, + size_t max, + size_t to_enqueue +); +void open_it(void); +void register_it(void); +void printf_uid_message(struct MW_UID_MESSAGE *uid); +void receive_uid_message(void); +void close_it(void); + extern const char *Mouse_Type_Long; extern const char *Mouse_Type_Short; extern const unsigned char Mouse_Actions[]; diff --git a/testsuites/libtests/rbheap01/init.c b/testsuites/libtests/rbheap01/init.c index ce180d8541..f6daa55a1f 100644 --- a/testsuites/libtests/rbheap01/init.c +++ b/testsuites/libtests/rbheap01/init.c @@ -21,6 +21,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + #define PAGE_SIZE 1024 #define PAGE_COUNT 8 diff --git a/testsuites/libtests/stackchk/blow.c b/testsuites/libtests/stackchk/blow.c index 12162420a2..5bcc8eea4a 100644 --- a/testsuites/libtests/stackchk/blow.c +++ b/testsuites/libtests/stackchk/blow.c @@ -3,7 +3,7 @@ * This set of three tasks do some simple task switching for about * 15 seconds and then call a routine to "blow the stack". * - * 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,14 +18,21 @@ #include #include -void b(void) {} +/* forward declarations to avoid warnings */ +void b(void); +void blow_stack(void); -void blow_stack( void ) +void b(void) +{ +} + +void blow_stack(void) { volatile uint32_t *low, *high; unsigned char *area; -b(); + b(); + /* * Destroy the first and last 16 bytes of our stack... Hope it * does not cause problems :) diff --git a/testsuites/libtests/stackchk01/init.c b/testsuites/libtests/stackchk01/init.c index deed8f1f46..f54f1af4a3 100644 --- a/testsuites/libtests/stackchk01/init.c +++ b/testsuites/libtests/stackchk01/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2009. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -14,6 +14,9 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument argument ) diff --git a/testsuites/libtests/stringto01/init.c b/testsuites/libtests/stringto01/init.c index 005d3656d1..283e0d8401 100644 --- a/testsuites/libtests/stringto01/init.c +++ b/testsuites/libtests/stringto01/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2009. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -18,6 +18,9 @@ #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + #define __STRING(x) #x /* stringify without expanding x */ #define __XSTRING(x) __STRING(x) /* expand x, then stringify */ diff --git a/testsuites/libtests/stringto01/stringto_test_template.h b/testsuites/libtests/stringto01/stringto_test_template.h index 1b951f72bb..7b6ee52a19 100644 --- a/testsuites/libtests/stringto01/stringto_test_template.h +++ b/testsuites/libtests/stringto01/stringto_test_template.h @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2009. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -23,6 +23,9 @@ #error "what type are we testing?" #endif +/* forward declarations to avoid warnings */ +void TEST_STRING_TO_NAME(void); + void TEST_STRING_TO_NAME(void) { TEST_STRING_TO_TYPE value; diff --git a/testsuites/libtests/syscall01/init.c b/testsuites/libtests/syscall01/init.c index b438a9306c..8b63348a5d 100644 --- a/testsuites/libtests/syscall01/init.c +++ b/testsuites/libtests/syscall01/init.c @@ -27,6 +27,9 @@ #include #include +/* forward declarations to avoid warnings */ +static rtems_task Init(rtems_task_argument argument); + static const char open_driver_path [] = "/dev/open_driver"; struct rtems_bsdnet_config rtems_bsdnet_config; diff --git a/testsuites/libtests/tar01/init.c b/testsuites/libtests/tar01/init.c index 3c60673c2f..cc2830b89f 100644 --- a/testsuites/libtests/tar01/init.c +++ b/testsuites/libtests/tar01/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -25,6 +25,11 @@ #include "initial_filesystem_tar.h" +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void test_untar_from_memory(void); +void test_untar_from_file(void); + #define TARFILE_START initial_filesystem_tar #define TARFILE_SIZE initial_filesystem_tar_size diff --git a/testsuites/libtests/tar02/init.c b/testsuites/libtests/tar02/init.c index 2bcbb25951..4f8a583a2f 100644 --- a/testsuites/libtests/tar02/init.c +++ b/testsuites/libtests/tar02/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -25,6 +25,10 @@ #include "initial_filesystem_tar.h" +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void test_tarfs_load(void); + #define TARFILE_START initial_filesystem_tar #define TARFILE_SIZE initial_filesystem_tar_size diff --git a/testsuites/libtests/tar03/init.c b/testsuites/libtests/tar03/init.c index f70748df18..1f50065a4d 100644 --- a/testsuites/libtests/tar03/init.c +++ b/testsuites/libtests/tar03/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -18,6 +18,10 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void test_tarfs_error(void); + void test_tarfs_error(void) { int sc; diff --git a/testsuites/libtests/termios/init.c b/testsuites/libtests/termios/init.c index 9bd00d9348..e425756f23 100644 --- a/testsuites/libtests/termios/init.c +++ b/testsuites/libtests/termios/init.c @@ -26,21 +26,6 @@ #include - -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER - -#define CONFIGURE_MAXIMUM_TASKS 1 - -#define CONFIGURE_RTEMS_INIT_TASKS_TABLE - -#define CONFIGURE_MICROSECONDS_PER_TICK 1000 - -#define CONFIGURE_INIT - -rtems_task Init (rtems_task_argument argument); - -#include #include #include @@ -51,6 +36,24 @@ rtems_task Init (rtems_task_argument argument); #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void print_32bits(unsigned long bits, unsigned char size, char * names[]); +void print_c_iflag(struct termios * tp); +void print_c_oflag(struct termios * tp); +void print_c_lflag(struct termios * tp); +void print_c_cflag(struct termios * tp); +void print_c_cc(struct termios * tp); +void print_termios(struct termios *tp); +unsigned long get_baud_rate(void); +unsigned long get_parity(void); +unsigned long get_stop_bits(void); +unsigned long get_data_bits(void); +void change_line_settings(struct termios *tp); +void canonical_input(struct termios *tp); +void do_raw_input(int vmin, int vtime); +void usage(void); + #if !defined(fileno) int fileno( FILE *stream); /* beyond ANSI */ #endif @@ -438,7 +441,7 @@ void print_termios( struct termios *tp ) } -unsigned long get_baud_rate( void ) +unsigned long get_baud_rate(void) { unsigned long baud_rate; @@ -795,3 +798,19 @@ Init (rtems_task_argument ignored) rtems_test_exit( 0 ); } } + +/* application configuration */ +#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER +#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER + +#define CONFIGURE_MAXIMUM_TASKS 1 + +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE + +#define CONFIGURE_MICROSECONDS_PER_TICK 1000 + +#define CONFIGURE_INIT + +#include +/* end of configuration */ + diff --git a/testsuites/libtests/termios01/termios_testdriver.c b/testsuites/libtests/termios01/termios_testdriver.c index bf874f3b2b..70e0d491af 100644 --- a/testsuites/libtests/termios01/termios_testdriver.c +++ b/testsuites/libtests/termios01/termios_testdriver.c @@ -1,7 +1,11 @@ -/* - * This file contains a test fixture termios device driver +/** + * @file * - * COPYRIGHT (c) 1989-2009. + * This file contains a test fixture termios device driver. + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -21,6 +25,19 @@ #include #include "termios_testdriver.h" +/* forward declarations to avoid warnings */ +int termios_test_driver_inbyte_nonblocking(int port); +void termios_test_driver_outbyte_polled(int port, char ch); +ssize_t termios_test_driver_write_support( + int minor, + const char *buf, + size_t len +); +int termios_test_driver_set_attributes( + int minor, + const struct termios *t +); + int termios_test_driver_inbyte_nonblocking( int port ) { return -1; @@ -33,7 +50,11 @@ void termios_test_driver_outbyte_polled( { } -ssize_t termios_test_driver_write_support (int minor, const char *buf, size_t len) +ssize_t termios_test_driver_write_support( + int minor, + const char *buf, + size_t len +) { size_t nwrite = 0; diff --git a/testsuites/libtests/termios02/init.c b/testsuites/libtests/termios02/init.c index 87c6ba3f9b..7659314960 100644 --- a/testsuites/libtests/termios02/init.c +++ b/testsuites/libtests/termios02/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -16,6 +16,9 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument ignored ) diff --git a/testsuites/libtests/termios03/init.c b/testsuites/libtests/termios03/init.c index 0b77e4f985..bc33feb42e 100644 --- a/testsuites/libtests/termios03/init.c +++ b/testsuites/libtests/termios03/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -22,6 +22,14 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void write_helper(int fd, const char *c); +void read_helper(int fd, const char *expected); +void open_it(void); +void close_it(void); +void change_iflag(const char *desc, int mask, int new); + void write_helper( int fd, const char *c diff --git a/testsuites/libtests/termios03/termios_testdriver_polled.c b/testsuites/libtests/termios03/termios_testdriver_polled.c index 88807de06f..6c197fff2a 100644 --- a/testsuites/libtests/termios03/termios_testdriver_polled.c +++ b/testsuites/libtests/termios03/termios_testdriver_polled.c @@ -1,7 +1,11 @@ -/* - * This file contains a test fixture termios device driver +/** + * @file * - * COPYRIGHT (c) 1989-2011. + * This file contains a test fixture termios device driver + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -21,6 +25,19 @@ #include #include "termios_testdriver_polled.h" +/* forward declarations to avoid warnings */ +int termios_test_driver_inbyte_nonblocking(int port); +void termios_test_driver_outbyte_polled(int port, char ch); +ssize_t termios_test_driver_write_support( + int minor, + const char *buf, + size_t len +); +int termios_test_driver_set_attributes( + int minor, + const struct termios *t +); + #define TX_MAX 1024 uint8_t Tx_Buffer[TX_MAX]; int Tx_Index = 0; diff --git a/testsuites/libtests/termios04/init.c b/testsuites/libtests/termios04/init.c index 49e128d079..1755f64233 100644 --- a/testsuites/libtests/termios04/init.c +++ b/testsuites/libtests/termios04/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -22,6 +22,14 @@ #include #include +/* forward declarations to avoid warnings */ +void write_helper(int fd, const char *c); +void read_helper(int fd, const char *expected); +void open_it(void); +void close_it(void); +void change_iflag(const char *desc, int mask, int new); +rtems_task Init(rtems_task_argument argument); + void write_helper( int fd, const char *c diff --git a/testsuites/libtests/termios04/termios_testdriver_intr.c b/testsuites/libtests/termios04/termios_testdriver_intr.c index 53a2b7899b..086bbb3a12 100644 --- a/testsuites/libtests/termios04/termios_testdriver_intr.c +++ b/testsuites/libtests/termios04/termios_testdriver_intr.c @@ -1,7 +1,11 @@ -/* - * This file contains a test fixture termios device driver +/** + * @file * - * COPYRIGHT (c) 1989-2011. + * This file contains a test fixture termios device driver + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -21,6 +25,30 @@ #include #include "termios_testdriver_intr.h" +/* forward declarations to avoid warnings */ +void termios_test_driver_wait_for_tx_to_complete(void); +rtems_timer_service_routine Rx_ISR( + rtems_id ignored_id, + void *ignored_address +); +rtems_timer_service_routine Tx_ISR( + rtems_id ignored_id, + void *ignored_address +); +ssize_t termios_test_driver_write_helper( + int port, + const char *buf, + size_t len +); +int termios_test_driver_set_attributes( + int minor, + const struct termios *t +); +#if defined(TASK_DRIVEN) + int termios_test_driver_inbyte_nonblocking(int port); +#endif + +/* global variables */ rtems_id Rx_Timer; rtems_id Tx_Timer; diff --git a/testsuites/libtests/termios05/init.c b/testsuites/libtests/termios05/init.c index 506cf5fc46..4dec03805f 100644 --- a/testsuites/libtests/termios05/init.c +++ b/testsuites/libtests/termios05/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -22,6 +22,14 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void write_helper(int fd, const char *c); +void read_helper(int fd, const char *expected); +void open_it(void); +void close_it(void); +void change_iflag(const char *desc, int mask, int new); + void write_helper( int fd, const char *c diff --git a/testsuites/libtests/termios06/init.c b/testsuites/libtests/termios06/init.c index 23c08a6629..204689e70b 100644 --- a/testsuites/libtests/termios06/init.c +++ b/testsuites/libtests/termios06/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -23,6 +23,19 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void open_it(void); +void Rx_Wake(struct termios *tty, void *arg); +void Tx_Wake(struct termios *tty, void *arg); +void set_wakeups(void); +void set_discipline(void); +void ioctl_it(void); +void close_it(void); +void write_it(void); +void read_helper(int fd, const char *expected); +void read_it(void); + void pppasyncattach(void); void ppp_test_driver_set_rx( const char *expected, size_t len ); diff --git a/testsuites/libtests/termios06/test_pppd.c b/testsuites/libtests/termios06/test_pppd.c index addbc73f43..39e46755e7 100644 --- a/testsuites/libtests/termios06/test_pppd.c +++ b/testsuites/libtests/termios06/test_pppd.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -16,6 +16,9 @@ #include #include +/* forward declarations to avoid warnings */ +void ppp_test_driver_set_rx(const char *expected, size_t len); +void pppasyncattach(void); int pppopen(struct rtems_termios_tty *tty); int pppclose(struct rtems_termios_tty *tty); int pppread(struct rtems_termios_tty *tty, rtems_libio_rw_args_t *rw_args); diff --git a/testsuites/libtests/termios07/init.c b/testsuites/libtests/termios07/init.c index 7f873be4b2..5514ee98c9 100644 --- a/testsuites/libtests/termios07/init.c +++ b/testsuites/libtests/termios07/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -23,6 +23,14 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void write_helper(int fd, const char *c); +void read_helper(int fd, const char *expected); +void open_it(void); +void close_it(void); +void change_iflag(const char *desc, int mask, int new); + void write_helper( int fd, const char *c diff --git a/testsuites/libtests/termios08/init.c b/testsuites/libtests/termios08/init.c index 08745cec0f..b3471a330f 100644 --- a/testsuites/libtests/termios08/init.c +++ b/testsuites/libtests/termios08/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -23,6 +23,15 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void open_it(void); +void close_it(void); +void write_it(void); +void change_lflag( const char *desc, int mask, int new ); +void change_vmin_vtime( const char *desc, int min, int time ); +void read_it(ssize_t expected); + int Test_fd; void open_it(void) @@ -86,9 +95,7 @@ void change_vmin_vtime( const char *desc, int min, int time ) rtems_test_assert( rc == 0 ); } -void read_it( - ssize_t expected -) +void read_it( ssize_t expected ) { ssize_t rc; char buf[32]; diff --git a/testsuites/libtests/tztest/init.c b/testsuites/libtests/tztest/init.c index 9f3c4ef117..7902a99d24 100644 --- a/testsuites/libtests/tztest/init.c +++ b/testsuites/libtests/tztest/init.c @@ -1,8 +1,12 @@ -/* +/** + * @file + * * This routine is the initialization task of test to exercise some * timezone functionality. - * - * COPYRIGHT (c) 2007. + */ + +/* + * COPYRIGHT (c) 2007-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -19,6 +23,10 @@ #include #include #include + +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +void tztester(void); void tztester(void) { -- cgit v1.2.3