Changeset 3cad2919 in rtems for c/src/exec/libcsupport


Ignore:
Timestamp:
Oct 1, 1999, 3:55:30 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b406ad20
Parents:
6b7a6d98
Message:

Addition of more functionality by Eric Norum to support GNU readline.

Location:
c/src/exec/libcsupport/src
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/tcsetattr.c

    r6b7a6d98 r3cad2919  
    3333)
    3434{
    35   if ( opt != TCSANOW )
     35  switch (opt) {
     36  default:
    3637    set_errno_and_return_minus_one( ENOTSUP );
    3738
    38   return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
     39  case TCSADRAIN:
     40    if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)
     41        return -1;
     42    /*
     43     * Fall through to....
     44     */
     45  case TCSANOW:
     46    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
     47  }
    3948}
    4049#endif
Note: See TracChangeset for help on using the changeset viewer.