Annotation of researchv10no/dk/cmd/pupu/Vtermio.h, revision 1.1.1.1

1.1       root        1: /* @(#)termio.h        6.2 */
                      2: #define        V__NCC  8
                      3: 
                      4: /* control characters */
                      5: #define        V__VINTR        0
                      6: #define        V__VQUIT        1
                      7: #define        V__VERASE       2
                      8: #define        V__VKILL        3
                      9: #define        V__VEOF 4
                     10: #define        V__VEOL 5
                     11: #define        V__VEOL2        6
                     12: #define        V__VMIN 4
                     13: #define        V__VTIME        5
                     14: #define        V__VSWTCH       7
                     15: 
                     16: 
                     17: 
                     18: /* input modes */
                     19: #define        V__IGNBRK       0000001
                     20: #define        V__BRKINT       0000002
                     21: #define        V__IGNPAR       0000004
                     22: #define        V__PARMRK       0000010
                     23: #define        V__INPCK        0000020
                     24: #define        V__ISTRIP       0000040
                     25: #define        V__INLCR        0000100
                     26: #define        V__IGNCR        0000200
                     27: #define        V__ICRNL        0000400
                     28: #define        V__IUCLC        0001000
                     29: #define        V__IXON 0002000
                     30: #define        V__IXANY        0004000
                     31: #define        V__IXOFF        0010000
                     32: 
                     33: /* output modes */
                     34: #define        V__OPOST        0000001
                     35: #define        V__OLCUC        0000002
                     36: #define        V__ONLCR        0000004
                     37: #define        V__OCRNL        0000010
                     38: #define        V__ONOCR        0000020
                     39: #define        V__ONLRET       0000040
                     40: #define        V__OFILL        0000100
                     41: #define        V__OFDEL        0000200
                     42: #define        V__NLDLY        0000400
                     43: #define        V__NL0  0
                     44: #define        V__NL1  0000400
                     45: #define        V__CRDLY        0003000
                     46: #define        V__CR0  0
                     47: #define        V__CR1  0001000
                     48: #define        V__CR2  0002000
                     49: #define        V__CR3  0003000
                     50: #define        V__TABDLY       0014000
                     51: #define        V__TAB0 0
                     52: #define        V__TAB1 0004000
                     53: #define        V__TAB2 0010000
                     54: #define        V__TAB3 0014000
                     55: #define        V__BSDLY        0020000
                     56: #define        V__BS0  0
                     57: #define        V__BS1  0020000
                     58: #define        V__VTDLY        0040000
                     59: #define        V__VT0  0
                     60: #define        V__VT1  0040000
                     61: #define        V__FFDLY        0100000
                     62: #define        V__FF0  0
                     63: #define        V__FF1  0100000
                     64: 
                     65: /* control modes */
                     66: #define        V__CBAUD        0000017
                     67: #define        V__B0   0
                     68: #define        V__B50  0000001
                     69: #define        V__B75  0000002
                     70: #define        V__B110 0000003
                     71: #define        V__B134 0000004
                     72: #define        V__B150 0000005
                     73: #define        V__B200 0000006
                     74: #define        V__B300 0000007
                     75: #define        V__B600 0000010
                     76: #define        V__B1200        0000011
                     77: #define        V__B1800        0000012
                     78: #define        V__B2400        0000013
                     79: #define        V__B4800        0000014
                     80: #define        V__B9600        0000015
                     81: #define        V__EXTA 0000016
                     82: #define        V__EXTB 0000017
                     83: #define        V__CSIZE        0000060
                     84: #define        V__CS5  0
                     85: #define        V__CS6  0000020
                     86: #define        V__CS7  0000040
                     87: #define        V__CS8  0000060
                     88: #define        V__CSTOPB       0000100
                     89: #define        V__CREAD        0000200
                     90: #define        V__PARENB       0000400
                     91: #define        V__PARODD       0001000
                     92: #define        V__HUPCL        0002000
                     93: #define        V__CLOCAL       0004000
                     94: #define        V__LOBLK        0010000
                     95: 
                     96: /* line discipline 0 modes */
                     97: #define        V__ISIG 0000001
                     98: #define        V__ICANON       0000002
                     99: #define        V__XCASE        0000004
                    100: #define        V__ECHO 0000010
                    101: #define        V__ECHOE        0000020
                    102: #define        V__ECHOK        0000040
                    103: #define        V__ECHONL       0000100
                    104: #define        V__NOFLSH       0000200
                    105: 
                    106: #define        V__SSPEED       7       /* default speed: 300 baud */
                    107: 
                    108: /*
                    109:  * Ioctl control packet
                    110:  */
                    111: struct Vtermio {
                    112:        unsigned short  c_iflag;        /* input modes */
                    113:        unsigned short  c_oflag;        /* output modes */
                    114:        unsigned short  c_cflag;        /* control modes */
                    115:        unsigned short  c_lflag;        /* line discipline modes */
                    116:        char    c_line;         /* line discipline */
                    117:        unsigned char   c_cc[V__NCC];   /* control chars */
                    118: };
                    119: #define        IOCTYPE 0xff00
                    120: 
                    121: #define        TIOC    ('T'<<8)
                    122: #define        TCGETA  (TIOC|1)
                    123: #define        TCSETA  (TIOC|2)
                    124: #define        TCSETAW (TIOC|3)
                    125: #define        TCSETAF (TIOC|4)
                    126: #define        TCSBRK  (TIOC|5)
                    127: #define        TCXONC  (TIOC|6)
                    128: #define        TCFLSH  (TIOC|7)
                    129: #define        TCDSET  (TIOC|32)
                    130: 
                    131: /* @(#)ttold.h 6.1 */
                    132: /* modes */
                    133: #define        VO_HUPCL        01
                    134: #define        VO_XTABS        02
                    135: #define        VO_LCASE        04
                    136: #define        VO_ECHO 010
                    137: #define        VO_CRMOD        020
                    138: #define        VO_RAW  040
                    139: #define        VO_ODDP 0100
                    140: #define        VO_EVENP        0200
                    141: #define        VO_NLDELAY      001400
                    142: #define        VO_NL1  000400
                    143: #define        VO_NL2  001000
                    144: #define        VO_TBDELAY      002000
                    145: #define        VO_NOAL 004000
                    146: #define        VO_CRDELAY      030000
                    147: #define        VO_CR1  010000
                    148: #define        VO_CR2  020000
                    149: #define        VO_VTDELAY      040000
                    150: #define        VO_BSDELAY      0100000

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.