Annotation of 43BSD/sys/h/bkmac.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1982, 1986 Regents of the University of California.
                      3:  * All rights reserved.  The Berkeley software License Agreement
                      4:  * specifies the terms and conditions for redistribution.
                      5:  *
                      6:  *     @(#)bkmac.h     7.1 (Berkeley) 6/4/86
                      7:  */
                      8: 
                      9: /*
                     10:  * Macro definition of bk.c/netinput().
                     11:  * This is used to replace a call to
                     12:  *             (*linesw[tp->t_line].l_rint)(c,tp);
                     13:  * with
                     14:  *
                     15:  *             if (tp->t_line == NETLDISC)
                     16:  *                     BKINPUT(c, tp);
                     17:  *             else
                     18:  *                     (*linesw[tp->t_line].l_rint)(c,tp);
                     19:  */
                     20: #define        BKINPUT(c, tp) { \
                     21:        if ((tp)->t_rec == 0) { \
                     22:                *(tp)->t_cp++ = c; \
                     23:                if (++(tp)->t_inbuf == 1024 || (c) == '\n') { \
                     24:                        (tp)->t_rec = 1; \
                     25:                        wakeup((caddr_t)&(tp)->t_rawq); \
                     26:                } \
                     27:        } \
                     28: }

unix.superglobalmegacorp.com

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