/* c_oflag bits */#defineTARGET_OPOST0000001#defineTARGET_OLCUC0000002#defineTARGET_ONLCR0000004#defineTARGET_OCRNL0000010#defineTARGET_ONOCR0000020#defineTARGET_ONLRET0000040#defineTARGET_OFILL0000100#defineTARGET_OFDEL0000200#defineTARGET_NLDLY0000400#defineTARGET_NL00000000#defineTARGET_NL10000400#defineTARGET_CRDLY0003000#defineTARGET_CR00000000#defineTARGET_CR10001000#defineTARGET_CR20002000#defineTARGET_CR30003000#defineTARGET_TABDLY0014000#defineTARGET_TAB00000000#defineTARGET_TAB10004000#defineTARGET_TAB20010000#defineTARGET_TAB30014000#defineTARGET_XTABS0014000#defineTARGET_BSDLY0020000#defineTARGET_BS00000000#defineTARGET_BS10020000#defineTARGET_VTDLY0040000#defineTARGET_VT00000000#defineTARGET_VT10040000#defineTARGET_FFDLY0100000#defineTARGET_FF00000000#defineTARGET_FF10100000/* c_cflag bit meaning */#defineTARGET_CBAUD0010017#defineTARGET_B00000000/* hang up */#defineTARGET_B500000001#defineTARGET_B750000002#defineTARGET_B1100000003#defineTARGET_B1340000004#defineTARGET_B1500000005#defineTARGET_B2000000006#defineTARGET_B3000000007#defineTARGET_B6000000010#defineTARGET_B12000000011#defineTARGET_B18000000012#defineTARGET_B24000000013#defineTARGET_B48000000014#defineTARGET_B96000000015#defineTARGET_B192000000016#defineTARGET_B384000000017#defineTARGET_EXTAB19200#defineTARGET_EXTBB38400#defineTARGET_CSIZE0000060#defineTARGET_CS50000000#defineTARGET_CS60000020#defineTARGET_CS70000040#defineTARGET_CS80000060#defineTARGET_CSTOPB0000100#defineTARGET_CREAD0000200#defineTARGET_PARENB0000400#defineTARGET_PARODD0001000#defineTARGET_HUPCL0002000#defineTARGET_CLOCAL0004000#defineTARGET_CBAUDEX0010000
#defineTARGET_TCGETA0x5401#defineTARGET_TCSETA0x5402/* Clashes with SNDCTL_TMR_START sound ioctl */#defineTARGET_TCSETAW0x5403#defineTARGET_TCSETAF0x5404#defineTARGET_TCSBRK0x5405#defineTARGET_TCXONC0x5406#defineTARGET_TCFLSH0x5407#defineTARGET_TCGETS0x540d#defineTARGET_TCSETS0x540e#defineTARGET_TCSETSW0x540f#defineTARGET_TCSETSF0x5410#defineTARGET_TIOCEXCL0x740d/* set exclusive use of tty */#defineTARGET_TIOCNXCL0x740e/* reset exclusive use of tty */#defineTARGET_TIOCOUTQ0x7472/* output queue size */
#defineTARGET_TIOCMGET0x741d/* get all modem bits */#defineTARGET_TIOCMBIS0x741b/* bis modem bits */#defineTARGET_TIOCMBIC0x741c/* bic modem bits */#defineTARGET_TIOCMSET0x741a/* set all modem bits */#defineTARGET_TIOCPKT0x5470/* pty: set/clear packet mode */#defineTARGET_TIOCPKT_DATA0x00/* data packet */#defineTARGET_TIOCPKT_FLUSHREAD0x01/* flush packet */#defineTARGET_TIOCPKT_FLUSHWRITE0x02/* flush packet */#defineTARGET_TIOCPKT_STOP0x04/* stop output */#defineTARGET_TIOCPKT_START0x08/* start output */#defineTARGET_TIOCPKT_NOSTOP0x10/* no more ^S, ^Q */#defineTARGET_TIOCPKT_DOSTOP0x20/* now do ^S ^Q *//* #define TIOCPKT_IOCTL 0x40 state change of pty driver */#defineTARGET_TIOCSWINSZTARGET_IOW('t',103,structwinsize)/* set window size */#defineTARGET_TIOCGWINSZTARGET_IOR('t',104,structwinsize)/* get window size */#defineTARGET_TIOCNOTTY0x5471/* void tty association */#defineTARGET_TIOCSETD0x7401#defineTARGET_TIOCGETD0x7400#defineTARGET_FIOCLEX0x6601#defineTARGET_FIONCLEX0x6602#defineTARGET_FIOASYNC0x667d#defineTARGET_FIONBIO0x667e#defineTARGET_FIOQSIZE0x667f#defineTARGET_TIOCGLTC0x7474/* get special local chars */#defineTARGET_TIOCSLTC0x7475/* set special local chars */#defineTARGET_TIOCSPGRPTARGET_IOW('t',118,int)/* set pgrp of tty */#defineTARGET_TIOCGPGRPTARGET_IOR('t',119,int)/* get pgrp of tty */#defineTARGET_TIOCCONSTARGET_IOW('t',120,int)/* become virtual console */#defineTARGET_FIONREAD0x467f
/* I hope the range from 0x5480 on is free ... */#defineTARGET_TIOCSCTTY0x5480/* become controlling tty */#defineTARGET_TIOCGSOFTCAR0x5481#defineTARGET_TIOCSSOFTCAR0x5482#defineTARGET_TIOCLINUX0x5483#defineTARGET_TIOCGSERIAL0x5484#defineTARGET_TIOCSSERIAL0x5485#defineTARGET_TCSBRKP0x5486/* Needed for POSIX tcsendbreak() */#defineTARGET_TIOCSERCONFIG0x5488#defineTARGET_TIOCSERGWILD0x5489#defineTARGET_TIOCSERSWILD0x548a#defineTARGET_TIOCGLCKTRMIOS0x548b#defineTARGET_TIOCSLCKTRMIOS0x548c#defineTARGET_TIOCSERGSTRUCT0x548d/* For debugging only */#defineTARGET_TIOCSERGETLSR0x548e/* Get line status register */#defineTARGET_TIOCSERGETMULTI0x548f/* Get multiport config */#defineTARGET_TIOCSERSETMULTI0x5490/* Set multiport config */#defineTARGET_TIOCMIWAIT0x5491/* wait for a change on serial input line(s) */#defineTARGET_TIOCGICOUNT0x5492/* read serial port inline interrupt counts */#defineTARGET_TIOCGHAYESESP0x5493/* Get Hayes ESP configuration */#defineTARGET_TIOCSHAYESESP0x5494/* Set Hayes ESP configuration */