Ignore:
Timestamp:
Mar 21, 2017, 7:39:48 PM (3 years ago)
Author:
Kevin Kirspel <kevin-kirspel@…>
Branches:
master
Children:
94a4865
Parents:
c4b058ca
git-author:
Kevin Kirspel <kevin-kirspel@…> (03/21/17 19:39:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/22/17 10:55:04)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/cfsetospeed.c

    rc4b058ca r1c6926c1  
    2626#include <errno.h>
    2727#include <termios.h>
    28 
    29 #include <rtems/libio_.h>
     28#include <rtems/termiostypes.h>
    3029#include <rtems/seterr.h>
    3130
     
    3837)
    3938{
    40   if ( speed & ~CBAUD )
     39  if ( rtems_termios_baud_to_index( speed ) == -1 )
    4140    rtems_set_errno_and_return_minus_one( EINVAL );
    4241
    43   tp->c_cflag = (tp->c_cflag & ~CBAUD) | speed;
     42  tp->c_ospeed = speed;
    4443  return 0;
    4544}
Note: See TracChangeset for help on using the changeset viewer.