From 1c6926c11f2e5efcb166c668b097d64a0321d66e Mon Sep 17 00:00:00 2001 From: Kevin Kirspel Date: Tue, 21 Mar 2017 15:39:48 -0400 Subject: termios: Synchronize with latest FreeBSD headers Adding modified FreeBSD headers to synchronize RTEMS termios with FreeBSD. Modify termios to support dedicated input and output baud for termios structure. Updated BSPs to use dedicated input and output baud in termios structure. Updated tools to use dedicated input and output baud in termios structure. Updated termios testsuites to use dedicated input and output baud in termios structure. Close #2897. --- cpukit/libcsupport/src/cfsetospeed.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cpukit/libcsupport/src/cfsetospeed.c') diff --git a/cpukit/libcsupport/src/cfsetospeed.c b/cpukit/libcsupport/src/cfsetospeed.c index 36e3d997c8..41a232aa0f 100644 --- a/cpukit/libcsupport/src/cfsetospeed.c +++ b/cpukit/libcsupport/src/cfsetospeed.c @@ -25,8 +25,7 @@ #include #include #include - -#include +#include #include /** @@ -37,10 +36,10 @@ int cfsetospeed( speed_t speed ) { - if ( speed & ~CBAUD ) + if ( rtems_termios_baud_to_index( speed ) == -1 ) rtems_set_errno_and_return_minus_one( EINVAL ); - tp->c_cflag = (tp->c_cflag & ~CBAUD) | speed; + tp->c_ospeed = speed; return 0; } #endif -- cgit v1.2.3