set the other three terminal state pieces for systems that HAVE_SGTTY
This commit is contained in:
parent
419093bc9c
commit
88cc9a424a
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Dec 6 16:34:10 1993 K. Richard Pixley (rich@cygnus.com)
|
||||||
|
|
||||||
|
* ser-unix.c (set_tty_state): set the rest of the terminal state
|
||||||
|
pieces.
|
||||||
|
|
||||||
Mon Dec 6 12:01:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
Mon Dec 6 12:01:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
* configure.in: Recognize mips* for all mips targets.
|
* configure.in: Recognize mips* for all mips targets.
|
||||||
|
|
|
@ -150,6 +150,12 @@ set_tty_state(scb, state)
|
||||||
#ifdef HAVE_SGTTY
|
#ifdef HAVE_SGTTY
|
||||||
if (ioctl (scb->fd, TIOCSETN, &state->sgttyb) < 0)
|
if (ioctl (scb->fd, TIOCSETN, &state->sgttyb) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
if (ioctl (scb->fd, TIOCSETC, &state->tc) < 0)
|
||||||
|
return -1;
|
||||||
|
if (ioctl (scb->fd, TIOCSLTC, &state->ltc) < 0)
|
||||||
|
return -1;
|
||||||
|
if (ioctl (scb->fd, TIOCLSET, &state->lmode) < 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue