|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T U s
Length: 2766 (0xace)
Types: TextFile
Notes: UNIX file
Names: »slnutil.h«
└─⟦a6ab2eb36⟧ Bits:30004042/kconfig3.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦a6ab2eb36⟧ UNIX Filesystem
└─⟦this⟧ »kc/new/usr/include/sys/slnutil.h«
/*
* Copyright (c) 1984 AT&T
* All Rights Reserved
*
* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
* The copyright notice above does not evidence any actual
* or intended publication of such source code.
*
*
* Basic logical flags
*/
#ident "@(#)slnutil.h 1.2 -- 86/11/05"
#define TRUE 1
#define FALSE 0
#define YES 1
#define NO 0
#define PASSED 1
#define FAILED -1
/*
* Standard UNIX file descriptors
*/
#define STDIN 0
#define STDOUT 1
#define STDERR 2
typedef int bool;
\f
#ifdef INKERNEL
/*
* The folowing definitions are valid only for KERNEL code
*
*
* Provide some more familiar names for certain STREAMS structures.
* These reflect name chnage differences in BASIC STREAMS and BPLUS
* STREAMS
*/
#define QUEUE queue_t
#define MESSAGE mblk_t
#define BLOCK mblk_t
#define DATAB dblk_t
/*
* The following declarations pertain to standard STREAMS data
* structures
*/
#define MPREV(mptr) ((mptr)->b_prev)
#define MNEXT(mptr) ((mptr)->b_next)
#define MREAD(mptr) ((mptr)->b_rptr)
#define MWRITE(mptr) ((mptr)->b_wptr)
#define MCONT(mptr) ((mptr)->b_cont)
#define MTYPE(mptr) ((mptr)->b_datap->db_type)
#define MBASE(mptr) ((mptr)->b_datap->db_base)
#define MLIMIT(mptr) ((mptr)->b_datap->db_lim)
#define MREF(mptr) ((mptr)->b_datap->db_ref)
#define QFIRST(qptr) ((qptr)->q_first)
#define QLAST(qptr) ((qptr)->q_last)
#define QNEXT(qptr) ((qptr)->q_next)
#define QUSER(qptr) ((qptr)->q_ptr)
#define QFLAG(qptr) ((qptr)->q_flag)
#define QCOUNT(qptr) ((qptr)->q_count)
#define QPUTP(qptr) ((qptr)->q_qinfo->qi_putp)
#define QSRVP(qptr) ((qptr)->q_qinfo->qi_srvp)
typedef struct iocblk IOCBLK;
/*
* The following declarations provide standard STREAMS operations
*/
#define QSEND(qptr,msg) ((*QPUTP(QNEXT(qptr))) (QNEXT(qptr),msg))
/*
* Fast kernel-to-kernel memcpy
*/
#define memcpy(to,from,n) bcopy(from,to,n)
/*
* Fast kernel clear function
*/
#ifdef u3b
#define memclr(from,n) kclear(from,n)
#endif
#if u3b2+u3b5
#define memclr(from,n) bzero(from,n)
#endif
#ifdef i386
/* bzero clears u_caddrflt and no stream module should alter the u area
*/
#define memclr(from,n) {char *cp; int i; \
cp = (caddr_t) from; i=n; \
while(i--) \
*cp++=0; \
}
#endif
\f
/*
* Define the STARLAN statistics structure.
*/
struct slan_stat {
unsigned long ns_strerr; /* STREAMS fcn errors */
unsigned long ns_rpckts; /* nbr packets read */
unsigned long ns_wpckts; /* nbr packets written */
unsigned long ns_rbytes; /* nbr bytes read */
unsigned long ns_wbytes; /* nbr bytes written */
long *ns_xptr; /* ptr to array of counters */
unsigned short ns_xsize; /* number of counters */
};
typedef struct slan_stat SLN_STAT;
#define SLN_SCNTS 5
#endif