Annotation of 43BSDReno/sys/hpux/hpux_termio.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1988 University of Utah.
                      3:  * Copyright (c) 1990 The Regents of the University of California.
                      4:  * All rights reserved.
                      5:  *
                      6:  * This code is derived from software contributed to Berkeley by
                      7:  * the Systems Programming Group of the University of Utah Computer
                      8:  * Science Department.
                      9:  *
                     10:  * Redistribution is only permitted until one year after the first shipment
                     11:  * of 4.4BSD by the Regents.  Otherwise, redistribution and use in source and
                     12:  * binary forms are permitted provided that: (1) source distributions retain
                     13:  * this entire copyright notice and comment, and (2) distributions including
                     14:  * binaries display the following acknowledgement:  This product includes
                     15:  * software developed by the University of California, Berkeley and its
                     16:  * contributors'' in the documentation or other materials provided with the
                     17:  * distribution and in all advertising materials mentioning features or use
                     18:  * of this software.  Neither the name of the University nor the names of
                     19:  * its contributors may be used to endorse or promote products derived from
                     20:  * this software without specific prior written permission.
                     21:  * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
                     22:  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
                     23:  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     24:  *
                     25:  * from: Utah $Hdr: hpux.h 1.15 89/09/25$
                     26:  *
                     27:  *     @(#)hpux_termio.h       7.2 (Berkeley) 6/27/90
                     28:  */
                     29: 
                     30: /* HP-UX termio stuff */
                     31: 
                     32: #define        HPUXNCC 8
                     33: 
                     34: /* control characters */
                     35: #define        HPUXVINTR       0
                     36: #define        HPUXVQUIT       1
                     37: #define        HPUXVERASE      2
                     38: #define        HPUXVKILL       3
                     39: #define        HPUXVEOF        4
                     40: #define        HPUXVEOL        5
                     41: #define        HPUXVMIN        4
                     42: #define        HPUXVTIME       5
                     43: 
                     44: /* input modes */
                     45: #define        TIO_IGNBRK      0x00000001      /* 0000001 */
                     46: #define        TIO_BRKINT      0x00000002      /* 0000002 */
                     47: #define        TIO_IGNPAR      0x00000004      /* 0000004 */
                     48: #define        TIO_PARMRK      0x00000008      /* 0000010 */
                     49: #define        TIO_INPCK       0x00000010      /* 0000020 */
                     50: #define        TIO_ISTRIP      0x00000020      /* 0000040 */
                     51: #define        TIO_INLCR       0x00000040      /* 0000100 */
                     52: #define        TIO_IGNCR       0x00000080      /* 0000200 */
                     53: #define        TIO_ICRNL       0x00000100      /* 0000400 */
                     54: #define        TIO_IUCLC       0x00000200      /* 0001000 */
                     55: #define        TIO_IXON        0x00000400      /* 0002000 */
                     56: #define        TIO_IXANY       0x00000800      /* 0004000 */
                     57: #define        TIO_IXOFF       0x00001000      /* 0010000 */
                     58: #define        TIO_IENQAK      0x00002000      /* 0020000 */
                     59: 
                     60: /* output modes */
                     61: #define        TIO_OPOST       0x00000001      /* 0000001 */
                     62: #define        TIO_OLCUC       0x00000002      /* 0000002 */
                     63: #define        TIO_ONLCR       0x00000004      /* 0000004 */
                     64: #define        TIO_OCRNL       0x00000008      /* 0000010 */
                     65: #define        TIO_ONOCR       0x00000010      /* 0000020 */
                     66: #define        TIO_ONLRET      0x00000020      /* 0000040 */
                     67: #define        TIO_OFILL       0x00000040      /* 0000100 */
                     68: #define        TIO_OFDEL       0x00000080      /* 0000200 */
                     69: #define        TIO_NLDLY       0x00000100      /* 0000400 */
                     70: #define        TIO_NL0         0
                     71: #define        TIO_NL1         0x00000100      /* 0000400 */
                     72: #define        TIO_CRDLY       0x00000600      /* 0003000 */
                     73: #define        TIO_CR0         0
                     74: #define        TIO_CR1         0x00000200      /* 0001000 */
                     75: #define        TIO_CR2         0x00000400      /* 0002000 */
                     76: #define        TIO_CR3         0x00000600      /* 0003000 */
                     77: #define        TIO_TABDLY      0x00001800      /* 0014000 */
                     78: #define        TIO_TAB0        0
                     79: #define        TIO_TAB1        0x00000800      /* 0004000 */
                     80: #define        TIO_TAB2        0x00001000      /* 0010000 */
                     81: #define        TIO_TAB3        0x00001800      /* 0014000 */
                     82: #define        TIO_BSDLY       0x00002000      /* 0020000 */
                     83: #define        TIO_BS0         0
                     84: #define        TIO_BS1         0x00002000      /* 0020000 */
                     85: #define        TIO_VTDLY       0x00004000      /* 0040000 */
                     86: #define        TIO_VT0         0
                     87: #define        TIO_VT1         0x00004000      /* 0040000 */
                     88: #define        TIO_FFDLY       0x00008000      /* 0100000 */
                     89: #define        TIO_FF0         0
                     90: #define        TIO_FF1         0x00008000      /* 0100000 */
                     91: 
                     92: /* control modes */
                     93: #define        TIO_CBAUD       0x0000001f      /* 0000037 */
                     94: #define        TIO_B0          0
                     95: #define        TIO_B50         0x00000001      /* 0000001 */
                     96: #define        TIO_B75         0x00000002      /* 0000002 */
                     97: #define        TIO_B110        0x00000003      /* 0000003 */
                     98: #define        TIO_B134        0x00000004      /* 0000004 */
                     99: #define        TIO_B150        0x00000005      /* 0000005 */
                    100: #define        TIO_B200        0x00000006      /* 0000006 */
                    101: #define        TIO_B300        0x00000007      /* 0000007 */
                    102: #define        TIO_B600        0x00000008      /* 0000010 */
                    103: #define        TIO_B900        0x00000009      /* 0000011 */
                    104: #define        TIO_B1200       0x0000000a      /* 0000012 */
                    105: #define        TIO_B1800       0x0000000b      /* 0000013 */
                    106: #define        TIO_B2400       0x0000000c      /* 0000014 */
                    107: #define        TIO_B3600       0x0000000d      /* 0000015 */
                    108: #define        TIO_B4800       0x0000000e      /* 0000016 */
                    109: #define        TIO_B7200       0x0000000f      /* 0000017 */
                    110: #define        TIO_B9600       0x00000010      /* 0000020 */
                    111: #define        TIO_B19200      0x00000011      /* 0000021 */
                    112: #define        TIO_B38400      0x00000012      /* 0000022 */
                    113: #define        TIO_EXTA        0x0000001e      /* 0000036 */
                    114: #define        TIO_EXTB        0x0000001f      /* 0000037 */
                    115: #define        TIO_CSIZE       0x00000060      /* 0000140 */
                    116: #define        TIO_CS5         0
                    117: #define        TIO_CS6         0x00000020      /* 0000040 */
                    118: #define        TIO_CS7         0x00000040      /* 0000100 */
                    119: #define        TIO_CS8         0x00000060      /* 0000140 */
                    120: #define        TIO_CSTOPB      0x00000080      /* 0000200 */
                    121: #define        TIO_CREAD       0x00000100      /* 0000400 */
                    122: #define        TIO_PARENB      0x00000200      /* 0001000 */
                    123: #define        TIO_PARODD      0x00000400      /* 0002000 */
                    124: #define        TIO_HUPCL       0x00000800      /* 0004000 */
                    125: #define        TIO_CLOCAL      0x00001000      /* 0010000 */
                    126: #define TIO_CRTS       0x00002000      /* 0020000 */ /* Obsolete */
                    127: 
                    128: /* line discipline 0 modes */
                    129: #define        TIO_ISIG        0x00000001      /* 0000001 */
                    130: #define        TIO_ICANON      0x00000002      /* 0000002 */
                    131: #define        TIO_XCASE       0x00000004      /* 0000004 */
                    132: #define        TIO_ECHO        0x00000008      /* 0000010 */
                    133: #define        TIO_ECHOE       0x00000010      /* 0000020 */
                    134: #define        TIO_ECHOK       0x00000020      /* 0000040 */
                    135: #define        TIO_ECHONL      0x00000040      /* 0000100 */
                    136: #define        TIO_NOFLSH      0x00000080      /* 0000200 */
                    137: 
                    138: struct hpuxtermio {
                    139:        u_short c_iflag;        /* input modes */
                    140:        u_short c_oflag;        /* output modes */
                    141:        u_short c_cflag;        /* control modes */
                    142:        u_short c_lflag;        /* line discipline modes */
                    143:        char    c_line;         /* line discipline */
                    144:        u_char  c_cc[HPUXNCC];  /* control chars */
                    145: };
                    146: 
                    147: #define        HPUXTCGETA      _IOR('T', 1, struct hpuxtermio)
                    148: #define        HPUXTCSETA      _IOW('T', 2, struct hpuxtermio)
                    149: #define        HPUXTCSETAW     _IOW('T', 3, struct hpuxtermio)
                    150: #define        HPUXTCSETAF     _IOW('T', 4, struct hpuxtermio)

unix.superglobalmegacorp.com

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