Home | History | Annotate | Line # | Download | only in ps
extern.h revision 1.25
      1  1.25      agc /*	$NetBSD: extern.h,v 1.25 2003/08/07 09:05:23 agc 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.25      agc  * 3. Neither the name of the University nor the names of its contributors
     16   1.1      cgd  *    may be used to endorse or promote products derived from this software
     17   1.1      cgd  *    without specific prior written permission.
     18   1.1      cgd  *
     19   1.1      cgd  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     20   1.1      cgd  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     21   1.1      cgd  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     22   1.1      cgd  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     23   1.1      cgd  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     24   1.1      cgd  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     25   1.1      cgd  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     26   1.1      cgd  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     27   1.1      cgd  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     28   1.1      cgd  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     29   1.1      cgd  * SUCH DAMAGE.
     30   1.1      cgd  *
     31   1.5      cgd  *	@(#)extern.h	8.3 (Berkeley) 4/2/94
     32   1.1      cgd  */
     33   1.1      cgd 
     34   1.5      cgd struct kinfo;
     35   1.5      cgd struct nlist;
     36   1.5      cgd struct var;
     37   1.5      cgd struct varent;
     38   1.1      cgd 
     39  1.17   simonb extern double ccpu;
     40  1.20     matt extern int eval, fscale, mempages, nlistread, rawcpu, maxslp, uspace;
     41   1.5      cgd extern int sumrusage, termwidth, totwidth;
     42  1.22  thorpej extern int needenv, needcomm, commandonly;
     43  1.15   simonb extern uid_t myuid;
     44  1.16   simonb extern kvm_t *kd;
     45   1.1      cgd extern VAR var[];
     46   1.5      cgd extern VARENT *vhead;
     47  1.24      dsl extern VARENT *sorthead;
     48   1.1      cgd 
     49   1.1      cgd __BEGIN_DECLS
     50  1.22  thorpej void	 command __P((void *, VARENT *, int));
     51  1.22  thorpej void	 cputime __P((void *, VARENT *, int));
     52   1.5      cgd int	 donlist __P((void));
     53  1.17   simonb int	 donlist_sysctl __P((void));
     54  1.10  mycroft void	 fmt_puts __P((char *, int *));
     55  1.10  mycroft void	 fmt_putc __P((int, int *));
     56  1.17   simonb double	 getpcpu __P((struct kinfo_proc2 *));
     57  1.17   simonb double	 getpmem __P((struct kinfo_proc2 *));
     58  1.23   atatat void	 gname __P((void *, VARENT *, int));
     59  1.23   atatat void	 groups __P((void *, VARENT *, int));
     60  1.23   atatat void	 groupnames __P((void *, VARENT *, int));
     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.24      dsl void	 parsefmt __P((const char *));
     70  1.24      dsl void	 parsesort __P((const char *));
     71  1.22  thorpej void	 pcpu __P((void *, VARENT *, int));
     72  1.22  thorpej void	 pmem __P((void *, VARENT *, int));
     73  1.22  thorpej void	 pnice __P((void *, VARENT *, int));
     74  1.22  thorpej void	 pri __P((void *, VARENT *, int));
     75   1.5      cgd void	 printheader __P((void));
     76  1.24      dsl void	 putimeval __P((void *, VARENT *, int));
     77  1.22  thorpej void	 pvar __P((void *, VARENT *, int));
     78  1.23   atatat void	 rgname __P((void *, VARENT *, int));
     79  1.22  thorpej void	 rssize __P((void *, VARENT *, int));
     80  1.22  thorpej void	 runame __P((void *, VARENT *, int));
     81   1.5      cgd void	 showkey __P((void));
     82  1.22  thorpej void	 started __P((void *, VARENT *, int));
     83  1.22  thorpej void	 state __P((void *, VARENT *, int));
     84  1.23   atatat void	 svgname __P((void *, VARENT *, int));
     85  1.23   atatat void	 svuname __P((void *, VARENT *, int));
     86  1.22  thorpej void	 tdev __P((void *, VARENT *, int));
     87  1.22  thorpej void	 tname __P((void *, VARENT *, int));
     88  1.22  thorpej void	 tsize __P((void *, VARENT *, int));
     89  1.22  thorpej void	 ucomm __P((void *, VARENT *, int));
     90  1.22  thorpej void	 uname __P((void *, VARENT *, int));
     91  1.22  thorpej void	 uvar __P((void *, VARENT *, int));
     92  1.22  thorpej void	 vsize __P((void *, VARENT *, int));
     93  1.22  thorpej void	 wchan __P((void *, VARENT *, int));
     94   1.1      cgd __END_DECLS
     95