summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/termios03
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/termios03
parenttmoverhd - Eliminate warnings (diff)
downloadrtems-4c86e3d8bee2680c9be999b4627b19438f1ae728.tar.bz2
libtmtests - Eliminate missing prototype warnings
Diffstat (limited to 'testsuites/libtests/termios03')
-rw-r--r--testsuites/libtests/termios03/init.c10
-rw-r--r--testsuites/libtests/termios03/termios_testdriver_polled.c23
2 files changed, 29 insertions, 4 deletions
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 <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 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 <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;