[rtems commit] libtmtests - Eliminate missing prototype warnings
Joel Sherrill
joel at rtems.org
Fri May 11 19:11:06 UTC 2012
Module: rtems
Branch: master
Commit: 4c86e3d8bee2680c9be999b4627b19438f1ae728
Changeset: http://git.rtems.org/rtems/commit/?id=4c86e3d8bee2680c9be999b4627b19438f1ae728
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Fri May 11 12:20:47 2012 -0500
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(-)
diff --git a/testsuites/libtests/block01/init.c b/testsuites/libtests/block01/init.c
index 3c1eb4e..76f345c 100644
--- a/testsuites/libtests/block01/init.c
+++ b/testsuites/libtests/block01/init.c
@@ -33,6 +33,9 @@
#include <rtems/ramdisk.h>
#include <rtems/diskdevs.h>
+/* 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 58b78d3..5f89700 100644
--- a/testsuites/libtests/block02/init.c
+++ b/testsuites/libtests/block02/init.c
@@ -31,6 +31,9 @@
#include <rtems/bdbuf.h>
#include <rtems/diskdevs.h>
+/* 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 2cfb806..802d8d0 100644
--- a/testsuites/libtests/block03/init.c
+++ b/testsuites/libtests/block03/init.c
@@ -31,6 +31,9 @@
#include <rtems/bdbuf.h>
#include <rtems/diskdevs.h>
+/* 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 ff7b204..98d49c0 100644
--- a/testsuites/libtests/block04/init.c
+++ b/testsuites/libtests/block04/init.c
@@ -31,6 +31,9 @@
#include <rtems/bdbuf.h>
#include <rtems/diskdevs.h>
+/* 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 8af26fe..38c7d6d 100644
--- a/testsuites/libtests/block05/init.c
+++ b/testsuites/libtests/block05/init.c
@@ -32,6 +32,9 @@
#include <rtems/bdbuf.h>
#include <rtems/diskdevs.h>
+/* 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 53f4888..b6e6bce 100644
--- a/testsuites/libtests/block06/init.c
+++ b/testsuites/libtests/block06/init.c
@@ -29,6 +29,9 @@
#include <rtems/error.h>
#include <rtems/bdbuf.h>
+/* 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 969fd36..9ae38ad 100644
--- a/testsuites/libtests/block07/init.c
+++ b/testsuites/libtests/block07/init.c
@@ -34,6 +34,9 @@
#include <rtems/bdbuf.h>
#include <rtems/diskdevs.h>
+/* 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 b7426c3..04b8878 100644
--- a/testsuites/libtests/block09/init.c
+++ b/testsuites/libtests/block09/init.c
@@ -31,6 +31,9 @@
#include <rtems/bdbuf.h>
#include <rtems/diskdevs.h>
+/* 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 80ca98e..1fcc1a9 100644
--- a/testsuites/libtests/block10/init.c
+++ b/testsuites/libtests/block10/init.c
@@ -30,6 +30,9 @@
#include <rtems/bdbuf.h>
#include <rtems/diskdevs.h>
+/* 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 3127331..d29e8ab 100644
--- a/testsuites/libtests/block11/init.c
+++ b/testsuites/libtests/block11/init.c
@@ -37,6 +37,9 @@
#include <rtems/diskdevs.h>
#include <rtems/malloc.h>
+/* 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 7bc8d08..fbffecb 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 <tmacros.h>
#include <rtems/bspcmdline.h>
+/* 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 697847b..91f712f 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 <rtems/devfs.h>
#include <errno.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/devfs02/init.c b/testsuites/libtests/devfs02/init.c
index 84a8ff9..47a70a8 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 <rtems/devfs.h>
#include <rtems/malloc.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/devfs03/init.c b/testsuites/libtests/devfs03/init.c
index 30bd88a..0f3155b 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 <sys/stat.h>
#include <fcntl.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/devfs04/init.c b/testsuites/libtests/devfs04/init.c
index acdafd5..ecf560f 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 <rtems/devnull.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/deviceio01/init.c b/testsuites/libtests/deviceio01/init.c
index 445afd9..e73e74b 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 <rtems/devnull.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/dumpbuf01/init.c b/testsuites/libtests/dumpbuf01/init.c
index 1c86502..e143757 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 <rtems/dumpbuf.h>
-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 d9f26f3..5ca6614 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 4b4e8e7..c60cc56 100644
--- a/testsuites/libtests/ftp01/init.c
+++ b/testsuites/libtests/ftp01/init.c
@@ -27,6 +27,9 @@
#include <rtems/ftpd.h>
#include <rtems/ftpfs.h>
+/* 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 c8bc16a..1b782fe 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 <rtems/gxx_wrappers.h>
+/* 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 39e379b..f2fd55e 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 <tmacros.h>
+/* 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 cc55912..0aa2545 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 <tmacros.h>
#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 80032c0..f60377f 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 <rtems/malloc.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/mouse01/init.c b/testsuites/libtests/mouse01/init.c
index 5950f92..78010f1 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 ce180d8..f6daa55 100644
--- a/testsuites/libtests/rbheap01/init.c
+++ b/testsuites/libtests/rbheap01/init.c
@@ -21,6 +21,9 @@
#include <rtems.h>
#include <rtems/rbheap.h>
+/* 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 1216242..5bcc8ee 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 <rtems.h>
#include <rtems/stackchk.h>
-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 deed8f1..f54f1af 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 <tmacros.h>
#include <rtems/stackchk.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/stringto01/init.c b/testsuites/libtests/stringto01/init.c
index 005d365..283e0d8 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 <stdio.h>
+/* 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 1b951f7..7b6ee52 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 b438a93..8b63348 100644
--- a/testsuites/libtests/syscall01/init.c
+++ b/testsuites/libtests/syscall01/init.c
@@ -27,6 +27,9 @@
#include <rtems/libio.h>
#include <rtems/rtems_bsdnet.h>
+/* 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 3c60673..cc2830b 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 2bcbb25..4f8a583 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 f70748d..1f50065 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 <rtems/untar.h>
#include <rtems/error.h>
+/* 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 9bd00d9..e425756 100644
--- a/testsuites/libtests/termios/init.c
+++ b/testsuites/libtests/termios/init.c
@@ -26,21 +26,6 @@
#include <bsp.h>
-
-#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 <rtems/confdefs.h>
#include <rtems/shell.h>
#include <stdio.h>
@@ -51,6 +36,24 @@ rtems_task Init (rtems_task_argument argument);
#include <tmacros.h>
+/* 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 <rtems/confdefs.h>
+/* end of configuration */
+
diff --git a/testsuites/libtests/termios01/termios_testdriver.c b/testsuites/libtests/termios01/termios_testdriver.c
index bf874f3..70e0d49 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 <rtems/libcsupport.h>
#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 87c6ba3..7659314 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 <errno.h>
#include <unistd.h>
+/* 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 0b77e4f..bc33feb 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 <termios.h>
#include <rtems/dumpbuf.h>
+/* 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 88807de..6c197ff 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 <rtems/dumpbuf.h>
#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 49e128d..1755f64 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 <termios.h>
#include <rtems/dumpbuf.h>
+/* 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 53a2b78..086bbb3 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 <rtems/dumpbuf.h>
#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 506cf5f..4dec038 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 <termios.h>
#include <rtems/dumpbuf.h>
+/* 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 23c08a6..204689e 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 <rtems/dumpbuf.h>
#include <rtems/termiostypes.h>
+/* 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 addbc73..39e4675 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 <rtems/termiostypes.h>
#include <rtems/dumpbuf.h>
+/* 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 7f873be..5514ee9 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 <rtems/dumpbuf.h>
#include <rtems/libio.h>
+/* 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 08745ce..b3471a3 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 <rtems/dumpbuf.h>
#include <rtems/termiostypes.h>
+/* 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 9f3c4ef..7902a99 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 <tmacros.h>
#include <time.h>
#include <stdlib.h>
+
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+void tztester(void);
void tztester(void)
{
More information about the vc
mailing list