summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/termios04
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-11 12:20:47 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-11 12:20:47 -0500
commit4c86e3d8bee2680c9be999b4627b19438f1ae728 (patch)
treee98cb2c409079e5507a1ddf9f5764781697f1b71 /testsuites/libtests/termios04
parenttmoverhd - Eliminate warnings (diff)
downloadrtems-4c86e3d8bee2680c9be999b4627b19438f1ae728.tar.bz2
libtmtests - Eliminate missing prototype warnings
Diffstat (limited to 'testsuites/libtests/termios04')
-rw-r--r--testsuites/libtests/termios04/init.c10
-rw-r--r--testsuites/libtests/termios04/termios_testdriver_intr.c34
2 files changed, 40 insertions, 4 deletions
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 <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 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 <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;