extern.h revision 127958
1139749Simp/*- 2119853Scg * Copyright (c) 1991, 1993, 1994 350724Scg * The Regents of the University of California. All rights reserved. 450724Scg * 550724Scg * Redistribution and use in source and binary forms, with or without 650724Scg * modification, are permitted provided that the following conditions 750724Scg * are met: 850724Scg * 1. Redistributions of source code must retain the above copyright 950724Scg * notice, this list of conditions and the following disclaimer. 1050724Scg * 2. Redistributions in binary form must reproduce the above copyright 1150724Scg * notice, this list of conditions and the following disclaimer in the 1250724Scg * documentation and/or other materials provided with the distribution. 1350724Scg * 4. Neither the name of the University nor the names of its contributors 1450724Scg * may be used to endorse or promote products derived from this software 1550724Scg * without specific prior written permission. 1650724Scg * 1750724Scg * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1850724Scg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1950724Scg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2050724Scg * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2150724Scg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2250724Scg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2350724Scg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2450724Scg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2550724Scg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2650733Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2750724Scg * SUCH DAMAGE. 2850724Scg * 2974763Scg * @(#)extern.h 8.3 (Berkeley) 4/2/94 3074763Scg * $FreeBSD: head/bin/ps/extern.h 127958 2004-04-06 20:06:54Z markm $ 3174763Scg */ 32130585Sphk 33162588Snetchildstruct kinfo; 3450724Scgstruct nlist; 3570944Sjhbstruct var; 3670944Sjhbstruct varent; 3770944Sjhb 3870618Sjhbextern fixpt_t ccpu; 3974763Scgextern int cflag, eval, fscale, nlistread, rawcpu; 4074763Scgextern unsigned long mempages; 4174763Scgextern time_t now; 4274763Scgextern int sumrusage, termwidth, totwidth; 43162738Sariffextern VARENT *vhead; 44162738Sariff 45162738Sariff__BEGIN_DECLS 46162738Sariffvoid arguments(KINFO *, VARENT *); 4774763Scgvoid command(KINFO *, VARENT *); 4850724Scgvoid cputime(KINFO *, VARENT *); 49162588Snetchildint donlist(void); 50162588Snetchildvoid elapsed(KINFO *, VARENT *); 5174763ScgVARENT *find_varentry(VAR *); 5274763Scgconst char *fmt_argv(char **, char *, size_t); 5374763Scgdouble getpcpu(const KINFO *); 5474763Scgvoid kvar(KINFO *, VARENT *); 55162588Snetchildvoid label(KINFO *, VARENT *); 56162588Snetchildvoid logname(KINFO *, VARENT *); 57162588Snetchildvoid longtname(KINFO *, VARENT *); 58162588Snetchildvoid lstarted(KINFO *, VARENT *); 59162588Snetchildvoid maxrss(KINFO *, VARENT *); 60162588Snetchildvoid lockname(KINFO *, VARENT *); 6170134Scgvoid mwchan(KINFO *, VARENT *); 62160385Snetchildvoid nwchan(KINFO *, VARENT *); 63void pagein(KINFO *, VARENT *); 64void parsefmt(const char *, int); 65void pcpu(KINFO *, VARENT *); 66void pmem(KINFO *, VARENT *); 67void pri(KINFO *, VARENT *); 68void printheader(void); 69void priorityr(KINFO *, VARENT *); 70void rgroupname(KINFO *, VARENT *); 71void runame(KINFO *, VARENT *); 72void rvar(KINFO *, VARENT *); 73int s_label(KINFO *); 74int s_rgroupname(KINFO *); 75int s_runame(KINFO *); 76int s_uname(KINFO *); 77void showkey(void); 78void started(KINFO *, VARENT *); 79void state(KINFO *, VARENT *); 80void tdev(KINFO *, VARENT *); 81void tname(KINFO *, VARENT *); 82void ucomm(KINFO *, VARENT *); 83void uname(KINFO *, VARENT *); 84void vsize(KINFO *, VARENT *); 85void wchan(KINFO *, VARENT *); 86__END_DECLS 87