Annotation of 43BSDTahoe/ucb/telnet/Source/defines.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1988 Regents of the University of California.
        !             3:  * All rights reserved.
        !             4:  *
        !             5:  * Redistribution and use in source and binary forms are permitted
        !             6:  * provided that this notice is preserved and that due credit is given
        !             7:  * to the University of California at Berkeley. The name of the University
        !             8:  * may not be used to endorse or promote products derived from this
        !             9:  * software without specific prior written permission. This software
        !            10:  * is provided ``as is'' without express or implied warranty.
        !            11:  *
        !            12:  *     @(#)defines.h   1.5 (Berkeley) 3/8/88
        !            13:  */
        !            14: 
        !            15: #define        settimer(x)     clocks.x = clocks.system++
        !            16: 
        !            17: #if    !defined(TN3270)
        !            18: 
        !            19: #define        ExitString(s,r) { fprintf(stderr, s); exit(r); }
        !            20: #define        Exit(x)                 exit(x)
        !            21: #define        SetIn3270()
        !            22: 
        !            23: #endif /* !defined(TN3270) */
        !            24: 
        !            25: #define        NETADD(c)       { *netoring.supply = c; ring_supplied(&netoring, 1); }
        !            26: #define        NET2ADD(c1,c2)  { NETADD(c1); NETADD(c2); }
        !            27: #define        NETBYTES()      (ring_full_count(&netoring))
        !            28: #define        NETROOM()       (ring_empty_count(&netoring))
        !            29: 
        !            30: #define        TTYADD(c)       if (!(SYNCHing||flushout)) { \
        !            31:                                *ttyoring.supply = c; \
        !            32:                                ring_supplied(&ttyoring, 1); \
        !            33:                        }
        !            34: #define        TTYBYTES()      (ring_full_count(&ttyoring))
        !            35: #define        TTYROOM()       (ring_empty_count(&ttyoring))
        !            36: 
        !            37: /*     Various modes */
        !            38: #define        MODE_LINE(m)    (modelist[m].modetype & LINE)
        !            39: #define        MODE_LOCAL_CHARS(m)     (modelist[m].modetype &  LOCAL_CHARS)
        !            40: #define        MODE_LOCAL_ECHO(m)      (modelist[m].modetype & LOCAL_ECHO)
        !            41: #define        MODE_COMMAND_LINE(m)    (modelist[m].modetype & COMMAND_LINE)
        !            42: 
        !            43: #define        LOCAL_CHARS     0x01            /* Characters processed locally */
        !            44: #define        LINE            0x02            /* Line-by-line mode of operation */
        !            45: #define        LOCAL_ECHO      0x04            /* Echoing locally */
        !            46: #define        COMMAND_LINE    0x08            /* Command line mode */

unix.superglobalmegacorp.com

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