extern.h revision 25271
1263320Sdim/*- 2263320Sdim * Copyright (c) 1991, 1993, 1994 3263320Sdim * The Regents of the University of California. All rights reserved. 4263320Sdim * 5263320Sdim * Redistribution and use in source and binary forms, with or without 6263320Sdim * modification, are permitted provided that the following conditions 7263320Sdim * are met: 8269012Semaste * 1. Redistributions of source code must retain the above copyright 9263320Sdim * notice, this list of conditions and the following disclaimer. 10263320Sdim * 2. Redistributions in binary form must reproduce the above copyright 11263320Sdim * notice, this list of conditions and the following disclaimer in the 12263320Sdim * documentation and/or other materials provided with the distribution. 13263320Sdim * 3. All advertising materials mentioning features or use of this software 14263320Sdim * must display the following acknowledgement: 15263320Sdim * This product includes software developed by the University of 16263320Sdim * California, Berkeley and its contributors. 17263320Sdim * 4. Neither the name of the University nor the names of its contributors 18263320Sdim * may be used to endorse or promote products derived from this software 19263320Sdim * without specific prior written permission. 20263320Sdim * 21263320Sdim * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22263320Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23263320Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24263320Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25263320Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26263320Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27263320Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28263320Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29263320Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30263320Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31263320Sdim * SUCH DAMAGE. 32263320Sdim * 33263320Sdim * @(#)extern.h 8.3 (Berkeley) 4/2/94 34263320Sdim * $Id: extern.h,v 1.5 1997/02/22 14:04:59 peter Exp $ 35263320Sdim */ 36263320Sdim 37263320Sdimstruct kinfo; 38263320Sdimstruct nlist; 39263320Sdimstruct var; 40263320Sdimstruct varent; 41263320Sdim 42263320Sdimextern fixpt_t ccpu; 43263320Sdimextern int eval, fscale, mempages, nlistread, rawcpu, cflag; 44263320Sdimextern int sumrusage, termwidth, totwidth; 45263320Sdimextern VAR var[]; 46263320Sdimextern VARENT *vhead; 47263320Sdim 48263320Sdim__BEGIN_DECLS 49263320Sdimvoid command __P((KINFO *, VARENT *)); 50263320Sdimvoid cputime __P((KINFO *, VARENT *)); 51263320Sdimint donlist __P((void)); 52263320Sdimvoid evar __P((KINFO *, VARENT *)); 53263320Sdimchar *fmt_argv __P((char **, char *, int)); 54263320Sdimdouble getpcpu __P((KINFO *)); 55263320Sdimdouble getpmem __P((KINFO *)); 56263320Sdimvoid logname __P((KINFO *, VARENT *)); 57263320Sdimvoid longtname __P((KINFO *, VARENT *)); 58263320Sdimvoid lstarted __P((KINFO *, VARENT *)); 59263320Sdimvoid maxrss __P((KINFO *, VARENT *)); 60263320Sdimvoid nlisterr __P((struct nlist *)); 61263320Sdimvoid p_rssize __P((KINFO *, VARENT *)); 62263320Sdimvoid pagein __P((KINFO *, VARENT *)); 63263320Sdimvoid parsefmt __P((char *)); 64263320Sdimvoid pcpu __P((KINFO *, VARENT *)); 65263320Sdimvoid pmem __P((KINFO *, VARENT *)); 66263320Sdimvoid pri __P((KINFO *, VARENT *)); 67263320Sdimvoid printheader __P((void)); 68263320Sdimvoid pvar __P((KINFO *, VARENT *)); 69263320Sdimvoid rssize __P((KINFO *, VARENT *)); 70263320Sdimvoid runame __P((KINFO *, VARENT *)); 71263320Sdimint s_runame __P((KINFO *)); 72263320Sdimvoid rvar __P((KINFO *, VARENT *)); 73263320Sdimvoid showkey __P((void)); 74263320Sdimvoid started __P((KINFO *, VARENT *)); 75263320Sdimvoid state __P((KINFO *, VARENT *)); 76263320Sdimvoid tdev __P((KINFO *, VARENT *)); 77263320Sdimvoid tname __P((KINFO *, VARENT *)); 78263320Sdim#ifndef NEWVM 79263320Sdimvoid trss __P((KINFO *, VARENT *)); 80263320Sdim#endif 81263320Sdimvoid tsize __P((KINFO *, VARENT *)); 82263320Sdimvoid ucomm __P((KINFO *, VARENT *)); 83263320Sdimvoid uname __P((KINFO *, VARENT *)); 84263320Sdimint s_uname __P((KINFO *)); 85263320Sdimvoid uvar __P((KINFO *, VARENT *)); 86263320Sdimvoid vsize __P((KINFO *, VARENT *)); 87263320Sdimvoid wchan __P((KINFO *, VARENT *)); 88263320Sdim__END_DECLS 89263320Sdim