Changeset 3cad2919 in rtems


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.

Files:
6 added
4 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
  • c/src/lib/libc/Makefile.in

    r6b7a6d98 r3cad2919  
    2626
    2727TERMIOS_C_PIECES = cfgetispeed cfgetospeed cfsetispeed cfsetospeed tcgetattr \
    28     tcsetattr tcdrain termios termiosinitialize termiosreserveresources
     28    tcsetattr tcdrain tcflow tcflush termios \
     29    termiosinitialize termiosreserveresources
    2930
    3031SYSTEM_CALL_C_PIECES = open close read write lseek ioctl mkdir mknod mkfifo \
  • c/src/lib/libc/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
  • cpukit/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.