extern.h revision 1.22 1 1.22 thorpej /* $NetBSD: extern.h,v 1.22 2003/01/18 10:52:16 thorpej Exp $ */
2 1.8 cgd
3 1.1 cgd /*-
4 1.5 cgd * Copyright (c) 1991, 1993, 1994
5 1.5 cgd * The Regents of the University of California. All rights reserved.
6 1.1 cgd *
7 1.1 cgd * Redistribution and use in source and binary forms, with or without
8 1.1 cgd * modification, are permitted provided that the following conditions
9 1.1 cgd * are met:
10 1.1 cgd * 1. Redistributions of source code must retain the above copyright
11 1.1 cgd * notice, this list of conditions and the following disclaimer.
12 1.1 cgd * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 cgd * notice, this list of conditions and the following disclaimer in the
14 1.1 cgd * documentation and/or other materials provided with the distribution.
15 1.1 cgd * 3. All advertising materials mentioning features or use of this software
16 1.1 cgd * must display the following acknowledgement:
17 1.1 cgd * This product includes software developed by the University of
18 1.1 cgd * California, Berkeley and its contributors.
19 1.1 cgd * 4. Neither the name of the University nor the names of its contributors
20 1.1 cgd * may be used to endorse or promote products derived from this software
21 1.1 cgd * without specific prior written permission.
22 1.1 cgd *
23 1.1 cgd * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 1.1 cgd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 1.1 cgd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 1.1 cgd * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 1.1 cgd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 1.1 cgd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 1.1 cgd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 1.1 cgd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 1.1 cgd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 1.1 cgd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 1.1 cgd * SUCH DAMAGE.
34 1.1 cgd *
35 1.5 cgd * @(#)extern.h 8.3 (Berkeley) 4/2/94
36 1.1 cgd */
37 1.1 cgd
38 1.5 cgd struct kinfo;
39 1.5 cgd struct nlist;
40 1.5 cgd struct var;
41 1.5 cgd struct varent;
42 1.1 cgd
43 1.17 simonb extern double ccpu;
44 1.20 matt extern int eval, fscale, mempages, nlistread, rawcpu, maxslp, uspace;
45 1.5 cgd extern int sumrusage, termwidth, totwidth;
46 1.22 thorpej extern int needenv, needcomm, commandonly;
47 1.15 simonb extern uid_t myuid;
48 1.16 simonb extern kvm_t *kd;
49 1.1 cgd extern VAR var[];
50 1.5 cgd extern VARENT *vhead;
51 1.1 cgd
52 1.1 cgd __BEGIN_DECLS
53 1.22 thorpej void command __P((void *, VARENT *, int));
54 1.22 thorpej void cputime __P((void *, VARENT *, int));
55 1.5 cgd int donlist __P((void));
56 1.17 simonb int donlist_sysctl __P((void));
57 1.10 mycroft void fmt_puts __P((char *, int *));
58 1.10 mycroft void fmt_putc __P((int, int *));
59 1.17 simonb double getpcpu __P((struct kinfo_proc2 *));
60 1.17 simonb double getpmem __P((struct kinfo_proc2 *));
61 1.22 thorpej void logname __P((void *, VARENT *, int));
62 1.22 thorpej void longtname __P((void *, VARENT *, int));
63 1.22 thorpej void lstarted __P((void *, VARENT *, int));
64 1.22 thorpej void lstate __P((void *, VARENT *, int));
65 1.22 thorpej void maxrss __P((void *, VARENT *, int));
66 1.5 cgd void nlisterr __P((struct nlist *));
67 1.22 thorpej void p_rssize __P((void *, VARENT *, int));
68 1.22 thorpej void pagein __P((void *, VARENT *, int));
69 1.5 cgd void parsefmt __P((char *));
70 1.22 thorpej void pcpu __P((void *, VARENT *, int));
71 1.22 thorpej void pmem __P((void *, VARENT *, int));
72 1.22 thorpej void pnice __P((void *, VARENT *, int));
73 1.22 thorpej void pri __P((void *, VARENT *, int));
74 1.5 cgd void printheader __P((void));
75 1.22 thorpej void pvar __P((void *, VARENT *, int));
76 1.22 thorpej void rssize __P((void *, VARENT *, int));
77 1.22 thorpej void runame __P((void *, VARENT *, int));
78 1.5 cgd void showkey __P((void));
79 1.22 thorpej void started __P((void *, VARENT *, int));
80 1.22 thorpej void state __P((void *, VARENT *, int));
81 1.22 thorpej void tdev __P((void *, VARENT *, int));
82 1.22 thorpej void tname __P((void *, VARENT *, int));
83 1.22 thorpej void tsize __P((void *, VARENT *, int));
84 1.22 thorpej void ucomm __P((void *, VARENT *, int));
85 1.22 thorpej void uname __P((void *, VARENT *, int));
86 1.22 thorpej void uvar __P((void *, VARENT *, int));
87 1.22 thorpej void vsize __P((void *, VARENT *, int));
88 1.22 thorpej void wchan __P((void *, VARENT *, int));
89 1.1 cgd __END_DECLS
90