home *** CD-ROM | disk | FTP | other *** search
- /*
- * $Header: /ax/networking:include/sys/bkmac.h:networking 1.1 $
- * $Source: /ax/networking:include/sys/bkmac.h: $
- *
- * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
- *
- * $Log: bkmac.h,v $
- * Revision 1.1 95/01/11 10:18:55 kwelton
- * Initial revision
- *
- * Revision 1.3 88/06/17 20:18:16 beta
- * Acorn Unix initial beta version
- *
- */
- /* @(#)bkmac.h 1.2 87/05/15 3.2/4.3NFSSRC */
- /*
- * Copyright (c) 1982, 1986 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
- *
- * @(#)bkmac.h 7.1 (Berkeley) 6/4/86
- */
-
- /*
- * Macro definition of bk.c/netinput().
- * This is used to replace a call to
- * (*linesw[tp->t_line].l_rint)(c,tp);
- * with
- *
- * if (tp->t_line == NETLDISC)
- * BKINPUT(c, tp);
- * else
- * (*linesw[tp->t_line].l_rint)(c,tp);
- */
- #define BKINPUT(c, tp) { \
- if ((tp)->t_rec == 0) { \
- *(tp)->t_cp++ = c; \
- if (++(tp)->t_inbuf == 1024 || (c) == '\n') { \
- (tp)->t_rec = 1; \
- wakeup((caddr_t)&(tp)->t_rawq); \
- } \
- } \
- }
-
- /* EOF bkmac.h */
-