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