tIOC
#ifndef tIOC
#define TIOCGPGRP (tIOC|20) /* get pgrp of tty */
#define TIOCSPGRP (tIOC|21) /* set pgrp of tty */
((cmd & IOCTYPE) == tIOC) ||
((cmd & IOCTYPE) == tIOC) ||
#define TIOCGETD (tIOC|0)
#define TIOCSETD (tIOC|1)
#define TIOCHPCL (tIOC|2)
#define TIOCGETP (tIOC|8)
#define TIOCSETP (tIOC|9)
#define TIOCSETN (tIOC|10)
#define TIOCEXCL (tIOC|13)
#define TIOCNXCL (tIOC|14)
#define TIOCFLUSH (tIOC|16)
#define TIOCSETC (tIOC|17)
#define TIOCGETC (tIOC|18)
#define TIOCLBIS (tIOC|127) /* bis local mode bits */
#define TIOCLBIC (tIOC|126) /* bic local mode bits */
#define TIOCLSET (tIOC|125) /* set entire local mode word */
#define TIOCLGET (tIOC|124) /* get local modes */
#define TIOCSBRK (tIOC|123) /* set break bit */
#define TIOCCBRK (tIOC|122) /* clear break bit */
#define TIOCSDTR (tIOC|121) /* set data terminal ready */
#define TIOCCDTR (tIOC|120) /* clear data terminal ready */
#define TIOCSLTC (tIOC|117) /* set local special chars */
#define TIOCGLTC (tIOC|116) /* get local special chars */
#define TIOCOUTQ (tIOC|115) /* driver output queue size */
#define TIOCNOTTY (tIOC|113) /* void tty association */
#define TIOCSCTTY (tIOC|132) /* get a ctty */
#define TIOCSTOP (tIOC|111) /* stop output, like ^S */
#define TIOCSTART (tIOC|110) /* start output, like ^Q */
#define TIOCSILOOP (tIOC|109) /* private to Sun; do not use */
#define TIOCCILOOP (tIOC|108) /* private to Sun; do not use */
#define TIOCGPGRP (tIOC|20) /* get pgrp of tty */
#define TIOCSPGRP (tIOC|21) /* set pgrp of tty */
#define TIOCGSID (tIOC|22) /* get session id on ctty */
#define TIOCSTI (tIOC|23) /* simulate terminal input */
#define TIOCMSET (tIOC|26) /* set all modem bits */
#define TIOCMBIS (tIOC|27) /* bis modem bits */
#define TIOCMBIC (tIOC|28) /* bic modem bits */
#define TIOCMGET (tIOC|29) /* get all modem bits */
#define TIOCREMOTE (tIOC|30) /* remote input editing */
#define TIOCSIGNAL (tIOC|31) /* pty: send signal to subsidiary */
#ifndef tIOC
#define TIOCGETD (tIOC|0)
#define TIOCSETD (tIOC|1)
#define TIOCHPCL (tIOC|2)
#define TIOCGETP (tIOC|8)
#define TIOCSETP (tIOC|9)
#define TIOCSETN (tIOC|10)
#define TIOCEXCL (tIOC|13)
#define TIOCNXCL (tIOC|14)
#define TIOCFLUSH (tIOC|16)
#define TIOCSETC (tIOC|17)
#define TIOCGETC (tIOC|18)
#define TIOCLBIS (tIOC|127) /* bis local mode bits */
#define TIOCLBIC (tIOC|126) /* bic local mode bits */
#define TIOCLSET (tIOC|125) /* set entire local mode word */
#define TIOCLGET (tIOC|124) /* get local modes */
#define TIOCSBRK (tIOC|123) /* set break bit */
#define TIOCCBRK (tIOC|122) /* clear break bit */
#define TIOCSDTR (tIOC|121) /* set data terminal ready */
#define TIOCCDTR (tIOC|120) /* clear data terminal ready */
#define TIOCSLTC (tIOC|117) /* set local special chars */
#define TIOCGLTC (tIOC|116) /* get local special chars */
#define TIOCOUTQ (tIOC|115) /* driver output queue size */
#define TIOCNOTTY (tIOC|113) /* void tty association */
#define TIOCSTOP (tIOC|111) /* stop output, like ^S */
#define TIOCSTART (tIOC|110) /* start output, like ^Q */
#define TIOCREMOTE (tIOC|30) /* remote input editing */