extern.h revision 86922
11573Srgrimes/*- 21573Srgrimes * Copyright (c) 1991, 1993, 1994 31573Srgrimes * The Regents of the University of California. All rights reserved. 41573Srgrimes * 51573Srgrimes * Redistribution and use in source and binary forms, with or without 61573Srgrimes * modification, are permitted provided that the following conditions 71573Srgrimes * are met: 81573Srgrimes * 1. Redistributions of source code must retain the above copyright 91573Srgrimes * notice, this list of conditions and the following disclaimer. 101573Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111573Srgrimes * notice, this list of conditions and the following disclaimer in the 121573Srgrimes * documentation and/or other materials provided with the distribution. 131573Srgrimes * 3. All advertising materials mentioning features or use of this software 141573Srgrimes * must display the following acknowledgement: 151573Srgrimes * This product includes software developed by the University of 161573Srgrimes * California, Berkeley and its contributors. 171573Srgrimes * 4. Neither the name of the University nor the names of its contributors 181573Srgrimes * may be used to endorse or promote products derived from this software 191573Srgrimes * without specific prior written permission. 201573Srgrimes * 211573Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 221573Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 231573Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241573Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 251573Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 261573Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 271573Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 281573Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2950476Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 301573Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31212492Sgjb * SUCH DAMAGE. 3270936Sru * 3370936Sru * @(#)extern.h 8.3 (Berkeley) 4/2/94 3470936Sru * $FreeBSD: head/bin/ps/extern.h 86922 2001-11-26 22:21:15Z green $ 3570936Sru */ 3670936Sru 3770936Srustruct kinfo; 3884306Srustruct nlist; 39105404Smarkmstruct var; 40105404Smarkmstruct varent; 4184306Sru 4270936Sruextern fixpt_t ccpu; 4370936Sruextern int eval, fscale, mempages, nlistread, rawcpu, cflag; 4470936Sruextern int sumrusage, termwidth, totwidth; 45108037Sruextern VAR var[]; 46108037Sruextern VARENT *vhead; 47108037Sru 481573Srgrimes__BEGIN_DECLS 491573Srgrimesvoid command __P((KINFO *, VARENT *)); 501573Srgrimesvoid cputime __P((KINFO *, VARENT *)); 511573Srgrimesint donlist __P((void)); 521573Srgrimeschar *fmt_argv __P((char **, char *, int)); 531573Srgrimesdouble getpcpu __P((KINFO *)); 541573Srgrimesdouble getpmem __P((KINFO *)); 551573Srgrimesvoid kvar __P((KINFO *, VARENT *)); 5670936Sruvoid logname __P((KINFO *, VARENT *)); 5770936Sruvoid longtname __P((KINFO *, VARENT *)); 581573Srgrimesvoid lstarted __P((KINFO *, VARENT *)); 5970936Sruvoid maxrss __P((KINFO *, VARENT *)); 6070936Sruvoid mtxname __P((KINFO *, VARENT *)); 61108037Sruvoid nlisterr __P((struct nlist *)); 62108037Sruvoid p_rssize __P((KINFO *, VARENT *)); 63108037Sruvoid pagein __P((KINFO *, VARENT *)); 6470936Sruvoid parsefmt __P((char *)); 6570936Sruvoid pcpu __P((KINFO *, VARENT *)); 661573Srgrimesvoid pmem __P((KINFO *, VARENT *)); 671573Srgrimesvoid pri __P((KINFO *, VARENT *)); 68108087Sruvoid priorityr __P((KINFO *, VARENT *)); 69108087Sruvoid printheader __P((void)); 70108087Sruvoid rssize __P((KINFO *, VARENT *)); 7170936Sruvoid runame __P((KINFO *, VARENT *)); 7270936Sruint s_runame __P((KINFO *)); 731573Srgrimesvoid rvar __P((KINFO *, VARENT *)); 7470936Sruvoid showkey __P((void)); 751573Srgrimesvoid started __P((KINFO *, VARENT *)); 7670936Sruvoid state __P((KINFO *, VARENT *)); 7770936Sruvoid tdev __P((KINFO *, VARENT *)); 781573Srgrimesvoid tname __P((KINFO *, VARENT *)); 7970936Sruvoid tsize __P((KINFO *, VARENT *)); 8070936Sruvoid ucomm __P((KINFO *, VARENT *)); 81212441Sgjbvoid uname __P((KINFO *, VARENT *)); 82212441Sgjbint s_uname __P((KINFO *)); 8370936Sruvoid vsize __P((KINFO *, VARENT *)); 8470936Sruvoid wchan __P((KINFO *, VARENT *)); 8570936Sruvoid lattr __P((KINFO *, VARENT *)); 8670936Sru__END_DECLS 8770936Sru