extern.h revision 97958
1285SN/A/*- 2462SN/A * Copyright (c) 1991, 1993, 1994 3285SN/A * The Regents of the University of California. All rights reserved. 4285SN/A * 5285SN/A * Redistribution and use in source and binary forms, with or without 6285SN/A * modification, are permitted provided that the following conditions 7285SN/A * are met: 8285SN/A * 1. Redistributions of source code must retain the above copyright 9285SN/A * notice, this list of conditions and the following disclaimer. 10285SN/A * 2. Redistributions in binary form must reproduce the above copyright 11285SN/A * notice, this list of conditions and the following disclaimer in the 12285SN/A * documentation and/or other materials provided with the distribution. 13285SN/A * 3. All advertising materials mentioning features or use of this software 14285SN/A * must display the following acknowledgement: 15285SN/A * This product includes software developed by the University of 16285SN/A * California, Berkeley and its contributors. 17285SN/A * 4. Neither the name of the University nor the names of its contributors 18285SN/A * may be used to endorse or promote products derived from this software 19285SN/A * without specific prior written permission. 20285SN/A * 21285SN/A * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22285SN/A * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23285SN/A * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24285SN/A * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25285SN/A * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26285SN/A * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27285SN/A * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28285SN/A * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29285SN/A * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30285SN/A * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31285SN/A * SUCH DAMAGE. 32396SN/A * 33396SN/A * @(#)extern.h 8.3 (Berkeley) 4/2/94 34396SN/A * $FreeBSD: head/bin/ps/extern.h 97958 2002-06-06 20:21:47Z jmallett $ 35396SN/A */ 36396SN/A 37285SN/Astruct kinfo; 38285SN/Astruct nlist; 39285SN/Astruct var; 40285SN/Astruct varent; 41285SN/A 42285SN/Aextern fixpt_t ccpu; 43285SN/Aextern int cflag, eval, fscale, mempages, nlistread, rawcpu; 44285SN/Aextern int sumrusage, termwidth, totwidth; 45285SN/Aextern VARENT *vhead; 46285SN/A 47285SN/A__BEGIN_DECLS 48285SN/Avoid arguments(KINFO *, VARENT *); 49285SN/Avoid command(KINFO *, VARENT *); 50285SN/Avoid cputime(KINFO *, VARENT *); 51285SN/Aint donlist(void); 52285SN/Aconst char *fmt_argv(char **, char *, size_t); 53double getpcpu(const KINFO *); 54void kvar(KINFO *, VARENT *); 55void lattr(KINFO *, VARENT *); 56void logname(KINFO *, VARENT *); 57void longtname(KINFO *, VARENT *); 58void lstarted(KINFO *, VARENT *); 59void maxrss(KINFO *, VARENT *); 60void mtxname(KINFO *, VARENT *); 61void mwchan(KINFO *, VARENT *); 62void pagein(KINFO *, VARENT *); 63void parsefmt(const char *); 64void pcpu(KINFO *, VARENT *); 65void pmem(KINFO *, VARENT *); 66void pri(KINFO *, VARENT *); 67void printheader(void); 68void priorityr(KINFO *, VARENT *); 69void runame(KINFO *, VARENT *); 70void rvar(KINFO *, VARENT *); 71int s_runame(KINFO *); 72int s_uname(KINFO *); 73void showkey(void); 74void started(KINFO *, VARENT *); 75void state(KINFO *, VARENT *); 76void tdev(KINFO *, VARENT *); 77void tname(KINFO *, VARENT *); 78void tsize(KINFO *, VARENT *); 79void ucomm(KINFO *, VARENT *); 80void uname(KINFO *, VARENT *); 81void vsize(KINFO *, VARENT *); 82void wchan(KINFO *, VARENT *); 83__END_DECLS 84