|
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 - download
Length: 1473 (0x5c1) Types: TextFile Notes: UNIX file Names: »strstat.h«
└─⟦a6ab2eb36⟧ Bits:30004042/kconfig3.imd SW95705I 386/ix Multi-user Release 1.2 └─⟦a6ab2eb36⟧ UNIX Filesystem └─⟦this⟧ »kc/new/usr/include/sys/strstat.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. */ #ident "@(#)strstat.h 1.3" /* * Streams Statistics header file. This file * defines the counters which are maintained for statistics gathering * under Streams. */ typedef struct { int use; /* current item usage count */ int total; /* total item usage count */ int max; /* maximum item usage count */ int fail; /* count of allocation failures */ } alcdat; struct strstat { alcdat stream; /* stream allocation data */ alcdat queue; /* queue allocation data */ alcdat mblock; /* message block allocation data */ alcdat dblock; /* aggregate data block allocation data */ alcdat dblk[NCLASS]; /* data block class allocation data */ } ; /* in the following macro, x is assumed to be of type alcdat */ #define BUMPUP(X) {X.use++; X.total++;\ X.max=(X.use>X.max?X.use:X.max); } /* per-module statistics structure */ struct module_stat { long ms_pcnt; /* count of calls to put proc */ long ms_scnt; /* count of calls to service proc */ long ms_ocnt; /* count of calls to open proc */ long ms_ccnt; /* count of calls to close proc */ long ms_acnt; /* count of calls to admin proc */ char *ms_xptr; /* pointer to private statistics */ short ms_xsize; /* length of private statistics buffer */ };