summaryrefslogtreecommitdiffstats
path: root/testsuite/termios
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-05-23 13:18:31 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-08 13:19:54 +0200
commit02373194fe0be1ef82db419bedbf9d6ffd31dc93 (patch)
treef151591d23221ec221c57496d07f7fba8dff137a /testsuite/termios
parentUpdate scripts to include support for input devices - USB Keyboard, USB mouse... (diff)
downloadrtems-libbsd-02373194fe0be1ef82db419bedbf9d6ffd31dc93.tar.bz2
Update due to Newlib 2017-06-07 changes
The following files are now provided by Newlib: * arpa/inet.h * net/if.h * netinet/in.h * netinet/tcp.h * sys/socket.h * sys/uio.h * sys/un.h The <sys/param.h> and <sys/cpuset.h> are now compatible enough to be used directly. Update #2833.
Diffstat (limited to 'testsuite/termios')
-rw-r--r--testsuite/termios/test_main.c84
-rw-r--r--testsuite/termios/test_termios_utilities.c2
2 files changed, 3 insertions, 83 deletions
diff --git a/testsuite/termios/test_main.c b/testsuite/termios/test_main.c
index 90e33826..6a4431b9 100644
--- a/testsuite/termios/test_main.c
+++ b/testsuite/termios/test_main.c
@@ -13,6 +13,7 @@
#include <rtems/console.h>
#include <rtems/shell.h>
+#include <rtems/termiostypes.h>
#include <rtems/bsd/bsd.h>
#include <termios.h>
@@ -113,87 +114,6 @@ void print_c_oflag( struct termios * tp )
if( tp->c_oflag & ONLRET )
printf( "ONLRET " );
- if( tp->c_oflag & OFILL )
- printf( "OFILL " );
-
- if( tp->c_oflag & OFDEL )
- printf( "OFDEL " );
-
- switch( tp->c_oflag & NLDLY ) {
- case NL0:
- printf( "NL0 " );
- break;
-
- case NL1:
- printf( "NL1 " );
- break;
- }
-
- switch( tp->c_oflag & CRDLY ) {
- case CR0:
- printf( "CR0 " );
- break;
-
- case CR1:
- printf( "CR1 " );
- break;
-
- case CR2:
- printf( "CR2 " );
- break;
-
- case CR3:
- printf( "CR3 " );
- break;
- }
-
- switch( tp->c_oflag & TABDLY ) {
- case TAB0:
- printf( "TAB0 " );
- break;
-
- case TAB1:
- printf( "TAB1 " );
- break;
-
- case TAB2:
- printf( "TAB2 " );
- break;
-
- case TAB3:
- printf( "TAB3 " );
- break;
- }
-
- switch( tp->c_oflag & BSDLY ) {
- case BS0:
- printf( "BS0 " );
- break;
-
- case BS1:
- printf( "BS1 " );
- break;
- }
-
- switch( tp->c_oflag & VTDLY ) {
- case VT0:
- printf( "VT0 " );
- break;
-
- case VT1:
- printf( "VT1 " );
- break;
- }
-
- switch( tp->c_oflag & FFDLY ) {
- case FF0:
- printf( "FF0" );
- break;
-
- case FF1:
- printf( "FF1" );
- break;
- }
printf( "\n" );
}
@@ -853,4 +773,4 @@ test_main(void)
exit(0);
}
-#include <rtems/bsd/test/default-termios-init.h> \ No newline at end of file
+#include <rtems/bsd/test/default-termios-init.h>
diff --git a/testsuite/termios/test_termios_utilities.c b/testsuite/termios/test_termios_utilities.c
index e8caf812..e1429ef1 100644
--- a/testsuite/termios/test_termios_utilities.c
+++ b/testsuite/termios/test_termios_utilities.c
@@ -37,7 +37,7 @@ void open_it(void)
change_iflag("BRKINT|ICRNL|IXON|IMAXBEL", 0xFFFFFFFF, BRKINT|ICRNL|IXON|IMAXBEL);
change_lflag("ISIG|ICANON|IEXTEN|ECHO|ECHOK|ECHOE|ECHOCTL", 0xFFFFFFFF, ISIG|ICANON|IEXTEN|ECHO|ECHOK|ECHOE|ECHOCTL);
- change_oflag("OPOST|ONLCR|XTABS", 0xFFFFFFFF, OPOST|ONLCR|XTABS);
+ change_oflag("OPOST|ONLCR|OXTABS", 0xFFFFFFFF, OPOST|ONLCR|OXTABS);
}
void close_it(void)