xref: /original-bsd/bin/ps/extern.h (revision 731b2947)
1 /*-
2  * Copyright (c) 1991, 1993, 1994
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)extern.h	8.3 (Berkeley) 04/02/94
8  */
9 
10 struct kinfo;
11 struct nlist;
12 struct var;
13 struct varent;
14 
15 extern fixpt_t ccpu;
16 extern int eval, fscale, mempages, nlistread, rawcpu;
17 extern int sumrusage, termwidth, totwidth;
18 extern VAR var[];
19 extern VARENT *vhead;
20 
21 __BEGIN_DECLS
22 void	 command __P((KINFO *, VARENT *));
23 void	 cputime __P((KINFO *, VARENT *));
24 int	 donlist __P((void));
25 void	 evar __P((KINFO *, VARENT *));
26 char	*fmt_argv __P((char **, char *, int));
27 double	 getpcpu __P((KINFO *));
28 double	 getpmem __P((KINFO *));
29 void	 logname __P((KINFO *, VARENT *));
30 void	 longtname __P((KINFO *, VARENT *));
31 void	 lstarted __P((KINFO *, VARENT *));
32 void	 maxrss __P((KINFO *, VARENT *));
33 void	 nlisterr __P((struct nlist *));
34 void	 p_rssize __P((KINFO *, VARENT *));
35 void	 pagein __P((KINFO *, VARENT *));
36 void	 parsefmt __P((char *));
37 void	 pcpu __P((KINFO *, VARENT *));
38 void	 pmem __P((KINFO *, VARENT *));
39 void	 pri __P((KINFO *, VARENT *));
40 void	 printheader __P((void));
41 void	 pvar __P((KINFO *, VARENT *));
42 void	 rssize __P((KINFO *, VARENT *));
43 void	 runame __P((KINFO *, VARENT *));
44 void	 rvar __P((KINFO *, VARENT *));
45 void	 showkey __P((void));
46 void	 started __P((KINFO *, VARENT *));
47 void	 state __P((KINFO *, VARENT *));
48 void	 tdev __P((KINFO *, VARENT *));
49 void	 tname __P((KINFO *, VARENT *));
50 #ifndef NEWVM
51 void	 trss __P((KINFO *, VARENT *));
52 #endif
53 void	 tsize __P((KINFO *, VARENT *));
54 void	 ucomm __P((KINFO *, VARENT *));
55 void	 uname __P((KINFO *, VARENT *));
56 void	 uvar __P((KINFO *, VARENT *));
57 void	 vsize __P((KINFO *, VARENT *));
58 void	 wchan __P((KINFO *, VARENT *));
59 __END_DECLS
60