/* handle having mutually exclusive termio vs. termios */ /* return 0 if handled */ #ifdef STREAMSPTY #include #include #include #include #if !defined(TCSETS) && defined(_AIX) /* kludge for AIX */ #include #endif int readstream_termios(cmd, ibuf, vstop, vstart, ixon) int cmd; char *ibuf; char *vstop, *vstart; int *ixon; { struct termios *tsp; switch (cmd) { case TCSETS: case TCSETSW: case TCSETSF: tsp = (struct termios *) (ibuf+1 + sizeof(struct iocblk)); *vstop = tsp->c_cc[VSTOP]; *vstart = tsp->c_cc[VSTART]; *ixon = tsp->c_iflag & IXON; return 0; } return -1; } #endif /* STREAMSPTY */