Annotation of coherent/a/usr/include.b4ps2/v7sgtty.h, revision 1.1

1.1     ! root        1: /* (-lgl
        !             2:  *     COHERENT Version 3.0
        !             3:  *     Copyright 1989 by Inetco Systems, Ltd.
        !             4:  *     All rights reserved. May not be copied without permission.
        !             5:  -lgl) */
        !             6: #ifndef         V7SGTTY_H
        !             7: #define         V7SGTTY_H      V7SGTTY_H
        !             8: 
        !             9: /*
        !            10:  * Terminal ioctl.
        !            11:  */
        !            12: 
        !            13: #include <sys/types.h>
        !            14: 
        !            15: /*
        !            16:  * Ioctl functions.
        !            17:  */
        !            18: #define        TIOCSETP        0100            /* Terminal set modes (old stty) */
        !            19: #define        TIOCGETP        0101            /* Terminal get modes (old gtty) */
        !            20: #define        TIOCSETC        0102            /* Set characters */
        !            21: #define        TIOCGETC        0103            /* Get characters */
        !            22: #define        TIOCSETN        0104            /* No delay or output flushed */
        !            23: #define        TIOCEXCL        0105            /* Set exclusive use */
        !            24: #define        TIOCNXCL        0106            /* Set non exclusive use */
        !            25: #define        TIOCHPCL        0107            /* Hang up on last close */
        !            26: #define        TIOCFLUSH       0110            /* Flush all characters in queue */
        !            27: #define        TIOCQUERY       0120            /* Test if any chars on input queue */
        !            28: 
        !            29: #define        TIOCOUTQ        0121            /* Number of chars in output queue */
        !            30: #define        TIOCSTI         0122            /* Simulate a terminal in character */
        !            31: #define        TIOCCBRK        0123            /* Clear break condition */
        !            32: #define        TIOCSBRK        0124            /* Set break condition */
        !            33: 
        !            34: #define        TIOCGETF        0200            /* Get function keys (dev. dep.) */
        !            35: #define        TIOCSETF        0201            /* Set function keys */
        !            36: 
        !            37: /*
        !            38:  * Compatibility with gtty and stty.
        !            39:  */
        !            40: #define        stty(u,v)       ioctl(u,TIOCSETP,v)
        !            41: #define        gtty(u,v)       ioctl(u,TIOCGETP,v)
        !            42: 
        !            43: /*
        !            44:  * Structure for TIOCSETP/TIOCGETP
        !            45:  */
        !            46: struct sgttyb {
        !            47:        char    sg_ispeed;              /* Input speed */
        !            48:        char    sg_ospeed;              /* Output speed */
        !            49:        char    sg_erase;               /* Character erase */
        !            50:        char    sg_kill;                /* Line kill character */
        !            51:        int     sg_flags;               /* Flags */
        !            52: };
        !            53: 
        !            54: /*
        !            55:  * Structure for TIOCSETC/TIOCGETC
        !            56:  */
        !            57: struct tchars {
        !            58:        char    t_intrc;                /* Interrupt */
        !            59:        char    t_quitc;                /* Quit */
        !            60:        char    t_startc;               /* Start output */
        !            61:        char    t_stopc;                /* Stop output */
        !            62:        char    t_eofc;                 /* End of file */
        !            63:        char    t_brkc;                 /* Input delimiter */
        !            64: };
        !            65: 
        !            66: /*
        !            67:  * Overlying structure for ioctl.
        !            68:  */
        !            69: union ioctl {
        !            70:        struct  sgttyb io_sgttyb;
        !            71:        struct  tchars io_tchars;
        !            72: };
        !            73: 
        !            74: /*
        !            75:  * Bits from old stty/gtty modes.
        !            76:  */
        !            77: #define        V7_EVENP        01              /* Allow even parity */
        !            78: #define        V7_ODDP         02              /* Allow odd parity */
        !            79: #define V7_CRMOD       04              /* Map '\r' to '\n' */
        !            80: #define        V7_ECHO         010             /* Echo input characters */
        !            81: #define        V7_LCASE        020             /* Lowercase mapping on input */
        !            82: #define        V7_CBREAK       040             /* Each input character causes wakeup */
        !            83: #define        V7_RAWIN        0100            /* 8-bit input raw */
        !            84: #define        V7_RAWOUT       0200            /* 8-bit output raw */
        !            85: #define        V7_TANDEM       0400            /* flow control protocol */
        !            86: #define        V7_XTABS        01000           /* Expand tabs to spaces */
        !            87: #define        V7_CRT          02000           /* CRT character erase */
        !            88: 
        !            89: #define        V7_CSIZE        070000          /* Character size mask */
        !            90: #define        V7_CSV7         000000          /* V7 (7 bits + parity, 8 - parity) */
        !            91: #define        V7_CS5          040000          /* 5 data bits */
        !            92: #define        V7_CS6          050000          /* 6 data bits */
        !            93: #define        V7_CS7          060000          /* 7 data bits */
        !            94: #define        V7_CS8          070000          /* 8 data bits */
        !            95: 
        !            96: /*
        !            97:  * Compatibility.
        !            98:  */
        !            99: #define        V7_RAW  (V7_RAWIN|V7_RAWOUT)    /* Raw mode */
        !           100: 
        !           101: /*
        !           102:  * Names for terminal speeds.
        !           103:  */
        !           104: #define        V7_B0           0               /* Undefined */
        !           105: #define        V7_B50          1               /* 50 bps */
        !           106: #define        V7_B75          2               /* 75 bps */
        !           107: #define        V7_B110         3               /* 110 bps */
        !           108: #define        V7_B134         4               /* 134.5 bps (IBM 2741) */
        !           109: #define        V7_B150         5               /* 150 bps */
        !           110: #define        V7_B200         6               /* 200 bps */
        !           111: #define        V7_B300         7               /* 300 bps */
        !           112: #define        V7_B600         8               /* 600 bps */
        !           113: #define        V7_B1200        9               /* 1200 bps */
        !           114: #define        V7_B1800        10              /* 1800 bps */
        !           115: #define        V7_B2000        11              /* 2000 bps */
        !           116: #define        V7_B2400        12              /* 2400 bps */
        !           117: #define        V7_B3600        13              /* 3600 bps */
        !           118: #define        V7_B4800        14              /* 4800 bps */
        !           119: #define        V7_B7200        15              /* 7200 bps */
        !           120: #define        V7_B9600        16              /* 9600 bps */
        !           121: #define        V7_B19200       17              /* 19200 bps */
        !           122: #define        V7_EXTA         18              /* External A (DH-11) */
        !           123: #define        V7_EXTB         19              /* External B (DH-11) */
        !           124: 
        !           125: #endif

unix.superglobalmegacorp.com

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