From J.K.Shah at Sun.COM Mon Jun 2 18:23:04 2008 From: J.K.Shah at Sun.COM (Jignesh K. Shah) Date: Mon, 02 Jun 2008 14:23:04 -0400 Subject: [ptop-hackers] pg_top on Solaris In-Reply-To: <70c01d1d0805031209v388ce2fdh6e772b12d5572e0f@mail.gmail.com> References: <481B4627.1060104@sun.com> <70c01d1d0805031209v388ce2fdh6e772b12d5572e0f@mail.gmail.com> Message-ID: <48443A88.6080103@sun.com> Hi Mark, Mark Wong wrote: > On Fri, May 2, 2008 at 9:49 AM, Jignesh K. Shah wrote: > >> I just started using pg_top on Solaris and saw that the command doesnt >> display right information that folks from Linux land see out there.. >> >> I have encountered the problem with prstat tool and actually created a >> custom version which shows the similar information like Linux. The >> workaround was to use framework of /usr/ucb/ps of getting information >> rather than the /usr/bin/ps information which is what you see right now.. >> >> The portion of how /usr/ucb/ps works is in the source code published on >> opensolaris.org. >> >> Shouldn't we integrate that so we get similar information regardless of >> platform? >> > > Curious, I'm not quite clear on the source of the problem (probably > because I haven't looked yet) but the way you describe it suggests > that the program is not getting this information directly from the > process table. Am I understanding that much correctly? Or it is > purely a cosmetic issue? > > Regards, > Mark > There are two process tables so to speak one that Solaris normally uses which is not the same as in Linux (and used by prstat, /usr/bin/ps etc) and one that's UCB/BSD style which is used by /usr/ucb/ps which has similar auxwww options like in Linux which is what update_title updates in PostgreSQL and hence useful. Check this two versions of PS http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/ps/ps.c and the UCB ps http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/ucbcmd/ps/ps.c The UCB ps reads through /proc/nnnn/as to get the current arguments in the process table while the default ps uses psinfo_t-> pr_psargs which contains 80 character string regarding arguments. The useful bit of information for pg_top comes from /proc/nnnn/as for argument information which will match the update_title bit of information that PostgreSQL updates. Regards, Jignesh From andy at petdance.com Mon Jun 2 18:29:07 2008 From: andy at petdance.com (Andy Lester) Date: Mon, 2 Jun 2008 13:29:07 -0500 Subject: [ptop-hackers] Howdy from a new code poker Message-ID: <80D08D08-499B-4C9F-805A-634FA85FB714@petdance.com> Hi all. I use ptop all the time, and Selena said you could use some of my help. My big itch to scratch is compiler & lint warnings: Letting the compiler and automated tools find as many problems automagically. Usually this means jacking up the warning levels and then fixing the little nits it finds, so that in the future the seat belts are in place. Also, valgrind and splint are my buddies. xoxo, Andy -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From mags at seotaisaku-mm.1-coin.jp Thu Jun 5 10:08:59 2008 From: mags at seotaisaku-mm.1-coin.jp (=?iso-2022-jp?B?KF4tXikvU0VPGyRCQlA6djU7PVEycSVhITwlayVeJSwlOCVzGyhC?=) Date: Thu, 5 Jun 2008 19:08:59 +0900 Subject: [ptop-hackers] =?iso-2022-jp?b?GyRCIXo6IyQ5JDBMNU5BRVBPPyEqGyhC?= =?iso-2022-jp?b?GyRCTDVOQTktOXA/PUBBJDckaCQmISolIiUvJTslOSUiGyhC?= =?iso-2022-jp?b?GyRCJUMlVyROGyhCU0VPGyRCQlA6djU7PVEycSVhITwbKEI=?= =?iso-2022-jp?b?GyRCJWslXiUsJTglcyEqGyhCW01NSDA2MDVBXQ==?= Message-ID: <200806051008.m55A8xhL013492@idc27b7.1-coin.jp> $B!z!z(,(,(,(,(,(,!y!y(B $B"A#S#E#OBP:v5;=Q2q(B ||$B%a!<%k%^%,%8%s(B ||*$BL5NA$G(I18>=1/L_(B!!* ||*$B%5%$%H=jM-=$B=85Re!"#P#C$NA0$K$$$D$b$$$k$H=k$$$N$G!"(B $B$D$$$D$$GvCe$K$J$C$F$7$^$$$^$9!#3'$5$s$OG!2?$G$7$g$&$+!)(B(*^^*) $BBg:e$O1+$,;_$s$@$H;W$($P$^$?1+$G!D$^$?$`$7$`$7$7$F$^$9$%!A!J!d!c(B;$B!K$d$@$!!z%_(B $B!!(B $B(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!($(B $B!y(BHOTNEWS$B!y(B $B!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&(B $B!{!|#S#E#OBP:v5;=Q2q$N#H#o#T$J%a%k%^%,L5NADs6!!*!uL5NA9-9p;22CD:$1$^$9!*(B $B!!#S#E#OBP:v5;=Q2q$N%a%k%^%,EPO?$,$^$@$JJ}$O:#$9$0%5%$%H$h$jEPO?$7$h$&!*(B $B!}$4K\?MMM!&2q$C$FEPO?e0L$K$J$l$=$&$+!">e0L$J$i0];}$OC$7$^$7$g$&!*%"%/%;%9?t$,$$$D$G$b8+$l$k$*e0LI=<($G=85RG\A}$G$9$h$M!#(B $B!!C/$b$,%5%$%H$r;}$D$H$=$&@.$j$?$$!D$G$b#I#T6%Ah$,$"$j$^$9!#(B $B!!$=$3$G$*=u$1!T#S#E#OBP:v5;=Q2q!U$N=PHV$G$9!*$*G$$;$"$l!y(B $B(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(%(B $B!|#S#E#OBP:v5;=Q2q$N%5%$%H#U#R#L(B http://seotaisaku-top.1-coin.jp/ $B!|#S#E#OBP:v5;=Q2q$N%V%m%0#U#R#L(B http://seotaisaku-top.1-coin.jp/blog/ $B!{#S#E#OBP:v5;=Q2q%a!<%k%^%,%8%sC4Ev(B info at seotaisaku-mm.1-coin.jp $B$=$l$G$O!"l9g$,$"$j$^$9$N$G$b$7$4ITMW$G$"$l$P(B $B!C2<5-$h$j$4;XDj$N%a%k%"%IEPO?:o=|$r9T$C$F2<$5$$!#(B $B"(9XFI$rCf;_$7$?$$J}$X"((B $B%"%I%l%9$NJQ99!"9XFICf;_Ey$O$3$A$i(B $B""#P#C(B http://seotaisaku-mm.1-coin.jp/mmstart/ $B""7HBS(B http://seotaisaku-mm.1-coin.jp/mmstart/ MailMagazine[J1] From andy at petdance.com Sun Jun 15 05:07:29 2008 From: andy at petdance.com (Andy Lester) Date: Sun, 15 Jun 2008 00:07:29 -0500 Subject: [ptop-hackers] What can we change? Message-ID: <39B05D9C-02DD-4049-994F-25EEC7730004@petdance.com> Is there anything we should/shouldn't be touching? I'd like to constify as much as possible, starting with utils.c. xoxo, Andy -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From mags at seotaisaku-mm.1-coin.jp Sun Jun 15 09:56:37 2008 From: mags at seotaisaku-mm.1-coin.jp (=?iso-2022-jp?B?KF4tXikvU0VPGyRCQlA6djU7PVEycSVhITwlayVeJSwlOCVzGyhC?=) Date: Sun, 15 Jun 2008 18:56:37 +0900 Subject: [ptop-hackers] =?iso-2022-jp?b?GyRCIXo6IyQ5JDBMNU5BRVBPPyEqGyhC?= =?iso-2022-jp?b?GyRCTDVOQSU1JSQlSDktOXA/PUBBJDckaCQmISolIiUvGyhC?= =?iso-2022-jp?b?GyRCJTslOSUiJUMlVyROGyhCU0VPGyRCQlA6djU7PVEbKEI=?= =?iso-2022-jp?b?GyRCMnElYSE8JWslXiUsJTglcyEqGyhCW01NSDA2MTVBXQ==?= Message-ID: <200806150956.m5F9ubQQ028137@idc27b7.1-coin.jp> $B!z!z(,(,(,(,(,(,!y!y(B $B"A#S#E#OBP:v5;=Q2q(B ||$B%a!<%k%^%,%8%s(B ||*$BL5NA$G(I18>=1/L_(B!!* ||*$B%5%$%H=jM-=$B=85Re!"#P#C$NA0$K$$$D$b$$$k$H=k$$$N$G!"(B $B$D$$$D$$GvCe$K$J$C$F$7$^$$$^$9!#3'$5$s$OG!2?$G$7$g$&$+!)(B(*^^*) $BBg:e$O1+$,;_$_$^$7$?$,!D:#F|$O>/$74($$F|$G$7$?$!!A!J!d!c(B;$B!KH)4(!A!z%_(B $B!!(B $B(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!($(B $B!y(BHOTNEWS$B!y(B $B!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&(B $B!}:#=5$N$*4+$a%a%K%e!$C$FEPO?e0L$K$J$l$=$&$+!">e0L$J$i0];}$OC$7$^$7$g$&!*%"%/%;%9?t$,$$$D$G$b8+$l$k$*e0LI=<($G=85RG\A}$G$9$h$M!#(B $B!!C/$b$,%5%$%H$r;}$D$H$=$&@.$j$?$$!D$G$b#I#T6%Ah$,$"$j$^$9!#(B $B!!$=$3$G$*=u$1!T#S#E#OBP:v5;=Q2q!U$N=PHV$G$9!*$*G$$;$"$l!y(B $B(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(%(B $B!|#S#E#OBP:v5;=Q2q$N%5%$%H#U#R#L(B http://seotaisaku-top.1-coin.jp/ $B!|#S#E#OBP:v5;=Q2q$N%V%m%0#U#R#L(B http://seotaisaku-top.1-coin.jp/blog/ $B!{#S#E#OBP:v5;=Q2q%a!<%k%^%,%8%sC4Ev(B info at seotaisaku-mm.1-coin.jp $B$=$l$G$O!"l9g$,$"$j$^$9$N$G$b$7$4ITMW$G$"$l$P(B $B!C2<5-$h$j$4;XDj$N%a%k%"%IEPO?:o=|$r9T$C$F2<$5$$!#(B $B"(9XFI$rCf;_$7$?$$J}$X"((B $B%"%I%l%9$NJQ99!"9XFICf;_Ey$O$3$A$i(B $B""#P#C(B http://seotaisaku-mm.1-coin.jp/mmstart/ $B""7HBS(B http://seotaisaku-mm.1-coin.jp/mmstart/ MailMagazine[J1] From markwkm at gmail.com Mon Jun 16 00:08:00 2008 From: markwkm at gmail.com (Mark Wong) Date: Sun, 15 Jun 2008 17:08:00 -0700 Subject: [ptop-hackers] What can we change? In-Reply-To: <39B05D9C-02DD-4049-994F-25EEC7730004@petdance.com> References: <39B05D9C-02DD-4049-994F-25EEC7730004@petdance.com> Message-ID: <70c01d1d0806151708o4b8a2e54g182b5c3b19570f32@mail.gmail.com> On Sat, Jun 14, 2008 at 10:07 PM, Andy Lester wrote: > Is there anything we should/shouldn't be touching? > > I'd like to constify as much as possible, starting with utils.c. No, nothing is off limits. Go for it. :) Regards, Mark From andy at petdance.com Tue Jun 17 06:46:09 2008 From: andy at petdance.com (Andy Lester) Date: Tue, 17 Jun 2008 01:46:09 -0500 Subject: [ptop-hackers] Whoo, my first bug Message-ID: It's possible for string_list() to return an undefined value. Now, it can't happen in how it's called, but theoretically it could if something else called it! Hooray for compiler warnings! xoxo, Andy -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From andy at petdance.com Tue Jun 17 06:57:26 2008 From: andy at petdance.com (Andy Lester) Date: Tue, 17 Jun 2008 01:57:26 -0500 Subject: [ptop-hackers] segfaulting & security issues Message-ID: <54E31F0B-1009-4A6B-8FD5-FB9D81788436@petdance.com> ptop is just asking for a big "ptop is a security exploit waiting to happen" announcement. Run this: pg_top -U xxxxxxxxxxxxxx where xxxxxxxxx is about 4000 X's. Boom: segfault, and memory buffer overwrite, and security hole. Is there a process for upcoming releases? To get some of these fixes out there? xoa -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From markwkm at gmail.com Tue Jun 17 15:13:10 2008 From: markwkm at gmail.com (Mark Wong) Date: Tue, 17 Jun 2008 08:13:10 -0700 Subject: [ptop-hackers] segfaulting & security issues In-Reply-To: <54E31F0B-1009-4A6B-8FD5-FB9D81788436@petdance.com> References: <54E31F0B-1009-4A6B-8FD5-FB9D81788436@petdance.com> Message-ID: <70c01d1d0806170813j23241870lc3bb79a4b8f1311c@mail.gmail.com> On Mon, Jun 16, 2008 at 11:57 PM, Andy Lester wrote: > ptop is just asking for a big "ptop is a security exploit waiting to > happen" announcement. Run this: > > pg_top -U xxxxxxxxxxxxxx > > where xxxxxxxxx is about 4000 X's. Boom: segfault, and memory buffer > overwrite, and security hole. > > Is there a process for upcoming releases? To get some of these fixes > out there? No, no strict process anyway. If you'd like I can set you up with shell access to the sourceforge.net project (where I host the Mercurial repositories) so I can pull patches from you. Then I can start releasing beta versions. Regards, Mark From andy at petdance.com Tue Jun 17 15:24:55 2008 From: andy at petdance.com (Andy Lester) Date: Tue, 17 Jun 2008 10:24:55 -0500 Subject: [ptop-hackers] segfaulting & security issues In-Reply-To: <70c01d1d0806170813j23241870lc3bb79a4b8f1311c@mail.gmail.com> References: <54E31F0B-1009-4A6B-8FD5-FB9D81788436@petdance.com> <70c01d1d0806170813j23241870lc3bb79a4b8f1311c@mail.gmail.com> Message-ID: On Jun 17, 2008, at 10:13 AM, Mark Wong wrote: > No, no strict process anyway. If you'd like I can set you up with > shell access to the sourceforge.net project (where I host the > Mercurial repositories) so I can pull patches from you. Then I can > start releasing beta versions. Big question even before that: Is everything in the repo actually used? All the machine/*.c stuff? Is that all necessary? I just want to make sure that all those files are not just detritus from top. I can send you patches, too. -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From markwkm at gmail.com Tue Jun 17 15:48:17 2008 From: markwkm at gmail.com (Mark Wong) Date: Tue, 17 Jun 2008 08:48:17 -0700 Subject: [ptop-hackers] segfaulting & security issues In-Reply-To: References: <54E31F0B-1009-4A6B-8FD5-FB9D81788436@petdance.com> <70c01d1d0806170813j23241870lc3bb79a4b8f1311c@mail.gmail.com> Message-ID: <70c01d1d0806170848o394dcfeejfa5d6ab53296f074@mail.gmail.com> On Tue, Jun 17, 2008 at 8:24 AM, Andy Lester wrote: > > On Jun 17, 2008, at 10:13 AM, Mark Wong wrote: > >> No, no strict process anyway. If you'd like I can set you up with >> shell access to the sourceforge.net project (where I host the >> Mercurial repositories) so I can pull patches from you. Then I can >> start releasing beta versions. > > > Big question even before that: Is everything in the repo actually used? All > the machine/*.c stuff? Is that all necessary? I just want to make sure > that all those files are not just detritus from top. The way top was designed was that only one of those machine/*.c files is built depending on the platform being built on. It very well could be that some aren't used anymore and that they don't even work... > I can send you patches, too. Sure, whatever works better for you. :) Regards, Mark From coronary at ristal.com.ar Wed Jun 18 10:26:58 2008 From: coronary at ristal.com.ar (bragging Clifton) Date: Wed, 18 Jun 2008 07:26:58 -0300 Subject: [ptop-hackers] We have data for many medical specialties Message-ID: <023163v1iuy0$n6723jh0$9670r9u0@Delldim5150 Currently Practicing MDs in the US 31 primary and secondary specialties Over a dozen sortable fields Cost just slashed - $399 !!!!!!! We will give you the lists below at no extra charge if you order this week !!!!!!! ** Chiropractors ** Alternative Medicine ** Acupuncturists ** Massage Therapists please contact us by email at - : kellyhark at hotmail.com good until Jun 20 ======================================= for ramovla send this email back with these numbers in the subject: 981 From mags at seotaisaku-mm.1-coin.jp Sun Jun 22 02:23:48 2008 From: mags at seotaisaku-mm.1-coin.jp (=?iso-2022-jp?B?KF4tXikvU0VPGyRCQlA6djU7PVEycSVhITwlayVeJSwlOCVzGyhC?=) Date: Sun, 22 Jun 2008 11:23:48 +0900 Subject: [ptop-hackers] =?iso-2022-jp?b?GyRCIXojMSV1N24kRyM1S3w3b0ZNGyhC?= =?iso-2022-jp?b?GyRCR0s1LUcwIXo6IyQ5JDBMNU5BRVBPPyEqTDVOQSU1GyhC?= =?iso-2022-jp?b?GyRCJSQlSDktOXA/PUBBJDckaCQmISolIiUvJTslOSUiGyhC?= =?iso-2022-jp?b?GyRCJUMlVyROGyhCU0VPGyRCQlA6djU7PVEycSVhITwbKEI=?= =?iso-2022-jp?b?GyRCJWslXiUsJTglcyEqGyhCW01NSDA2MjFBXQ==?= Message-ID: <200806220223.m5M2NmIe029363@idc27b7.1-coin.jp> $B!z!z(,(,(,(,(,(,!y!y(B $B"A#S#E#OBP:v5;=Q2q(B ||$B%a!<%k%^%,%8%s(B ||*$BL5NA$G(I18>=1/L_(B!!* ||*$B%5%$%H=jM-=$B=85Re!"#P#C$NA0$K$$$D$b$$$k$H=k$$$N$G!"(B $B$D$$$D$$GvCe$K$J$C$F$7$^$$$^$9!#3'$5$s$OG!2?$G$7$g$&$+!)(B(*^^*) $BBg:e$O$^$?1+$G$7$?!D$,;_$_$^$7$?$,!D:#F|$O$I$&$G$7$g!A!J(BA$B!0!pJs!AB(F|M;;q$+$i$*$^$H$a%m!<%s$^$G!*(B $B0-FAB_$76b6H$KqY$5$l$J$$$?$a$KM%NI%m!<%s!&%+!<%I$N%5%$%H$r$4>R2p$$$?$7$^$9!#!V0B?4!&0BA4!W$r$*LsB+!*(B $B!J(Bhttp://morotoen.blog118.fc2.com/$B!K(B $B(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(%(B $B(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!($(B $B!z6[5^9pCN!z(B $B!{!|$*$+$2$5$^$G#1%u7n4V$G%a%k%^%,EPO??t#5K|7oFMGKCW$7$^$7$?!#(B $B!{!|5-G0$$$?$7$^$7$FBt;3$N%5%$%HMM$rL5NA$4>R2p$5$;$FD:$/:n6H$KF~$j$^$9!#(B $B$G$O!D(B(^$B!<(B^)b $B!y2q0w%a%j%C%H$N$*CN$i$;!*!y(B $B!}$4O"MmD:$-$^$7$?%5%$%H$O!"EvJ}$N!T%a%k%^%,$K$F%5%$%H$N$4>R2p!U$r$5$;$F(B $BD:$-$^$9(B(^^)v$B$H$j$"$($:%a%k%^%,#5K|7oDLFMGK$7$^$7$?!y(B $B$D$-$^$7$F$O2<5-$K$4<+?H$N%5%$%H$N%W%m%U%#!<%k$r$45-F~D:$-$4JV?.$*4j$$CW(B $B$7$^$9!#(B $B!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!](B $B-!%5%$%H#P#RL>>N!'(B $B!JD9$9$.$:!"C;$9$.$:!VNc!'!{!{!{$N;v$J$i$*G$$;!*!{!{!{$N!y!y!y!y!y!W!K(B $B"M(B $B-"@kEA#P#RJ88@!'(B $B!JFC$KJ8;z@)8B$O9T$$$^$;$s!#!D$,>o<1$NHO0O$H$7$F#2#0#0J8;zDxEYKx$G$*4j$$(B $B$7$^$9!#!K(B $B"M(B $B-#%5%$%H#U#R#L!'(B $B"M(B $B!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!]!](B $B!yJ#?t%5%$%H$r$*;}$A$N>l9g!">e5-$rJ#@=$7J#?t$40MMj#O#K$G$9!*(B $B:Y$+$$;v$O8@$$$^$;$s$N$G1sN8$J$/%5%$%H$N?M5$%"%C%W!*$r2!$7?J$a$F2<$5$$!y(B $B0J>e(B $B#S#E#OBP:v5;=Q2q$h$j2q0w%a%j%C%H!JAa$$$C$FEPO?!Y$H$4O"Mm2<$5$$!#(B $B!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&!&(B $B!{!|2q0w%5%$%HMM$H$N%5!<%S%9%?%$%"%C%W?75,!Y$H$4O"Mm2<$5$$!#(B $B(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(%(B $B(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!($(B $B!{!|5.J}$N4IM}%5%$%H$N%H%C%W%Z!<%8%"%/%;%9?t$O!)(B $B!{!|5$$K$J$k%Z!<%8$N%"%/%;%9?t$O!)(B $B!!$=$N$*G:$_$r2r>C$7$^$7$g$&!*%"%/%;%9?t$,$$$D$G$b8+$l$k$*e0L$K$J$l$=$&$+!">e0L$J$i0];}$Oe0LI=<($G=85RG\A}$G$9$h$M!#(B $B!!C/$b$,%5%$%H$r;}$D$H$=$&@.$j$?$$!D$G$b#I#T6%Ah$,$"$j$^$9!#(B $B!!$=$3$G$*=u$1!T#S#E#OBP:v5;=Q2q!U$N=PHV$G$9!*$*G$$;$"$l!y(B $B(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(!(%(B $B!|#S#E#OBP:v5;=Q2q$N%5%$%H#U#R#L(B http://seotaisaku-top.1-coin.jp/ $B!|#S#E#OBP:v5;=Q2q$N%V%m%0#U#R#L(B http://seotaisaku-top.1-coin.jp/blog/ $B!{#S#E#OBP:v5;=Q2q%a!<%k%^%,%8%sC4Ev(B info at seotaisaku-mm.1-coin.jp $B$=$l$G$O!"l9g$,$"$j$^$9$N$G$b$7$4ITMW$G$"$l$P(B $B!C2<5-$h$j$4;XDj$N%a%k%"%IEPO?:o=|$r9T$C$F2<$5$$!#(B $B"(9XFI$rCf;_$7$?$$J}$X"((B $B%"%I%l%9$NJQ99!"9XFICf;_Ey$O$3$A$i(B $B""#P#C(B http://seotaisaku-mm.1-coin.jp/mmstart/ $B""7HBS(B http://seotaisaku-mm.1-coin.jp/mmstart/ MailMagazine[J1] From andy at petdance.com Wed Jun 25 05:24:54 2008 From: andy at petdance.com (Andy Lester) Date: Wed, 25 Jun 2008 00:24:54 -0500 Subject: [ptop-hackers] My first bunch of cleanups Message-ID: <20080625052454.GA12161@petdance.com> Here's a big patch of stuff. Thoughts? Oh, and ignore the Makefile.am changes. They're for me. xoa -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance -------------- next part -------------- changeset: 185:2e06feeb8665 tag: tip user: Andy Lester date: Wed Jun 25 00:18:44 2008 -0500 summary: getting consting hapy diff -r 532a1af32b77 -r 2e06feeb8665 commands.c --- a/commands.c Wed Jun 25 00:10:28 2008 -0500 +++ b/commands.c Wed Jun 25 00:18:44 2008 -0500 @@ -93,8 +93,8 @@ struct errs /* structure for a system-call error */ { - int errnum; /* value of errno (that is, the actual error) */ - char *arg; /* argument that caused the error */ + int errnum; /* value of errno (that is, the actual error) */ + const char *arg; /* argument that caused the error */ }; static struct errs errs[ERRMAX]; @@ -214,7 +214,6 @@ err_string(void) { - register struct errs *errp; register int cnt = 0; register int first = Yes; register int currerr = -1; @@ -238,7 +237,7 @@ /* loop thru the sorted list, building an error string */ while (cnt < errcnt) { - errp = &(errs[cnt++]); + struct errs * const errp = &(errs[cnt++]); if (errp->errnum != currerr) { if (currerr != -1) @@ -394,7 +393,7 @@ */ const char * -kill_procs(const char *str) +kill_procs(char *str) { register char *nptr; @@ -483,9 +482,8 @@ * "renice" command does; invoked in response to 'r'. */ -const char * -renice_procs(const char *str) - +char * +renice_procs(char *str) { register char negate; int prio; diff -r 532a1af32b77 -r 2e06feeb8665 commands.h --- a/commands.h Wed Jun 25 00:10:28 2008 -0500 +++ b/commands.h Wed Jun 25 00:18:44 2008 -0500 @@ -10,8 +10,8 @@ int scanint(const char *str, int *intp); int error_count(void); void show_errors(void); -const char *kill_procs(const char *str); -const char *renice_procs(const char *str); +const char *kill_procs(char *str); +char *renice_procs(char *str); void show_current_query(char *, int); void show_explain(char *, int, int); void show_locks(char *, int); changeset: 184:532a1af32b77 user: Andy Lester date: Wed Jun 25 00:10:28 2008 -0500 summary: consting and removing dead code diff -r 4ea523898c29 -r 532a1af32b77 color.c --- a/color.c Tue Jun 17 14:07:19 2008 -0500 +++ b/color.c Wed Jun 25 00:10:28 2008 -0500 @@ -255,16 +255,14 @@ color_dump(FILE * f) { - color_entry *ep; int i; int col; - int len; fputs("These color tags are available:", f); col = 81; for (i = 0; i < tagcnt; i++) { - len = strlen(bytag_names[i]) + 1; + const int len = strlen(bytag_names[i]) + 1; if (len + col > 79) { fputs("\n ", f); @@ -278,7 +276,7 @@ for (i = 0; i < tagcnt; i++) { - ep = bytag[i]; + color_entry *ep = bytag[i]; while (ep != NULL) { fprintf(f, " %s (%d-", ep->tag, ep->min); @@ -294,29 +292,3 @@ } } } - -void -color_debug(FILE * f) - -{ - color_entry *ep; - int i; - - printf("color debug dump\n"); - ep = entries; - while (ep != NULL) - { - printf("%s(%d,%d): slot %d, ansi %s, %sSample Text", - ep->tag, ep->min, ep->max, ep->color, color_ansi[(int) ep->color], - color_set(ep->color)); - printf("%s\n", color_set(0)); - ep = ep->next; - } - - printf("\ntags:"); - for (i = 0; i < tagcnt; i++) - { - printf(" %s", bytag_names[i]); - } - printf("\n"); -} diff -r 4ea523898c29 -r 532a1af32b77 commands.c --- a/commands.c Tue Jun 17 14:07:19 2008 -0500 +++ b/commands.c Wed Jun 25 00:10:28 2008 -0500 @@ -160,11 +160,9 @@ str_adderr(char *str, int len, int err) { - register const char *msg; - register int msglen; + const char * const msg = err == 0 ? "Not a number" : errmsg(err); + const int msglen = strlen(msg) + 2; - msg = err == 0 ? "Not a number" : errmsg(err); - msglen = strlen(msg) + 2; if (len <= msglen) { return (0); @@ -181,7 +179,7 @@ */ static int -str_addarg(char *str, int len, char *arg, int first) +str_addarg(char *str, int len, const char *arg, int first) { register int arglen; changeset: 183:4ea523898c29 user: Andy Lester date: Tue Jun 17 14:07:19 2008 -0500 summary: many updates on signed/unisghed diff -r 11ed47ec48cb -r 4ea523898c29 commands.c --- a/commands.c Tue Jun 17 02:20:56 2008 -0500 +++ b/commands.c Tue Jun 17 14:07:19 2008 -0500 @@ -402,7 +402,7 @@ register char *nptr; int signum = SIGTERM; /* default */ int procnum; - int uid; + uid_t uid; /* reset error array */ ERR_RESET; @@ -492,7 +492,7 @@ register char negate; int prio; int procnum; - int uid; + uid_t uid; ERR_RESET; uid = getuid(); @@ -667,7 +667,7 @@ int rows; char *sql; char info[64]; - int width[5] = {1, 8, 5, 4, 7}; + unsigned int width[5] = {1, 8, 5, 4, 7}; PGconn *pgconn; PGresult *pgresult = NULL; char header_format[1024]; @@ -716,7 +716,7 @@ display_pager(line); for (i = 0, k = 0; i < 5; i++) { - int j; + unsigned int j; for (j = 0; j < width[i]; j++, k++) { line[k] = '-'; diff -r 11ed47ec48cb -r 4ea523898c29 tags --- a/tags Tue Jun 17 02:20:56 2008 -0500 +++ b/tags Tue Jun 17 14:07:19 2008 -0500 @@ -5,7 +5,7 @@ !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/ !_TAG_PROGRAM_VERSION 5.7 // ARG_SIZE machine/m_openbsd.c 427;" d file: -BEGIN commands.c 80;" d file: +BEGIN commands.c 118;" d file: BSD_SIGNALS pg_top.c 43;" d file: Buffersize pg_top.c 64;" d file: CMD_OSLIMIT pg_top.c 328;" d file: @@ -51,7 +51,7 @@ CPUSTATE_SWAP machine/m_sunos5.c 269;" d file: CPU_IDLE_THRESH machine/m_hpux10.c 52;" d file: CPU_STATES machine/m_irixsgi.c 127;" d file: -CURRENT_QUERY commands.c 83;" d file: +CURRENT_QUERY commands.c 121;" d file: CURSOR_COST display.c 46;" d file: DEBUG utils.c 21;" d file: D_align machine/m_irixsgi.c 90;" d file: @@ -60,9 +60,9 @@ EP machine/m_macosx.c 58;" d file: ERASE display.c /^ OFF, ON, ERASE$/;" e enum:__anon1 file: ERR getopt.c 29;" d file: -ERRMAX commands.c 54;" d file: -ERROR commands.c 70;" d file: -ERR_RESET commands.c 69;" d file: +ERRMAX commands.c 92;" d file: +ERROR commands.c 108;" d file: +ERR_RESET commands.c 107;" d file: FD_SET pg_top.c 293;" d file: FD_ZERO pg_top.c 292;" d file: FSCALE machine/m_irix5.c 53;" d file: @@ -73,7 +73,7 @@ FSHIFT machine/m_sunos5.c 132;" d file: FSHIFT machine/m_svr4.c 69;" d file: FSHIFT machine/m_svr5.c 75;" d file: -GET_LOCKS commands.c 88;" d file: +GET_LOCKS commands.c 126;" d file: HASH machine/m_irix5.c 185;" d file: HASH machine/m_irixsgi.c 80;" d file: HASH machine/m_linux.c 173;" d file: @@ -319,7 +319,7 @@ Proc_format machine/m_sunos5.c 248;" d file: Proc_format machine/m_svr4.c 124;" d file: Proc_format machine/m_svr5.c 123;" d file: -ROLLBACK commands.c 81;" d file: +ROLLBACK commands.c 119;" d file: RP machine/m_macosx.c 64;" d file: RSSIZE machine/m_macosx.c 79;" d file: RSSIZE machine/m_macosx.c 81;" d file: @@ -340,7 +340,7 @@ STDERR screen.c 94;" d file: STDIN screen.c 92;" d file: STDOUT screen.c 93;" d file: -STRMAX commands.c 175;" d file: +STRMAX commands.c 213;" d file: SVAR machine/m_freebsd.c 1034;" d file: SWAP machine/m_hpux10.c 64;" d file: SWAP machine/m_hpux7.c 42;" d file: @@ -1018,6 +1018,7 @@ header_color display.c /^static int header_color = 0;$/;" v file: header_length display.c /^static int header_length;$/;" v file: header_status display.c /^} header_status = ON;$/;" v typeref:enum:__anon1 file: +help_text commands.c /^static const char help_text[] = "\\n\\$/;" v file: home screen.c /^char home[15];$/;" v homogenize utils.c /^homogenize(const char *str)$/;" f hz machine/m_hpux7.c /^static long hz;$/;" v file: changeset: 182:11ed47ec48cb user: Andy Lester date: Tue Jun 17 02:20:56 2008 -0500 summary: inlined help.h diff -r 6bec50dead09 -r 11ed47ec48cb Makefile.am --- a/Makefile.am Tue Jun 17 02:00:23 2008 -0500 +++ b/Makefile.am Tue Jun 17 02:20:56 2008 -0500 @@ -53,7 +53,6 @@ commands.h \ configure \ display.h \ - help.h \ layout.h \ loadavg.h \ machine.h \ diff -r 6bec50dead09 -r 11ed47ec48cb commands.c --- a/commands.c Tue Jun 17 02:00:23 2008 -0500 +++ b/commands.c Tue Jun 17 02:20:56 2008 -0500 @@ -31,10 +31,48 @@ #include "utils.h" #include "version.h" #include "machine.h" -#include "help.h" #include "display.h" #include "pg.h" #include "commands.h" + +static const char help_text[] = "\n\ +A top users display for Unix\n\ +\n\ +These single-character commands are available:\n\ +\n\ +^L - redraw screen\n\ + - update screen\n\ +A - EXPLAIN ANALYZE (UPDATE/DELETE safe)\n\ +C - toggle the use of color\n\ +E - show execution plan (UPDATE/DELETE safe)\n\ +L - show locks held by a process\n\ +M - sort by memory usage\n\ +N - sort by pid\n\ +P - sort by CPU usage\n\ +R - show user table statistics\n\ +Q - show current query of a process\n\ +T - sort by time\n\ +X - show user index statistics\n\ +c - toggle the display of process commands\n\ +d - change number of displays to show\n\ +e - list errors generated by last \"kill\" or \"renice\" command\n\ +h or ? - help; show this text\n\ +i or I - toggle the displaying of idle processes\n\ +k - kill processes; send a signal to a list of processes\n\ +n or # - change number of processes to display\n\ +o - specify sort order (%s)\n\ + index stats (idx_scan, idx_tup_fetch, idx_tup_read)\n\ + table stats (seq_scan, seq_tup_read, idx_scan, idx_tup_fetch,\n\ + n_tup_ins, n_tup_upd, n_tup_del)\n\ +q - quit\n\ +r - renice a process\n\ +s - change number of seconds to delay between updates\n\ +t - Toggle between cumulative or differential statistics when viewing\n\ + user table or user index statistics.\n\ +u - display processes for only one user (+ selects all users)\n\ +\n\ +Not all commands are available on all systems.\n\ +"; extern int errno; @@ -243,6 +281,7 @@ if (fullhelp == NULL) { + size_t len; const char *p = NULL; /* set it up first time thru */ if (stp->order_names != NULL) @@ -253,8 +292,9 @@ { p = "not supported"; } - fullhelp = (char *) malloc(strlen(help_text) + strlen(p) + 2); - sprintf(fullhelp, help_text, p); + len = strlen(help_text) + strlen(p) + 2; + fullhelp = (char *) malloc(len+1); + snprintf(fullhelp, len, help_text, p); } display_pager("Top version "); @@ -590,12 +630,12 @@ /* Execute the EXPLAIN. */ if (analyze == EXPLAIN_ANALYZE) { - sprintf(sql, "EXPLAIN ANALYZE\n%s", + snprintf(sql, sizeof(sql), "EXPLAIN ANALYZE\n%s", PQgetvalue(pgresult_query, i, 0)); } else { - sprintf(sql, "EXPLAIN\n%s", PQgetvalue(pgresult_query, i, 0)); + snprintf(sql, sizeof(sql), "EXPLAIN\n%s", PQgetvalue(pgresult_query, i, 0)); } PQexec(pgconn, BEGIN); pgresult_explain = PQexec(pgconn, sql); @@ -623,7 +663,6 @@ show_locks(char *conninfo, int procpid) { int i, - j, k; int rows; char *sql; @@ -654,10 +693,10 @@ rows = PQntuples(pgresult); /* Determine column sizes. */ - sprintf(prefix, "%d", rows); - width[0] = strlen(prefix); + width[0] = snprintf(prefix, sizeof(prefix), "%d", rows); for (i = 0; i < rows; i++) { + /* XXX This oughta be looped, not cut & pasted */ if (strlen(PQgetvalue(pgresult, i, 0)) > width[1]) width[1] = strlen(PQgetvalue(pgresult, i, 0)); if (strlen(PQgetvalue(pgresult, i, 1)) > width[2]) @@ -667,16 +706,17 @@ if (strlen(PQgetvalue(pgresult, i, 3)) > width[4]) width[4] = strlen(PQgetvalue(pgresult, i, 3)); } - sprintf(header_format, "%%-%ds | %%-%ds | %%-%ds | %%-%ds | %%-%ds\n", + snprintf(header_format, sizeof(header_format), "%%-%ds | %%-%ds | %%-%ds | %%-%ds | %%-%ds\n", width[0], width[1], width[2], width[3], width[4]); - sprintf(line_format, "%%%dd | %%-%ds | %%-%ds | %%-%ds | %%-%ds\n", + snprintf(line_format, sizeof(line_format), "%%%dd | %%-%ds | %%-%ds | %%-%ds | %%-%ds\n", width[0], width[1], width[2], width[3], width[4]); /* Display the header. */ - sprintf(line, header_format, "", "database", "table", "type", "granted"); + snprintf(line, sizeof(line), header_format, "", "database", "table", "type", "granted"); display_pager(line); for (i = 0, k = 0; i < 5; i++) { + int j; for (j = 0; j < width[i]; j++, k++) { line[k] = '-'; @@ -692,7 +732,7 @@ /* Display data. */ for (i = 0; i < rows; i++) { - sprintf(line, line_format, i + 1, PQgetvalue(pgresult, i, 0), + snprintf(line, sizeof(line), line_format, i + 1, PQgetvalue(pgresult, i, 0), PQgetvalue(pgresult, i, 1), PQgetvalue(pgresult, i, 2), PQgetvalue(pgresult, i, 3)); display_pager(line); @@ -702,3 +742,4 @@ PQclear(pgresult); PQfinish(pgconn); } + diff -r 6bec50dead09 -r 11ed47ec48cb machine/m_linux.c --- a/machine/m_linux.c Tue Jun 17 02:00:23 2008 -0500 +++ b/machine/m_linux.c Tue Jun 17 02:20:56 2008 -0500 @@ -538,7 +538,7 @@ static void read_one_proc_stat(pid_t pid, struct top_proc * proc, struct process_select * sel) { - char buffer[4096], + char buffer[40], *p, *q; int fd, @@ -552,7 +552,7 @@ fullcmd = sel->fullcmd; if (fullcmd) { - sprintf(buffer, "%d/cmdline", pid); + snprintf(buffer, sizeof(buffer), "%d/cmdline", pid); if ((fd = open(buffer, O_RDONLY)) != -1) { /* read command line data */ @@ -576,7 +576,7 @@ } /* grab the proc stat info in one go */ - sprintf(buffer, "%d/stat", pid); + snprintf(buffer, sizeof(buffer), "%d/stat", pid); fd = open(buffer, O_RDONLY); len = read(fd, buffer, sizeof(buffer) - 1); @@ -1123,7 +1123,7 @@ struct stat sb; char buffer[32]; - sprintf(buffer, "%d", pid); + snprintf(buffer, sizeof(buffer), "%d", pid); if (stat(buffer, &sb) < 0) return -1; diff -r 6bec50dead09 -r 11ed47ec48cb pg_top.c --- a/pg_top.c Tue Jun 17 02:00:23 2008 -0500 +++ b/pg_top.c Tue Jun 17 02:20:56 2008 -0500 @@ -357,11 +357,11 @@ /* Get default values from the environment. */ env_top = getenv("PGDATABASE"); if (env_top != NULL) - sprintf(dbname, "dbname=%s", getenv("PGDATABASE")); + snprintf(dbname, sizeof(dbname), "dbname=%s", getenv("PGDATABASE")); env_top = getenv("PGHOST"); if (env_top != NULL) - sprintf(socket, "host=%s", getenv("PGHOST")); + snprintf(socket, sizeof(socket), "host=%s", getenv("PGHOST")); env_top = getenv("PGPORT"); if (env_top != NULL) @@ -369,7 +369,7 @@ env_top = getenv("PGUSER"); if (env_top != NULL) - sprintf(dbusername, "user=%s", getenv("PGUSER")); + snprintf(dbusername, sizeof(dbusername), "user=%s", getenv("PGUSER")); /* get our name */ if (argc > 0) changeset: 181:6bec50dead09 user: Andy Lester date: Tue Jun 17 02:00:23 2008 -0500 summary: snprintf for sprintf diff -r aadf451dd564 -r 6bec50dead09 pg_top.c --- a/pg_top.c Tue Jun 17 01:47:48 2008 -0500 +++ b/pg_top.c Tue Jun 17 02:00:23 2008 -0500 @@ -527,19 +527,19 @@ * get the password in the format we want for the connect * string */ - sprintf(password, "password=%s", password_tmp); + snprintf(password, sizeof(password), "password=%s", password_tmp); break; case 'U': /* database user name */ - sprintf(dbusername, "user=%s", optarg); + snprintf(dbusername, sizeof(dbusername), "user=%s", optarg); break; case 'd': /* database name */ - sprintf(dbname, "dbname=%s", optarg); + snprintf(dbname, sizeof(dbname), "dbname=%s", optarg); break; case 'h': /* socket location */ - sprintf(socket, "host=%s", optarg); + snprintf(socket, sizeof(socket), "host=%s", optarg); break; default: @@ -553,7 +553,7 @@ } /* connect to the database */ - sprintf(conninfo, "port=%d %s %s %s %s", + snprintf(conninfo, sizeof(conninfo), "port=%d %s %s %s %s", dbport, dbname, socket, dbusername, password); /* get count of top processes to display (if any) */ diff -r aadf451dd564 -r 6bec50dead09 tags --- a/tags Tue Jun 17 01:47:48 2008 -0500 +++ b/tags Tue Jun 17 02:00:23 2008 -0500 @@ -500,13 +500,13 @@ active_proc_count machine/m_irixsgi.c /^active_proc_count()$/;" f file: activesize machine/m_linux.c /^static unsigned int activesize = 0;$/;" v file: activesize machine/m_linuxthr.c /^static unsigned int activesize = 0;$/;" v file: -alldigits utils.c /^alldigits(char *s)$/;" f file: +alldigits utils.c /^alldigits(const char *s)$/;" f file: allocate_proc_tables machine/m_irixsgi.c /^allocate_proc_tables()$/;" f anoninfo_offset machine/m_sunos5.c /^static unsigned long anoninfo_offset;$/;" v file: anoninfo_offset machine/m_svr4.c /^static unsigned long anoninfo_offset;$/;" v file: arg commands.c /^ char *arg; \/* argument that caused the error *\/$/;" m struct:errs file: argparse utils.c /^argparse(char *line, int *cntp)$/;" f -atoiwi utils.c /^atoiwi(char *str)$/;" f +atoiwi utils.c /^atoiwi(const char *str)$/;" f availrmem_offset machine/m_irix5.c /^static unsigned long availrmem_offset;$/;" v file: avenrun_offset machine/m_aix43.c /^static unsigned long avenrun_offset;$/;" v file: avenrun_offset machine/m_aix5.c /^static unsigned long avenrun_offset;$/;" v file: @@ -1755,7 +1755,7 @@ string_buffer screen.c /^char string_buffer[1024];$/;" v string_count display.c /^string_count(const char **pp)$/;" f file: string_index utils.c /^string_index(const char *needle, const char **haystack)$/;" f -string_list utils.c /^string_list(char **strings)$/;" f +string_list utils.c /^string_list(const char **strings)$/;" f summary_format display.c /^summary_format(int x, int y, int *numbers, const char **names)$/;" f file: summary_format_memory display.c /^summary_format_memory(int x, int y, long *numbers, const char **names, int *cidx)$/;" f file: swap machine/m_hpux7.c /^static int swap;$/;" v file: changeset: 180:aadf451dd564 user: Andy Lester date: Tue Jun 17 01:47:48 2008 -0500 summary: consting and bug fixing diff -r a4744a0ed78d -r aadf451dd564 utils.c --- a/utils.c Tue Jun 17 01:47:31 2008 -0500 +++ b/utils.c Tue Jun 17 01:47:48 2008 -0500 @@ -24,7 +24,7 @@ #include "utils.h" static int -alldigits(char *s) +alldigits(const char *s) { int ch; @@ -40,7 +40,7 @@ } int -atoiwi(char *str) +atoiwi(const char *str) { register int len; @@ -257,7 +257,7 @@ } /* - * char *string_list(char **strings) + * char *string_list(const char **strings) * * Create a comma-separated list of the strings in the NULL-terminated * "strings". Returned string is malloc-ed and should be freed when the @@ -265,14 +265,13 @@ */ char * -string_list(char **strings) +string_list(const char **strings) { - int cnt = 0; - char **pp; - char *p; - char *result; - char *resp = NULL; + size_t cnt = 0; + const char **pp; + const char *p; + char *result = NULL; pp = strings; while ((p = *pp++) != NULL) @@ -282,6 +281,7 @@ if (cnt > 0) { + char *resp; resp = result = (char *) malloc(cnt); pp = strings; while ((p = *pp++) != NULL) diff -r a4744a0ed78d -r aadf451dd564 utils.h --- a/utils.h Tue Jun 17 01:47:31 2008 -0500 +++ b/utils.h Tue Jun 17 01:47:48 2008 -0500 @@ -14,7 +14,7 @@ /* prototypes for functions found in utils.c */ -int atoiwi(char *); +int atoiwi(const char *); char *itoa(int); char *itoa7(uid_t); int digits(int); @@ -28,7 +28,7 @@ char *format_percent(double); char *format_time(long); char *format_k(long); -char *string_list(char **); +char *string_list(const char **strings); void debug_set(int); #ifdef DEBUG changeset: 179:a4744a0ed78d user: Andy Lester date: Tue Jun 17 01:47:31 2008 -0500 summary: add -O3 for optimization bug finding diff -r 28c2bb08474f -r a4744a0ed78d Makefile.am --- a/Makefile.am Tue Jun 17 01:38:23 2008 -0500 +++ b/Makefile.am Tue Jun 17 01:47:31 2008 -0500 @@ -3,7 +3,7 @@ AM_CPPFLAGS = $(DBCFLAGS) AM_LDFLAGS = $(DBLDFLAGS) -CFLAGS = -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wendif-labels -Wextra -Wformat -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Wmissing-braces -Wmissing-field-initializers -Wno-missing-format-attribute -Wmissing-include-dirs -Wpacked -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point -Wno-shadow -Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef -Wunknown-pragmas -Wno-unused -Wvariadic-macros -Wwrite-strings -Wlarger-than-4096 -Wbad-function-cast -Wc++-compat -Wdeclaration-after-statement -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull +CFLAGS = -O3 -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wendif-labels -Wextra -Wformat -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Wmissing-braces -Wmissing-field-initializers -Wno-missing-format-attribute -Wmissing-include-dirs -Wpacked -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point -Wno-shadow -Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef -Wunknown-pragmas -Wno-unused -Wvariadic-macros -Wwrite-strings -Wlarger-than-4096 -Wbad-function-cast -Wc++-compat -Wdeclaration-after-statement -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull sigdesc.h: sigconv.awk $(SIGNAL_H) $(AWK) -f $(srcdir)/sigconv.awk $(SIGNAL_H) > sigdesc.h changeset: 178:28c2bb08474f user: Andy Lester date: Tue Jun 17 01:38:23 2008 -0500 summary: new vars, newly localized diff -r c04d989d540e -r 28c2bb08474f pg_top.c --- a/pg_top.c Tue Jun 17 01:35:08 2008 -0500 +++ b/pg_top.c Tue Jun 17 01:38:23 2008 -0500 @@ -620,7 +620,7 @@ } else if ((order_index = string_index(order_name, statics.order_names)) == -1) { - char **pp; + const char **pp; fprintf(stderr, "%s: '%s' is not a recognized sorting order.\n", myname, order_name); @@ -951,7 +951,6 @@ if (select(32, &readfds, (fd_set *) NULL, (fd_set *) NULL, &timeout) > 0) { int newval; - char *errmsg; /* something to read -- clear the message area first */ clear_message(); @@ -1092,6 +1091,7 @@ new_message(0, "kill "); if (readline(tempbuf2, sizeof(tempbuf2), No) > 0) { + const char *errmsg; if ((errmsg = kill_procs(tempbuf2)) != NULL) { new_message(MT_standout, "%s", errmsg); @@ -1109,6 +1109,7 @@ new_message(0, "renice "); if (readline(tempbuf2, sizeof(tempbuf2), No) > 0) { + const char *errmsg; if ((errmsg = renice_procs(tempbuf2)) != NULL) { new_message(MT_standout, "%s", errmsg); changeset: 177:c04d989d540e user: Andy Lester date: Tue Jun 17 01:35:08 2008 -0500 summary: new protos diff -r bec36ebbfc38 -r c04d989d540e tags --- a/tags Tue Jun 17 01:19:19 2008 -0500 +++ b/tags Tue Jun 17 01:35:08 2008 -0500 @@ -831,25 +831,25 @@ fmt_header machine/m_linux.c /^static char fmt_header[] =$/;" v file: fmt_header machine/m_linuxthr.c /^static char fmt_header[] =$/;" v file: format_comm machine/m_openbsd.c /^format_comm(struct kinfo_proc2 *kp)$/;" f file: -format_header machine/m_aix43.c /^format_header(char *uname_field)$/;" f +format_header machine/m_aix43.c /^format_header(const char *uname_field)$/;" f format_header machine/m_aix5.c /^format_header(uname_field)$/;" f format_header machine/m_decosf1.c /^format_header(uname_field)$/;" f -format_header machine/m_freebsd.c /^format_header(char *uname_field)$/;" f +format_header machine/m_freebsd.c /^format_header(const char *uname_field)$/;" f format_header machine/m_hpux10.c /^format_header(uname_field)$/;" f format_header machine/m_hpux7.c /^format_header(uname_field)$/;" f format_header machine/m_hpux9.c /^format_header(uname_field)$/;" f format_header machine/m_irix5.c /^format_header(uname_field)$/;" f -format_header machine/m_irixsgi.c /^format_header(register char *uname_field)$/;" f -format_header machine/m_linux.c /^format_header(char *uname_field)$/;" f -format_header machine/m_linuxthr.c /^format_header(char *uname_field)$/;" f -format_header machine/m_macosx.c /^format_header(register char *uname_field)$/;" f +format_header machine/m_irixsgi.c /^format_header(register const char *uname_field)$/;" f +format_header machine/m_linux.c /^format_header(const char *uname_field)$/;" f +format_header machine/m_linuxthr.c /^format_header(const char *uname_field)$/;" f +format_header machine/m_macosx.c /^format_header(register const char *uname_field)$/;" f format_header machine/m_netbsd.c /^format_header(uname_field)$/;" f -format_header machine/m_openbsd.c /^format_header(char *uname_field)$/;" f -format_header machine/m_sco5.c /^format_header(register char *uname_field)$/;" f +format_header machine/m_openbsd.c /^format_header(const char *uname_field)$/;" f +format_header machine/m_sco5.c /^format_header(register const char *uname_field)$/;" f format_header machine/m_sunos4.c /^format_header(uname_field)$/;" f -format_header machine/m_sunos5.c /^format_header(register char *uname_field)$/;" f -format_header machine/m_svr4.c /^format_header(char *uname_field)$/;" f -format_header machine/m_svr5.c /^format_header(char *uname_field)$/;" f +format_header machine/m_sunos5.c /^format_header(register const char *uname_field)$/;" f +format_header machine/m_svr4.c /^format_header(const char *uname_field)$/;" f +format_header machine/m_svr5.c /^format_header(const char *uname_field)$/;" f format_k utils.c /^format_k(long amt)$/;" f format_next_process machine/m_aix43.c /^format_next_process(caddr_t handle, char *(*get_userid) ())$/;" f format_next_process machine/m_aix5.c /^format_next_process(handle, get_userid)$/;" f changeset: 176:bec36ebbfc38 user: Andy Lester date: Tue Jun 17 01:19:19 2008 -0500 summary: format_header takes a const string now diff -r 2a924f127c99 -r bec36ebbfc38 machine.h --- a/machine.h Mon Jun 16 01:43:27 2008 -0500 +++ b/machine.h Tue Jun 17 01:19:19 2008 -0500 @@ -94,7 +94,7 @@ void get_system_info(struct system_info *); caddr_t get_process_info(struct system_info *, struct process_select *, int, char *); -char *format_header(char *); +char *format_header(const char *str); char *format_next_process(caddr_t, char *(*) (uid_t)); uid_t proc_owner(pid_t); diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_aix43.c --- a/machine/m_aix43.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_aix43.c Tue Jun 17 01:19:19 2008 -0500 @@ -269,7 +269,7 @@ char * -format_header(char *uname_field) +format_header(const char *uname_field) { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_aix5.c --- a/machine/m_aix5.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_aix5.c Tue Jun 17 01:19:19 2008 -0500 @@ -285,7 +285,7 @@ char * format_header(uname_field) -register char *uname_field; +register const char *uname_field; { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_decosf1.c --- a/machine/m_decosf1.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_decosf1.c Tue Jun 17 01:19:19 2008 -0500 @@ -342,7 +342,7 @@ char * format_header(uname_field) -register char *uname_field; +register const char *uname_field; { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_freebsd.c --- a/machine/m_freebsd.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_freebsd.c Tue Jun 17 01:19:19 2008 -0500 @@ -353,7 +353,7 @@ } char * -format_header(char *uname_field) +format_header(const char *uname_field) { static char Header[128]; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_hpux10.c --- a/machine/m_hpux10.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_hpux10.c Tue Jun 17 01:19:19 2008 -0500 @@ -276,7 +276,7 @@ char * format_header(uname_field) -char *uname_field; +const char *uname_field; { char *ptr = header + UNAME_START; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_hpux7.c --- a/machine/m_hpux7.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_hpux7.c Tue Jun 17 01:19:19 2008 -0500 @@ -346,7 +346,7 @@ char * format_header(uname_field) -register char *uname_field; +register const char *uname_field; { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_hpux9.c --- a/machine/m_hpux9.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_hpux9.c Tue Jun 17 01:19:19 2008 -0500 @@ -315,7 +315,7 @@ char * format_header(uname_field) -register char *uname_field; +register const char *uname_field; { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_irix5.c --- a/machine/m_irix5.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_irix5.c Tue Jun 17 01:19:19 2008 -0500 @@ -272,7 +272,7 @@ char * format_header(uname_field) -register char *uname_field; +register const char *uname_field; { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_irixsgi.c --- a/machine/m_irixsgi.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_irixsgi.c Tue Jun 17 01:19:19 2008 -0500 @@ -384,7 +384,7 @@ } char * -format_header(register char *uname_field) +format_header(register const char *uname_field) { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_linux.c --- a/machine/m_linux.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_linux.c Tue Jun 17 01:19:19 2008 -0500 @@ -887,7 +887,7 @@ char * -format_header(char *uname_field) +format_header(const char *uname_field) { int uname_len = strlen(uname_field); diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_linuxthr.c --- a/machine/m_linuxthr.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_linuxthr.c Tue Jun 17 01:19:19 2008 -0500 @@ -866,7 +866,7 @@ char * -format_header(char *uname_field) +format_header(const char *uname_field) { int uname_len = strlen(uname_field); diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_macosx.c --- a/machine/m_macosx.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_macosx.c Tue Jun 17 01:19:19 2008 -0500 @@ -393,7 +393,7 @@ */ char * -format_header(register char *uname_field) +format_header(register const char *uname_field) { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_netbsd.c --- a/machine/m_netbsd.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_netbsd.c Tue Jun 17 01:19:19 2008 -0500 @@ -280,7 +280,7 @@ char * format_header(uname_field) -char *uname_field; +const char *uname_field; { char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_openbsd.c --- a/machine/m_openbsd.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_openbsd.c Tue Jun 17 01:19:19 2008 -0500 @@ -224,7 +224,7 @@ } char * -format_header(char *uname_field) +format_header(const char *uname_field) { char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_sco5.c --- a/machine/m_sco5.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_sco5.c Tue Jun 17 01:19:19 2008 -0500 @@ -262,7 +262,7 @@ } char * -format_header(register char *uname_field) +format_header(register const char *uname_field) { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_sunos4.c --- a/machine/m_sunos4.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_sunos4.c Tue Jun 17 01:19:19 2008 -0500 @@ -396,7 +396,7 @@ char * format_header(uname_field) -register char *uname_field; +register const char *uname_field; { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_sunos5.c --- a/machine/m_sunos5.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_sunos5.c Tue Jun 17 01:19:19 2008 -0500 @@ -561,7 +561,7 @@ } char * -format_header(register char *uname_field) +format_header(register const char *uname_field) { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_svr4.c --- a/machine/m_svr4.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_svr4.c Tue Jun 17 01:19:19 2008 -0500 @@ -238,7 +238,7 @@ } char * -format_header(char *uname_field) +format_header(const char *uname_field) { register char *ptr; diff -r 2a924f127c99 -r bec36ebbfc38 machine/m_svr5.c --- a/machine/m_svr5.c Mon Jun 16 01:43:27 2008 -0500 +++ b/machine/m_svr5.c Tue Jun 17 01:19:19 2008 -0500 @@ -276,7 +276,7 @@ } char * -format_header(char *uname_field) +format_header(const char *uname_field) { register char *ptr; changeset: 175:2a924f127c99 user: Andy Lester date: Mon Jun 16 01:43:27 2008 -0500 summary: new consting diff -r e8865d221e8e -r 2a924f127c99 commands.c --- a/commands.c Mon Jun 16 01:31:01 2008 -0500 +++ b/commands.c Mon Jun 16 01:43:27 2008 -0500 @@ -446,7 +446,7 @@ */ const char * -renice_procs(char *str) +renice_procs(const char *str) { register char negate; diff -r e8865d221e8e -r 2a924f127c99 commands.h --- a/commands.h Mon Jun 16 01:31:01 2008 -0500 +++ b/commands.h Mon Jun 16 01:43:27 2008 -0500 @@ -11,7 +11,7 @@ int error_count(void); void show_errors(void); const char *kill_procs(const char *str); -const char *renice_procs(char *str); +const char *renice_procs(const char *str); void show_current_query(char *, int); void show_explain(char *, int, int); void show_locks(char *, int); diff -r e8865d221e8e -r 2a924f127c99 pg.c --- a/pg.c Mon Jun 16 01:31:01 2008 -0500 +++ b/pg.c Mon Jun 16 01:43:27 2008 -0500 @@ -117,10 +117,10 @@ int compare_idx_scan(const void *vp1, const void *vp2) { - struct index_node **pp1 = (struct index_node **) vp1; - struct index_node **pp2 = (struct index_node **) vp2; - struct index_node *p1 = *pp1; - struct index_node *p2 = *pp2; + struct index_node * const *pp1 = (struct index_node * const *) vp1; + struct index_node * const *pp2 = (struct index_node * const *) vp2; + const struct index_node *p1 = *pp1; + const struct index_node *p2 = *pp2; if (mode_stats == STATS_DIFF) { @@ -151,10 +151,10 @@ int compare_idx_scan_t(const void *vp1, const void *vp2) { - struct table_node **pp1 = (struct table_node **) vp1; - struct table_node **pp2 = (struct table_node **) vp2; - struct table_node *p1 = *pp1; - struct table_node *p2 = *pp2; + struct table_node * const *pp1 = (struct table_node * const *) vp1; + struct table_node * const *pp2 = (struct table_node * const *) vp2; + const struct table_node *p1 = *pp1; + const struct table_node *p2 = *pp2; if (mode_stats == STATS_DIFF) { @@ -185,10 +185,10 @@ int compare_idx_tup_fetch(const void *vp1, const void *vp2) { - struct index_node **pp1 = (struct index_node **) vp1; - struct index_node **pp2 = (struct index_node **) vp2; - struct index_node *p1 = *pp1; - struct index_node *p2 = *pp2; + struct index_node * const *pp1 = (struct index_node * const *) vp1; + struct index_node * const *pp2 = (struct index_node * const *) vp2; + const struct index_node *p1 = *pp1; + const struct index_node *p2 = *pp2; if (mode_stats == STATS_DIFF) { @@ -219,10 +219,10 @@ int compare_idx_tup_fetch_t(const void *vp1, const void *vp2) { - struct table_node **pp1 = (struct table_node **) vp1; - struct table_node **pp2 = (struct table_node **) vp2; - struct table_node *p1 = *pp1; - struct table_node *p2 = *pp2; + struct table_node * const *pp1 = (struct table_node * const *) vp1; + struct table_node * const *pp2 = (struct table_node * const *) vp2; + const struct table_node *p1 = *pp1; + const struct table_node *p2 = *pp2; if (mode_stats == STATS_DIFF) { @@ -253,10 +253,10 @@ int compare_idx_tup_read(const void *vp1, const void *vp2) { - struct index_node **pp1 = (struct index_node **) vp1; - struct index_node **pp2 = (struct index_node **) vp2; - struct index_node *p1 = *pp1; - struct index_node *p2 = *pp2; + struct index_node * const *pp1 = (struct index_node * const *) vp1; + struct index_node * const *pp2 = (struct index_node * const *) vp2; + const struct index_node *p1 = *pp1; + const struct index_node *p2 = *pp2; if (mode_stats == STATS_DIFF) { @@ -287,10 +287,10 @@ int compare_n_tup_del(const void *vp1, const void *vp2) { - struct table_node **pp1 = (struct table_node **) vp1; - struct table_node **pp2 = (struct table_node **) vp2; - struct table_node *p1 = *pp1; - struct table_node *p2 = *pp2; + struct table_node * const *pp1 = (struct table_node * const *) vp1; + struct table_node * const *pp2 = (struct table_node * const *) vp2; + const struct table_node *p1 = *pp1; + const struct table_node *p2 = *pp2; if (mode_stats == STATS_DIFF) { @@ -321,8 +321,8 @@ int compare_n_tup_ins(const void *vp1, const void *vp2) { - struct table_node **pp1 = (struct table_node **) vp1; - struct table_node **pp2 = (struct table_node **) vp2; + struct table_node * const *pp1 = (struct table_node * const *) vp1; + struct table_node * const *pp2 = (struct table_node * const *) vp2; struct table_node *p1 = *pp1; struct table_node *p2 = *pp2; @@ -355,8 +355,8 @@ int compare_n_tup_upd(const void *vp1, const void *vp2) { - struct table_node **pp1 = (struct table_node **) vp1; - struct table_node **pp2 = (struct table_node **) vp2; + struct table_node * const *pp1 = (struct table_node * const *) vp1; + struct table_node * const *pp2 = (struct table_node * const *) vp2; struct table_node *p1 = *pp1; struct table_node *p2 = *pp2; @@ -389,8 +389,8 @@ int compare_seq_scan(const void *vp1, const void *vp2) { - struct table_node **pp1 = (struct table_node **) vp1; - struct table_node **pp2 = (struct table_node **) vp2; + struct table_node * const *pp1 = (struct table_node * const *) vp1; + struct table_node * const *pp2 = (struct table_node * const *) vp2; struct table_node *p1 = *pp1; struct table_node *p2 = *pp2; @@ -423,8 +423,8 @@ int compare_seq_tup_read(const void *vp1, const void *vp2) { - struct table_node **pp1 = (struct table_node **) vp1; - struct table_node **pp2 = (struct table_node **) vp2; + struct table_node * const *pp1 = (struct table_node * const *) vp1; + struct table_node * const *pp2 = (struct table_node * const *) vp2; struct table_node *p1 = *pp1; struct table_node *p2 = *pp2; @@ -625,8 +625,7 @@ max_lines = rows < max_topn ? rows : max_topn; - procs = (struct table_node **) realloc(procs, - rows * sizeof(struct table_node *)); + procs = (struct table_node **) realloc(procs, rows * sizeof(struct table_node *)); /* Calculate change in values. */ for (i = 0; i < rows; i++) { diff -r e8865d221e8e -r 2a924f127c99 pg_top.c --- a/pg_top.c Mon Jun 16 01:31:01 2008 -0500 +++ b/pg_top.c Mon Jun 16 01:43:27 2008 -0500 @@ -87,7 +87,7 @@ static int max_topn; /* maximum displayable processes */ /* miscellaneous things */ -char *myname = "top"; +const char *myname = "top"; jmp_buf jmp_int; /* pointers to display routines */ @@ -263,7 +263,7 @@ int displays = 0; /* indicates unspecified */ time_t curr_time; char *(*get_userid) (uid_t) = username; - char *uname_field = "USERNAME"; + const char *uname_field = "USERNAME"; char *header_text; char *env_top; char **preset_argv; diff -r e8865d221e8e -r 2a924f127c99 tags --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tags Mon Jun 16 01:43:27 2008 -0500 @@ -0,0 +1,1927 @@ +!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ +!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ +!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert at users.sourceforge.net/ +!_TAG_PROGRAM_NAME Exuberant Ctags // +!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/ +!_TAG_PROGRAM_VERSION 5.7 // +ARG_SIZE machine/m_openbsd.c 427;" d file: +BEGIN commands.c 80;" d file: +BSD_SIGNALS pg_top.c 43;" d file: +Buffersize pg_top.c 64;" d file: +CMD_OSLIMIT pg_top.c 328;" d file: +CMD_cmdline pg_top.c 339;" d file: +CMD_color pg_top.c 341;" d file: +CMD_current_query pg_top.c 346;" d file: +CMD_delay pg_top.c 332;" d file: +CMD_displays pg_top.c 333;" d file: +CMD_errors pg_top.c 329;" d file: +CMD_explain pg_top.c 348;" d file: +CMD_explain_analyze pg_top.c 351;" d file: +CMD_help1 pg_top.c 326;" d file: +CMD_help2 pg_top.c 327;" d file: +CMD_idletog pg_top.c 336;" d file: +CMD_idletog2 pg_top.c 337;" d file: +CMD_indexes pg_top.c 350;" d file: +CMD_kill pg_top.c 334;" d file: +CMD_locks pg_top.c 347;" d file: +CMD_number1 pg_top.c 330;" d file: +CMD_number2 pg_top.c 331;" d file: +CMD_order pg_top.c 340;" d file: +CMD_order_cpu pg_top.c 343;" d file: +CMD_order_mem pg_top.c 344;" d file: +CMD_order_pid pg_top.c 342;" d file: +CMD_order_time pg_top.c 345;" d file: +CMD_quit pg_top.c 325;" d file: +CMD_redraw pg_top.c 323;" d file: +CMD_renice pg_top.c 335;" d file: +CMD_tables pg_top.c 349;" d file: +CMD_toggle pg_top.c 352;" d file: +CMD_update pg_top.c 324;" d file: +CMD_user pg_top.c 338;" d file: +COLOR_ANSI_SLOTS color.c 56;" d file: +COMSIZ machine/m_macosx.c 441;" d file: +COMSIZ machine/m_netbsd.c 533;" d file: +CONVERT machine/m_freebsd.c 1062;" d file: +CPUSTATES machine/m_irix5.c 49;" d file: +CPUSTATES machine/m_sco5.c 150;" d file: +CPUSTATES machine/m_sunos5.c 123;" d file: +CPUSTATES machine/m_svr4.c 59;" d file: +CPUSTATES machine/m_svr5.c 65;" d file: +CPUSTATE_IOWAIT machine/m_sunos5.c 268;" d file: +CPUSTATE_SWAP machine/m_sunos5.c 269;" d file: +CPU_IDLE_THRESH machine/m_hpux10.c 52;" d file: +CPU_STATES machine/m_irixsgi.c 127;" d file: +CURRENT_QUERY commands.c 83;" d file: +CURSOR_COST display.c 46;" d file: +DEBUG utils.c 21;" d file: +D_align machine/m_irixsgi.c 90;" d file: +EOF getopt.c 27;" d file: +EP machine/m_freebsd.c 77;" d file: +EP machine/m_macosx.c 58;" d file: +ERASE display.c /^ OFF, ON, ERASE$/;" e enum:__anon1 file: +ERR getopt.c 29;" d file: +ERRMAX commands.c 54;" d file: +ERROR commands.c 70;" d file: +ERR_RESET commands.c 69;" d file: +FD_SET pg_top.c 293;" d file: +FD_ZERO pg_top.c 292;" d file: +FSCALE machine/m_irix5.c 53;" d file: +FSCALE machine/m_sunos5.c 133;" d file: +FSCALE machine/m_svr4.c 70;" d file: +FSCALE machine/m_svr5.c 76;" d file: +FSHIFT machine/m_irix5.c 52;" d file: +FSHIFT machine/m_sunos5.c 132;" d file: +FSHIFT machine/m_svr4.c 69;" d file: +FSHIFT machine/m_svr5.c 75;" d file: +GET_LOCKS commands.c 88;" d file: +HASH machine/m_irix5.c 185;" d file: +HASH machine/m_irixsgi.c 80;" d file: +HASH machine/m_linux.c 173;" d file: +HASH machine/m_linuxthr.c 181;" d file: +HASH machine/m_sunos5.c 219;" d file: +HASH_SIZE machine/m_linux.c 154;" d file: +HASH_SIZE machine/m_linuxthr.c 162;" d file: +HAVE_SIGHOLD pg_top.c 40;" d file: +Hz machine/m_sco5.c /^static int Hz;$/;" v file: +INITIAL_ACTIVE_SIZE machine/m_linux.c 155;" d file: +INITIAL_ACTIVE_SIZE machine/m_linuxthr.c 163;" d file: +IS_ACTIVE machine/m_irixsgi.c 228;" d file: +KERNEL machine/m_sunos4.c 39;" d file: +KERNEL machine/m_sunos4.c 41;" d file: +KGET machine/m_freebsd.c 1035;" d file: +KGET1 machine/m_freebsd.c 1037;" d file: +KGET2 machine/m_freebsd.c 1039;" d file: +KGETRET machine/m_freebsd.c 1044;" d file: +KMEM machine/m_aix43.c 74;" d file: +KMEM machine/m_aix5.c 80;" d file: +KMEM machine/m_decosf1.c 88;" d file: +KMEM machine/m_hpux10.c 61;" d file: +KMEM machine/m_hpux7.c 39;" d file: +KMEM machine/m_hpux9.c 67;" d file: +KMEM machine/m_irix5.c 48;" d file: +KMEM machine/m_irixsgi.c 59;" d file: +KMEM machine/m_sco5.c 59;" d file: +KMEM machine/m_sunos5.c 121;" d file: +KMEM machine/m_svr4.c 57;" d file: +KMEM machine/m_svr5.c 63;" d file: +LOG1024 machine/m_macosx.c 55;" d file: +MAXPROCS machine/m_aix5.c 22;" d file: +MEM machine/m_decosf1.c 89;" d file: +MEM machine/m_hpux10.c 62;" d file: +MEM machine/m_hpux7.c 40;" d file: +MEM machine/m_hpux9.c 68;" d file: +MEM machine/m_sco5.c 60;" d file: +MEMBUFFERS machine/m_linux.c 98;" d file: +MEMBUFFERS machine/m_linuxthr.c 104;" d file: +MEMCACHED machine/m_linux.c 99;" d file: +MEMCACHED machine/m_linuxthr.c 105;" d file: +MEMFREE machine/m_linux.c 96;" d file: +MEMFREE machine/m_linuxthr.c 102;" d file: +MEMORY_FREEMEM machine/m_sunos5.c 278;" d file: +MEMORY_FREESWAP machine/m_sunos5.c 280;" d file: +MEMORY_TOTALMEM machine/m_sunos5.c 277;" d file: +MEMORY_TOTALSWAP machine/m_sunos5.c 279;" d file: +MEMSHARED machine/m_linux.c 97;" d file: +MEMSHARED machine/m_linuxthr.c 103;" d file: +MEMSTATS machine/m_irixsgi.c 138;" d file: +MEMUSED machine/m_linux.c 95;" d file: +MEMUSED machine/m_linuxthr.c 101;" d file: +MEP machine/m_macosx.c 61;" d file: +MINIBAR_WIDTH display.c 859;" d file: +MODE_INDEX_STATS pg_top.c 69;" d file: +MODE_PROCESSES pg_top.c 67;" d file: +MODE_TABLE_STATS pg_top.c 68;" d file: +MPP machine/m_macosx.c 60;" d file: +MVP machine/m_macosx.c 62;" d file: +M_BUFFERS machine/m_aix43.c 137;" d file: +M_BUFFERS machine/m_aix5.c 139;" d file: +M_REAL machine/m_aix43.c 135;" d file: +M_REAL machine/m_aix5.c 138;" d file: +M_REALFREE machine/m_aix43.c 136;" d file: +M_REALFREE machine/m_aix5.c 141;" d file: +M_SYSTEM machine/m_aix5.c 140;" d file: +M_VIRTFREE machine/m_aix43.c 145;" d file: +M_VIRTFREE machine/m_aix5.c 149;" d file: +M_VIRTUAL machine/m_aix43.c 144;" d file: +M_VIRTUAL machine/m_aix5.c 148;" d file: +NCPUSTATES machine/m_linux.c 87;" d file: +NCPUSTATES machine/m_linuxthr.c 94;" d file: +NLIST_LAST machine/m_macosx.c 310;" d file: +NMEMSTATS machine/m_linux.c 100;" d file: +NMEMSTATS machine/m_linuxthr.c 106;" d file: +NPROCSTATES machine/m_linux.c 73;" d file: +NPROCSTATES machine/m_linuxthr.c 80;" d file: +NSWAPSTATS machine/m_linux.c 110;" d file: +NSWAPSTATS machine/m_linuxthr.c 116;" d file: +NULL getopt.c 24;" d file: +NUM_AVERAGES machine/m_macosx.c 54;" d file: +NUM_STRINGS utils.c 580;" d file: +OFF display.c /^ OFF, ON, ERASE$/;" e enum:__anon1 file: +ON display.c /^ OFF, ON, ERASE$/;" e enum:__anon1 file: +ORDERKEY_CMD machine/m_irixsgi.c 757;" d file: +ORDERKEY_CPTICKS machine/m_aix43.c 558;" d file: +ORDERKEY_CPTICKS machine/m_aix5.c 662;" d file: +ORDERKEY_CPTICKS machine/m_decosf1.c 713;" d file: +ORDERKEY_CPTICKS machine/m_freebsd.c 845;" d file: +ORDERKEY_CPTICKS machine/m_irixsgi.c 751;" d file: +ORDERKEY_CPTICKS machine/m_linux.c 949;" d file: +ORDERKEY_CPTICKS machine/m_linuxthr.c 929;" d file: +ORDERKEY_CPTICKS machine/m_netbsd.c 621;" d file: +ORDERKEY_CPTICKS machine/m_sunos4.c 825;" d file: +ORDERKEY_CPTICKS machine/m_sunos5.c 1342;" d file: +ORDERKEY_CPTICKS machine/m_svr5.c 588;" d file: +ORDERKEY_CPTIME machine/m_sco5.c 779;" d file: +ORDERKEY_CPUTIME machine/m_openbsd.c 525;" d file: +ORDERKEY_MEM machine/m_aix43.c 572;" d file: +ORDERKEY_MEM machine/m_aix5.c 674;" d file: +ORDERKEY_MEM machine/m_decosf1.c 718;" d file: +ORDERKEY_MEM machine/m_freebsd.c 864;" d file: +ORDERKEY_MEM machine/m_irixsgi.c 756;" d file: +ORDERKEY_MEM machine/m_linux.c 954;" d file: +ORDERKEY_MEM machine/m_linuxthr.c 934;" d file: +ORDERKEY_MEM machine/m_netbsd.c 636;" d file: +ORDERKEY_MEM machine/m_openbsd.c 535;" d file: +ORDERKEY_MEM machine/m_sunos4.c 830;" d file: +ORDERKEY_MEM machine/m_sunos5.c 1347;" d file: +ORDERKEY_MEM machine/m_svr5.c 594;" d file: +ORDERKEY_MEMSIZE machine/m_sco5.c 778;" d file: +ORDERKEY_NAME machine/m_linux.c 955;" d file: +ORDERKEY_NAME machine/m_linuxthr.c 935;" d file: +ORDERKEY_PCTCPU machine/m_aix43.c 554;" d file: +ORDERKEY_PCTCPU machine/m_aix5.c 659;" d file: +ORDERKEY_PCTCPU machine/m_decosf1.c 711;" d file: +ORDERKEY_PCTCPU machine/m_freebsd.c 841;" d file: +ORDERKEY_PCTCPU machine/m_irixsgi.c 748;" d file: +ORDERKEY_PCTCPU machine/m_linux.c 947;" d file: +ORDERKEY_PCTCPU machine/m_linuxthr.c 927;" d file: +ORDERKEY_PCTCPU machine/m_netbsd.c 617;" d file: +ORDERKEY_PCTCPU machine/m_openbsd.c 522;" d file: +ORDERKEY_PCTCPU machine/m_sco5.c 776;" d file: +ORDERKEY_PCTCPU machine/m_sunos4.c 823;" d file: +ORDERKEY_PCTCPU machine/m_sunos5.c 1340;" d file: +ORDERKEY_PCTCPU machine/m_svr5.c 584;" d file: +ORDERKEY_PID machine/m_svr5.c 596;" d file: +ORDERKEY_PRIO machine/m_aix43.c 567;" d file: +ORDERKEY_PRIO machine/m_aix5.c 670;" d file: +ORDERKEY_PRIO machine/m_decosf1.c 716;" d file: +ORDERKEY_PRIO machine/m_freebsd.c 854;" d file: +ORDERKEY_PRIO machine/m_freebsd.c 857;" d file: +ORDERKEY_PRIO machine/m_irixsgi.c 754;" d file: +ORDERKEY_PRIO machine/m_linux.c 952;" d file: +ORDERKEY_PRIO machine/m_linuxthr.c 932;" d file: +ORDERKEY_PRIO machine/m_netbsd.c 630;" d file: +ORDERKEY_PRIO machine/m_openbsd.c 531;" d file: +ORDERKEY_PRIO machine/m_sco5.c 784;" d file: +ORDERKEY_PRIO machine/m_sunos4.c 828;" d file: +ORDERKEY_PRIO machine/m_sunos5.c 1345;" d file: +ORDERKEY_PRIO machine/m_svr5.c 592;" d file: +ORDERKEY_RPID machine/m_svr5.c 598;" d file: +ORDERKEY_RSSIZE machine/m_aix43.c 570;" d file: +ORDERKEY_RSSIZE machine/m_aix5.c 672;" d file: +ORDERKEY_RSSIZE machine/m_decosf1.c 717;" d file: +ORDERKEY_RSSIZE machine/m_freebsd.c 861;" d file: +ORDERKEY_RSSIZE machine/m_irixsgi.c 755;" d file: +ORDERKEY_RSSIZE machine/m_linux.c 953;" d file: +ORDERKEY_RSSIZE machine/m_linuxthr.c 933;" d file: +ORDERKEY_RSSIZE machine/m_netbsd.c 633;" d file: +ORDERKEY_RSSIZE machine/m_openbsd.c 533;" d file: +ORDERKEY_RSSIZE machine/m_sunos4.c 829;" d file: +ORDERKEY_RSSIZE machine/m_sunos5.c 1346;" d file: +ORDERKEY_RSSIZE machine/m_svr5.c 593;" d file: +ORDERKEY_RUID machine/m_svr5.c 599;" d file: +ORDERKEY_STATE machine/m_aix43.c 562;" d file: +ORDERKEY_STATE machine/m_aix5.c 665;" d file: +ORDERKEY_STATE machine/m_decosf1.c 714;" d file: +ORDERKEY_STATE machine/m_freebsd.c 849;" d file: +ORDERKEY_STATE machine/m_irixsgi.c 753;" d file: +ORDERKEY_STATE machine/m_linux.c 950;" d file: +ORDERKEY_STATE machine/m_linuxthr.c 930;" d file: +ORDERKEY_STATE machine/m_netbsd.c 626;" d file: +ORDERKEY_STATE machine/m_openbsd.c 528;" d file: +ORDERKEY_STATE machine/m_sco5.c 782;" d file: +ORDERKEY_STATE machine/m_sunos4.c 826;" d file: +ORDERKEY_STATE machine/m_sunos5.c 1343;" d file: +ORDERKEY_STATE machine/m_svr5.c 589;" d file: +ORDERKEY_UID machine/m_svr5.c 597;" d file: +OSREV machine/m_sunos5.c 33;" d file: +OSREV machine/m_sunos5.c 34;" d file: +PAGE_TO_MB machine/m_aix43.c 327;" d file: +PAGE_TO_MB machine/m_aix5.c 374;" d file: +PC screen.c /^char PC;$/;" v +PCT_BASE machine/m_hpux9.c 56;" d file: +PCT_NORM machine/m_hpux9.c 55;" d file: +PP machine/m_freebsd.c 76;" d file: +PP machine/m_freebsd.c 81;" d file: +PP machine/m_macosx.c 57;" d file: +PRIO_MAX machine/m_sunos5.c 128;" d file: +PRIO_MAX machine/m_svr4.c 62;" d file: +PRIO_MAX machine/m_svr5.c 68;" d file: +PRIO_MIN machine/m_sunos5.c 125;" d file: +PRIO_MIN machine/m_svr4.c 65;" d file: +PRIO_MIN machine/m_svr5.c 71;" d file: +PROCBLOCK_SIZE machine/m_linux.c 156;" d file: +PROCBLOCK_SIZE machine/m_linuxthr.c 164;" d file: +PROCFS machine/m_linux.c 48;" d file: +PROCFS machine/m_linuxthr.c 49;" d file: +PROCFS machine/m_sunos5.c 122;" d file: +PROCFS machine/m_svr4.c 58;" d file: +PROCFS machine/m_svr5.c 64;" d file: +PROCRESS machine/m_aix43.c 38;" d file: +PROCRESS machine/m_aix5.c 45;" d file: +PROCSIZE machine/m_aix43.c 39;" d file: +PROCSIZE machine/m_aix5.c 46;" d file: +PROCSIZE machine/m_freebsd.c 88;" d file: +PROCSIZE machine/m_freebsd.c 90;" d file: +PROCSIZE machine/m_hpux10.c 68;" d file: +PROCSIZE machine/m_hpux7.c 61;" d file: +PROCSIZE machine/m_hpux9.c 89;" d file: +PROCSIZE machine/m_macosx.c 72;" d file: +PROCSIZE machine/m_macosx.c 74;" d file: +PROCSIZE machine/m_netbsd.c 89;" d file: +PROCSIZE machine/m_openbsd.c 65;" d file: +PROCSIZE machine/m_sco5.c 79;" d file: +PROCSIZE machine/m_sunos4.c 87;" d file: +PROCTIME machine/m_aix43.c 40;" d file: +PROCTIME machine/m_aix5.c 47;" d file: +PROC_SUPER_MAGIC machine/m_linux.c 42;" d file: +PROC_SUPER_MAGIC machine/m_linuxthr.c 42;" d file: +PRPSINFOSIZE machine/m_irix5.c 186;" d file: +PRPSINFOSIZE machine/m_sunos5.c 227;" d file: +PRUID machine/m_freebsd.c 79;" d file: +PRUID machine/m_freebsd.c 83;" d file: +P_DSIZE machine/m_hpux10.c 57;" d file: +P_DSIZE machine/m_hpux9.c 40;" d file: +P_DSIZE machine/m_hpux9.c 48;" d file: +P_INMEM machine/m_netbsd.c 215;" d file: +P_RSSIZE machine/m_hpux10.c 55;" d file: +P_RSSIZE machine/m_hpux9.c 38;" d file: +P_RSSIZE machine/m_hpux9.c 46;" d file: +P_SSIZE machine/m_hpux10.c 58;" d file: +P_SSIZE machine/m_hpux9.c 41;" d file: +P_SSIZE machine/m_hpux9.c 49;" d file: +P_TSIZE machine/m_hpux10.c 56;" d file: +P_TSIZE machine/m_hpux9.c 39;" d file: +P_TSIZE machine/m_hpux9.c 47;" d file: +Proc_format machine/m_aix43.c 109;" d file: +Proc_format machine/m_aix5.c 113;" d file: +Proc_format machine/m_decosf1.c 124;" d file: +Proc_format machine/m_hpux10.c 88;" d file: +Proc_format machine/m_hpux7.c 113;" d file: +Proc_format machine/m_hpux9.c 138;" d file: +Proc_format machine/m_irix5.c 87;" d file: +Proc_format machine/m_irixsgi.c 110;" d file: +Proc_format machine/m_macosx.c 172;" d file: +Proc_format machine/m_netbsd.c 103;" d file: +Proc_format machine/m_openbsd.c 76;" d file: +Proc_format machine/m_sco5.c 122;" d file: +Proc_format machine/m_sunos4.c 141;" d file: +Proc_format machine/m_sunos5.c 239;" d file: +Proc_format machine/m_sunos5.c 248;" d file: +Proc_format machine/m_svr4.c 124;" d file: +Proc_format machine/m_svr5.c 123;" d file: +ROLLBACK commands.c 81;" d file: +RP machine/m_macosx.c 64;" d file: +RSSIZE machine/m_macosx.c 79;" d file: +RSSIZE machine/m_macosx.c 81;" d file: +RSS_K machine/m_sunos5.c 59;" d file: +RSS_K machine/m_sunos5.c 64;" d file: +RSS_K machine/m_svr5.c 38;" d file: +SDEAD machine/m_netbsd.c 211;" d file: +SGTTY screen.c 27;" d file: +SHOW_THREADS machine/m_freebsd.c 95;" d file: +SIZE_K machine/m_sunos5.c 58;" d file: +SIZE_K machine/m_sunos5.c 63;" d file: +SIZE_K machine/m_svr5.c 37;" d file: +SI_ACTIVE machine/m_sco5.c 62;" d file: +SI_TOTAL machine/m_sco5.c 63;" d file: +SONPROC machine/m_netbsd.c 213;" d file: +SRUN machine/m_netbsd.c 212;" d file: +SSLEEP machine/m_netbsd.c 214;" d file: +STDERR screen.c 94;" d file: +STDIN screen.c 92;" d file: +STDOUT screen.c 93;" d file: +STRMAX commands.c 175;" d file: +SVAR machine/m_freebsd.c 1034;" d file: +SWAP machine/m_hpux10.c 64;" d file: +SWAP machine/m_hpux7.c 42;" d file: +SWAP machine/m_hpux9.c 70;" d file: +SWAP machine/m_macosx.c 52;" d file: +SWAPCACHED machine/m_linux.c 109;" d file: +SWAPCACHED machine/m_linuxthr.c 115;" d file: +SWAPFREE machine/m_linux.c 108;" d file: +SWAPFREE machine/m_linuxthr.c 114;" d file: +SWAPUSED machine/m_linux.c 107;" d file: +SWAPUSED machine/m_linuxthr.c 113;" d file: +S_READY machine/m_irixsgi.c 221;" d file: +S_RUNNING machine/m_irixsgi.c 220;" d file: +S_SLEEPING machine/m_irixsgi.c 226;" d file: +S_STARTING machine/m_irixsgi.c 222;" d file: +S_STOPPED machine/m_irixsgi.c 224;" d file: +S_SWAPPED machine/m_irixsgi.c 223;" d file: +S_ZOMBIE machine/m_irixsgi.c 225;" d file: +TAB3 screen.c 40;" d file: +TAB3 screen.c 42;" d file: +TASKSIZE machine/m_macosx.c 75;" d file: +TERMIO screen.c 30;" d file: +TERMIOS screen.c 33;" d file: +TP machine/m_macosx.c 63;" d file: +UNAME_START machine/m_aix43.c 107;" d file: +UNAME_START machine/m_aix5.c 111;" d file: +UNAME_START machine/m_decosf1.c 122;" d file: +UNAME_START machine/m_hpux10.c 86;" d file: +UNAME_START machine/m_hpux7.c 111;" d file: +UNAME_START machine/m_hpux9.c 136;" d file: +UNAME_START machine/m_irix5.c 85;" d file: +UNAME_START machine/m_irixsgi.c 96;" d file: +UNAME_START machine/m_macosx.c 170;" d file: +UNAME_START machine/m_netbsd.c 101;" d file: +UNAME_START machine/m_openbsd.c 74;" d file: +UNAME_START machine/m_sco5.c 120;" d file: +UNAME_START machine/m_sunos4.c 139;" d file: +UNAME_START machine/m_sunos5.c 237;" d file: +UNAME_START machine/m_sunos5.c 246;" d file: +UNAME_START machine/m_svr4.c 123;" d file: +UNAME_START machine/m_svr5.c 122;" d file: +UNIX machine/m_irix5.c 47;" d file: +UNIX machine/m_sunos5.c 120;" d file: +UNIX machine/m_svr4.c 56;" d file: +UNIX machine/m_svr5.c 62;" d file: +USERSIZE machine/m_hpux7.c 597;" d file: +USE_KSTAT machine/m_sunos5.c 105;" d file: +USE_NEW_PROC machine/m_sunos5.c 45;" d file: +USE_NEW_PROC machine/m_sunos5.c 61;" d file: +Usrptmap machine/m_hpux7.c /^static struct pte *Usrptmap,$/;" v typeref:struct:pte file: +VMUNIX machine/m_decosf1.c 87;" d file: +VMUNIX machine/m_hpux10.c 60;" d file: +VMUNIX machine/m_hpux7.c 38;" d file: +VMUNIX machine/m_hpux9.c 66;" d file: +VMUNIX machine/m_macosx.c 50;" d file: +VMUNIX machine/m_sco5.c 58;" d file: +VP machine/m_freebsd.c 78;" d file: +VP machine/m_freebsd.c 82;" d file: +VP machine/m_macosx.c 59;" d file: +XCP_SPIN machine/m_sunos4.c 209;" d file: +X_ANONINFO machine/m_sunos5.c 156;" d file: +X_ANONINFO machine/m_svr4.c 84;" d file: +X_AVAILRMEM machine/m_irix5.c 130;" d file: +X_AVAILRMEM machine/m_sco5.c 85;" d file: +X_AVAILSMEM machine/m_sco5.c 87;" d file: +X_AVENRUN machine/m_aix43.c 77;" d file: +X_AVENRUN machine/m_aix5.c 83;" d file: +X_AVENRUN machine/m_freebsd.c 105;" d file: +X_AVENRUN machine/m_hpux7.c 64;" d file: +X_AVENRUN machine/m_hpux9.c 92;" d file: +X_AVENRUN machine/m_irix5.c 126;" d file: +X_AVENRUN machine/m_sunos4.c 90;" d file: +X_AVENRUN machine/m_sunos5.c 159;" d file: +X_AVENRUN machine/m_svr4.c 80;" d file: +X_AVENRUN machine/m_svr5.c 83;" d file: +X_BOOTTIME machine/m_freebsd.c 117;" d file: +X_BUFSPACE machine/m_freebsd.c 108;" d file: +X_CCPU machine/m_freebsd.c 101;" d file: +X_CCPU machine/m_hpux7.c 65;" d file: +X_CCPU machine/m_hpux9.c 93;" d file: +X_CCPU machine/m_sunos4.c 91;" d file: +X_CNT machine/m_freebsd.c 110;" d file: +X_CPU machine/m_sunos5.c 160;" d file: +X_CP_TIME machine/m_freebsd.c 103;" d file: +X_CP_TIME machine/m_hpux7.c 69;" d file: +X_CP_TIME machine/m_hpux9.c 97;" d file: +X_CP_TIME machine/m_sunos4.c 96;" d file: +X_CUR_CPU machine/m_sco5.c 94;" d file: +X_EPAGES machine/m_sunos4.c 98;" d file: +X_FREEMEM machine/m_irix5.c 128;" d file: +X_FREEMEM machine/m_sco5.c 84;" d file: +X_FREEMEM machine/m_sunos5.c 158;" d file: +X_HZ machine/m_hpux7.c 75;" d file: +X_HZ machine/m_hpux9.c 110;" d file: +X_HZ machine/m_macosx.c 307;" d file: +X_HZ machine/m_sco5.c 91;" d file: +X_LASTPID machine/m_freebsd.c 114;" d file: +X_MAXMEM machine/m_irix5.c 129;" d file: +X_MAXMEM machine/m_macosx.c 308;" d file: +X_MAXMEM machine/m_sco5.c 88;" d file: +X_MAXMEM machine/m_sunos5.c 157;" d file: +X_MPID machine/m_decosf1.c 103;" d file: +X_MPID machine/m_hpux10.c 71;" d file: +X_MPID machine/m_hpux7.c 74;" d file: +X_MPID machine/m_hpux9.c 98;" d file: +X_MPID machine/m_irix5.c 131;" d file: +X_MPID machine/m_sco5.c 92;" d file: +X_MPID machine/m_sunos4.c 92;" d file: +X_MPID machine/m_sunos5.c 155;" d file: +X_MPID machine/m_svr4.c 81;" d file: +X_MPID machine/m_svr5.c 85;" d file: +X_NCPUS machine/m_sunos5.c 162;" d file: +X_NPIDS machine/m_hpux7.c 78;" d file: +X_NPROC machine/m_hpux7.c 66;" d file: +X_NPROC machine/m_hpux9.c 94;" d file: +X_NPROC machine/m_irix5.c 127;" d file: +X_NPROC machine/m_macosx.c 306;" d file: +X_NPROC machine/m_sunos4.c 93;" d file: +X_NPROC machine/m_sunos5.c 161;" d file: +X_NPROC machine/m_svr4.c 83;" d file: +X_NSWAP machine/m_sco5.c 90;" d file: +X_PAGES machine/m_sunos4.c 97;" d file: +X_PHYSMEM machine/m_sco5.c 89;" d file: +X_PROC machine/m_aix43.c 80;" d file: +X_PROC machine/m_hpux7.c 67;" d file: +X_PROC machine/m_hpux9.c 95;" d file: +X_PROC machine/m_sco5.c 83;" d file: +X_PROC machine/m_sunos4.c 94;" d file: +X_SYSINFO machine/m_aix43.c 78;" d file: +X_SYSINFO machine/m_aix5.c 84;" d file: +X_SYSINFO machine/m_sco5.c 93;" d file: +X_SYSINFO machine/m_svr4.c 86;" d file: +X_TOTAL machine/m_hpux7.c 68;" d file: +X_TOTAL machine/m_hpux9.c 96;" d file: +X_TOTAL machine/m_sunos4.c 95;" d file: +X_TOTAL machine/m_svr4.c 85;" d file: +X_UBASE machine/m_hpux7.c 79;" d file: +X_USRPT machine/m_hpux7.c 72;" d file: +X_USRPTMAP machine/m_hpux7.c 71;" d file: +X_V machine/m_aix43.c 81;" d file: +X_V machine/m_aix5.c 86;" d file: +X_V machine/m_sco5.c 82;" d file: +X_V machine/m_sunos5.c 154;" d file: +X_V machine/m_svr4.c 82;" d file: +X_V machine/m_svr5.c 84;" d file: +X_VMKER machine/m_aix43.c 79;" d file: +X_VMKER machine/m_aix5.c 85;" d file: +ZOMBIE machine/m_sunos5.c 57;" d file: +ZOMBIE machine/m_sunos5.c 62;" d file: +ZOMBIE machine/m_svr5.c 36;" d file: +_KMEMUSER machine/m_irix5.c 19;" d file: +_KMEMUSER machine/m_irixsgi.c 30;" d file: +_KMEMUSER machine/m_sunos5.c 28;" d file: +_KMEMUSER machine/m_svr5.c 28;" d file: +_STRUCTURED_PROC machine/m_sunos5.c 47;" d file: +__PST2P machine/m_hpux9.c 44;" d file: +active_proc_count machine/m_irixsgi.c /^active_proc_count()$/;" f file: +activesize machine/m_linux.c /^static unsigned int activesize = 0;$/;" v file: +activesize machine/m_linuxthr.c /^static unsigned int activesize = 0;$/;" v file: +alldigits utils.c /^alldigits(char *s)$/;" f file: +allocate_proc_tables machine/m_irixsgi.c /^allocate_proc_tables()$/;" f +anoninfo_offset machine/m_sunos5.c /^static unsigned long anoninfo_offset;$/;" v file: +anoninfo_offset machine/m_svr4.c /^static unsigned long anoninfo_offset;$/;" v file: +arg commands.c /^ char *arg; \/* argument that caused the error *\/$/;" m struct:errs file: +argparse utils.c /^argparse(char *line, int *cntp)$/;" f +atoiwi utils.c /^atoiwi(char *str)$/;" f +availrmem_offset machine/m_irix5.c /^static unsigned long availrmem_offset;$/;" v file: +avenrun_offset machine/m_aix43.c /^static unsigned long avenrun_offset;$/;" v file: +avenrun_offset machine/m_aix5.c /^static unsigned long avenrun_offset;$/;" v file: +avenrun_offset machine/m_freebsd.c /^static unsigned long avenrun_offset;$/;" v file: +avenrun_offset machine/m_hpux7.c /^static unsigned long avenrun_offset;$/;" v file: +avenrun_offset machine/m_hpux9.c /^static unsigned long avenrun_offset;$/;" v file: +avenrun_offset machine/m_irix5.c /^static unsigned long avenrun_offset;$/;" v file: +avenrun_offset machine/m_irixsgi.c /^static unsigned long avenrun_offset;$/;" v file: +avenrun_offset machine/m_sunos4.c /^static unsigned long avenrun_offset;$/;" v file: +avenrun_offset machine/m_sunos5.c /^static unsigned long avenrun_offset;$/;" v file: +avenrun_offset machine/m_svr4.c /^static unsigned long avenrun_offset;$/;" v file: +avenrun_offset machine/m_svr5.c /^static unsigned long avenrun_offset;$/;" v file: +badmem machine/m_aix43.c /^ uint badmem; \/* this is used in RS\/6000 model 220 *\/$/;" m struct:vmker file: +badmem machine/m_aix5.c /^ uint badmem; \/* this is used in RS\/6000 model 220 *\/$/;" m struct:vmker file: +boottime machine/m_linux.c /^static time_t boottime = -1;$/;" v file: +boottime machine/m_linuxthr.c /^static time_t boottime = -1;$/;" v file: +bufsize display.c /^static int bufsize = 0;$/;" v file: +bufspace_offset machine/m_freebsd.c /^static unsigned long bufspace_offset;$/;" v file: +bytag color.c /^static color_entry **bytag = NULL;$/;" v file: +bytag_names color.c /^static char **bytag_names = NULL;$/;" v file: +bytes machine/m_decosf1.c /^static int bytes;$/;" v file: +bytes machine/m_hpux7.c /^static int bytes;$/;" v file: +bytes machine/m_hpux9.c /^static int bytes;$/;" v file: +bytes machine/m_irix5.c /^static int bytes;$/;" v file: +bytes machine/m_sco5.c /^static int bytes;$/;" v file: +bytes machine/m_sunos4.c /^static int bytes;$/;" v file: +bytes machine/m_svr4.c /^static int bytes;$/;" v file: +bytes machine/m_svr5.c /^static int bytes;$/;" v file: +bytesize machine/m_sunos4.c /^static int bytesize;$/;" v file: +bytetok machine/m_linux.c 171;" d file: +bytetok machine/m_linuxthr.c 179;" d file: +bytetok machine/m_sco5.c 76;" d file: +ccpu machine/m_decosf1.c /^static load_avg ccpu;$/;" v file: +ccpu machine/m_freebsd.c /^static load_avg ccpu;$/;" v file: +ccpu machine/m_hpux7.c /^static load_avg ccpu;$/;" v file: +ccpu machine/m_hpux9.c /^static load_avg ccpu;$/;" v file: +ccpu machine/m_netbsd.c /^static int ccpu;$/;" v file: +ccpu machine/m_sunos4.c /^static load_avg ccpu;$/;" v file: +ch_erase screen.c /^char ch_erase;$/;" v +ch_kill screen.c /^char ch_kill;$/;" v +check_nlist machine/m_freebsd.c /^check_nlist(struct nlist * nlst)$/;" f file: +check_nlist machine/m_hpux7.c /^check_nlist(nlst)$/;" f +check_nlist machine/m_hpux9.c /^check_nlist(nlst)$/;" f +check_nlist machine/m_irix5.c /^check_nlist(nlst)$/;" f +check_nlist machine/m_sco5.c /^check_nlist(register struct nlist * nlst)$/;" f +check_nlist machine/m_sunos4.c /^check_nlist(nlst)$/;" f +check_nlist machine/m_sunos5.c /^check_nlist(register struct nlist * nlst)$/;" f +check_nlist machine/m_svr4.c /^check_nlist(register struct nlist * nlst)$/;" f +check_nlist machine/m_svr5.c /^check_nlist(register struct nlist * nlst)$/;" f +clear screen.c /^clear(void)$/;" f +clear_eol screen.c /^clear_eol(int len)$/;" f +clear_line screen.c /^char *clear_line;$/;" v +clear_message display.c /^clear_message()$/;" f +clear_screen screen.c /^char *clear_screen;$/;" v +clear_to_end screen.c /^char *clear_to_end;$/;" v +clip_percent machine/m_irixsgi.c /^clip_percent(double pct)$/;" f file: +cmd machine/m_freebsd.c /^char cmd[MAX_COLS];$/;" v +cmd machine/m_macosx.c /^char cmd[MAX_COLS];$/;" v +cmdlength machine/m_freebsd.c /^static int cmdlength;$/;" v file: +cnt_offset machine/m_freebsd.c /^static unsigned long cnt_offset;$/;" v file: +color color.c /^ char color;$/;" m struct:color_entry file: +color_ansi color.c /^static char **color_ansi = NULL;$/;" v file: +color_debug color.c /^color_debug(FILE * f)$/;" f +color_dump color.c /^color_dump(FILE * f)$/;" f +color_entry color.c /^typedef struct color_entry$/;" s file: +color_entry color.c /^} color_entry;$/;" t typeref:struct:color_entry file: +color_env_parse color.c /^color_env_parse(char *env)$/;" f +color_set color.c /^color_set(int color)$/;" f +color_slot color.c /^color_slot(const char *str)$/;" f file: +color_tag color.c /^color_tag(const char *tag)$/;" f +color_test color.c /^color_test(int tagidx, int value)$/;" f +colorbuf display.c /^static char *colorbuf = NULL;$/;" v file: +compare_cmd machine/m_irixsgi.c /^compare_cmd(struct prpsinfo ** pp1, struct prpsinfo ** pp2)$/;" f +compare_cmd machine/m_linux.c /^compare_cmd($/;" f +compare_cmd machine/m_linuxthr.c /^compare_cmd($/;" f +compare_cpu machine/m_aix43.c /^compare_cpu(struct procsinfo ** ppi1, struct procsinfo ** ppi2)$/;" f +compare_cpu machine/m_aix5.c /^compare_cpu(ppi1, ppi2)$/;" f +compare_cpu machine/m_decosf1.c /^compare_cpu(pp1, pp2)$/;" f +compare_cpu machine/m_irixsgi.c /^compare_cpu(struct prpsinfo ** pp1, struct prpsinfo ** pp2)$/;" f +compare_cpu machine/m_linux.c /^compare_cpu($/;" f +compare_cpu machine/m_linuxthr.c /^compare_cpu($/;" f +compare_cpu machine/m_netbsd.c /^compare_cpu(pp1, pp2)$/;" f file: +compare_cpu machine/m_openbsd.c /^compare_cpu(const void *v1, const void *v2)$/;" f file: +compare_cpu machine/m_sco5.c /^compare_cpu(struct proc ** pp1, struct proc ** pp2)$/;" f +compare_cpu machine/m_sunos4.c /^compare_cpu(pp1, pp2)$/;" f +compare_cpu machine/m_sunos5.c /^compare_cpu($/;" f +compare_cpu machine/m_svr5.c /^compare_cpu($/;" f +compare_idx_scan pg.c /^compare_idx_scan(const void *vp1, const void *vp2)$/;" f +compare_idx_scan_t pg.c /^compare_idx_scan_t(const void *vp1, const void *vp2)$/;" f +compare_idx_tup_fetch pg.c /^compare_idx_tup_fetch(const void *vp1, const void *vp2)$/;" f +compare_idx_tup_fetch_t pg.c /^compare_idx_tup_fetch_t(const void *vp1, const void *vp2)$/;" f +compare_idx_tup_read pg.c /^compare_idx_tup_read(const void *vp1, const void *vp2)$/;" f +compare_n_tup_del pg.c /^compare_n_tup_del(const void *vp1, const void *vp2)$/;" f +compare_n_tup_ins pg.c /^compare_n_tup_ins(const void *vp1, const void *vp2)$/;" f +compare_n_tup_upd pg.c /^compare_n_tup_upd(const void *vp1, const void *vp2)$/;" f +compare_pid machine/m_svr5.c /^compare_pid($/;" f +compare_prio machine/m_aix43.c /^compare_prio(struct procsinfo ** ppi1, struct procsinfo ** ppi2)$/;" f +compare_prio machine/m_aix5.c /^compare_prio(ppi1, ppi2)$/;" f +compare_prio machine/m_freebsd.c /^compare_prio(struct proc ** pp1, struct proc ** pp2)$/;" f +compare_prio machine/m_irixsgi.c /^compare_prio(struct prpsinfo ** pp1, struct prpsinfo ** pp2)$/;" f +compare_prio machine/m_netbsd.c /^compare_prio(pp1, pp2)$/;" f file: +compare_prio machine/m_openbsd.c /^compare_prio(const void *v1, const void *v2)$/;" f file: +compare_res machine/m_aix43.c /^compare_res(struct procsinfo ** ppi1, struct procsinfo ** ppi2)$/;" f +compare_res machine/m_aix5.c /^compare_res(ppi1, ppi2)$/;" f +compare_res machine/m_decosf1.c /^compare_res(pp1, pp2)$/;" f +compare_res machine/m_freebsd.c /^compare_res(struct proc ** pp1, struct proc ** pp2)$/;" f +compare_res machine/m_irixsgi.c /^compare_res(struct prpsinfo ** pp1, struct prpsinfo ** pp2)$/;" f +compare_res machine/m_linux.c /^compare_res($/;" f +compare_res machine/m_linuxthr.c /^compare_res($/;" f +compare_res machine/m_netbsd.c /^compare_res(pp1, pp2)$/;" f file: +compare_res machine/m_openbsd.c /^compare_res(const void *v1, const void *v2)$/;" f file: +compare_res machine/m_sunos4.c /^compare_res(pp1, pp2)$/;" f +compare_res machine/m_sunos5.c /^compare_res($/;" f +compare_res machine/m_svr5.c /^compare_res($/;" f +compare_rpid machine/m_svr5.c /^compare_rpid($/;" f +compare_ruid machine/m_svr5.c /^compare_ruid($/;" f +compare_seq_scan pg.c /^compare_seq_scan(const void *vp1, const void *vp2)$/;" f +compare_seq_tup_read pg.c /^compare_seq_tup_read(const void *vp1, const void *vp2)$/;" f +compare_size machine/m_aix43.c /^compare_size(struct procsinfo ** ppi1, struct procsinfo ** ppi2)$/;" f +compare_size machine/m_aix5.c /^compare_size(ppi1, ppi2)$/;" f +compare_size machine/m_decosf1.c /^compare_size(pp1, pp2)$/;" f +compare_size machine/m_freebsd.c /^compare_size(struct proc ** pp1, struct proc ** pp2)$/;" f +compare_size machine/m_irixsgi.c /^compare_size(struct prpsinfo ** pp1, struct prpsinfo ** pp2)$/;" f +compare_size machine/m_linux.c /^compare_size($/;" f +compare_size machine/m_linuxthr.c /^compare_size($/;" f +compare_size machine/m_netbsd.c /^compare_size(pp1, pp2)$/;" f file: +compare_size machine/m_openbsd.c /^compare_size(const void *v1, const void *v2)$/;" f file: +compare_size machine/m_sco5.c /^compare_size(struct proc ** pp1, struct proc ** pp2)$/;" f +compare_size machine/m_sunos4.c /^compare_size(pp1, pp2)$/;" f +compare_size machine/m_sunos5.c /^compare_size($/;" f +compare_size machine/m_svr5.c /^compare_size($/;" f +compare_state machine/m_irixsgi.c /^compare_state(struct prpsinfo ** pp1, struct prpsinfo ** pp2)$/;" f +compare_state machine/m_netbsd.c /^compare_state(pp1, pp2)$/;" f file: +compare_time machine/m_aix43.c /^compare_time(struct procsinfo ** ppi1, struct procsinfo ** ppi2)$/;" f +compare_time machine/m_aix5.c /^compare_time(ppi1, ppi2)$/;" f +compare_time machine/m_decosf1.c /^compare_time(pp1, pp2)$/;" f +compare_time machine/m_freebsd.c /^compare_time(struct proc ** pp1, struct proc ** pp2)$/;" f +compare_time machine/m_irixsgi.c /^compare_time(struct prpsinfo ** pp1, struct prpsinfo ** pp2)$/;" f +compare_time machine/m_linux.c /^compare_time($/;" f +compare_time machine/m_linuxthr.c /^compare_time($/;" f +compare_time machine/m_netbsd.c /^compare_time(pp1, pp2)$/;" f file: +compare_time machine/m_openbsd.c /^compare_time(const void *v1, const void *v2)$/;" f file: +compare_time machine/m_sco5.c /^compare_time(struct proc ** pp1, struct proc ** pp2)$/;" f +compare_time machine/m_sunos5.c /^compare_time($/;" f +compare_time machine/m_svr5.c /^compare_time($/;" f +compare_uid machine/m_svr5.c /^compare_uid($/;" f +connect_to_db pg.c /^connect_to_db(char *conninfo)$/;" f +copyright pg_top.c /^const char copyright[] = "Copyright (c) 1984 through 2007, William LeFebvre";$/;" v +count machine/m_sunos4.c /^static int count;$/;" v file: +cp_diff machine/m_aix43.c /^static long cp_diff[CPU_NTIMES];$/;" v file: +cp_diff machine/m_aix5.c /^static long cp_diff[CPU_NTIMES];$/;" v file: +cp_diff machine/m_freebsd.c /^static int64_t cp_diff[CPUSTATES];$/;" v file: +cp_diff machine/m_hpux10.c /^static long cp_diff[PST_MAX_CPUSTATES];$/;" v file: +cp_diff machine/m_hpux7.c /^static long cp_diff[CPUSTATES];$/;" v file: +cp_diff machine/m_hpux9.c /^static long cp_diff[CPUSTATES];$/;" v file: +cp_diff machine/m_linux.c /^static int64_t cp_diff[NCPUSTATES];$/;" v file: +cp_diff machine/m_linuxthr.c /^static long cp_diff[NCPUSTATES];$/;" v file: +cp_diff machine/m_macosx.c /^static int64_t cp_diff[CPU_STATE_MAX];$/;" v file: +cp_diff machine/m_netbsd.c /^static u_int64_t cp_diff[CPUSTATES];$/;" v file: +cp_diff machine/m_openbsd.c /^static int64_t **cp_diff;$/;" v file: +cp_diff machine/m_sco5.c /^static time_t cp_diff[CPUSTATES];$/;" v file: +cp_diff machine/m_sunos4.c /^static long cp_diff[CPUSTATES];$/;" v file: +cp_old machine/m_aix43.c /^static long cp_old[CPU_NTIMES];$/;" v file: +cp_old machine/m_aix5.c /^static long cp_old[CPU_NTIMES];$/;" v file: +cp_old machine/m_freebsd.c /^static int64_t cp_old[CPUSTATES];$/;" v file: +cp_old machine/m_hpux10.c /^static long cp_old[PST_MAX_CPUSTATES];$/;" v file: +cp_old machine/m_hpux7.c /^static long cp_old[CPUSTATES];$/;" v file: +cp_old machine/m_hpux9.c /^static long cp_old[CPUSTATES];$/;" v file: +cp_old machine/m_linux.c /^static int64_t cp_old[NCPUSTATES];$/;" v file: +cp_old machine/m_linuxthr.c /^static long cp_old[NCPUSTATES];$/;" v file: +cp_old machine/m_macosx.c /^static int64_t cp_old[CPU_STATE_MAX];$/;" v file: +cp_old machine/m_netbsd.c /^static u_int64_t cp_old[CPUSTATES];$/;" v file: +cp_old machine/m_openbsd.c /^static int64_t **cp_old;$/;" v file: +cp_old machine/m_sco5.c /^static time_t cp_old[CPUSTATES];$/;" v file: +cp_old machine/m_sunos4.c /^static long cp_old[CPUSTATES];$/;" v file: +cp_time machine/m_aix43.c /^static long cp_time[CPU_NTIMES];$/;" v file: +cp_time machine/m_aix5.c /^static long cp_time[CPU_NTIMES];$/;" v file: +cp_time machine/m_freebsd.c /^static int64_t cp_time[CPUSTATES];$/;" v file: +cp_time machine/m_hpux10.c /^static long cp_time[PST_MAX_CPUSTATES];$/;" v file: +cp_time machine/m_hpux7.c /^static long cp_time[CPUSTATES];$/;" v file: +cp_time machine/m_hpux9.c /^static long cp_time[CPUSTATES];$/;" v file: +cp_time machine/m_linux.c /^static int64_t cp_time[NCPUSTATES];$/;" v file: +cp_time machine/m_linuxthr.c /^static long cp_time[NCPUSTATES];$/;" v file: +cp_time machine/m_macosx.c /^static int64_t cp_time[CPU_STATE_MAX];$/;" v file: +cp_time machine/m_netbsd.c /^static u_int64_t cp_time[CPUSTATES];$/;" v file: +cp_time machine/m_openbsd.c /^static int64_t **cp_time;$/;" v file: +cp_time machine/m_sco5.c /^static time_t cp_time[CPUSTATES];$/;" v file: +cp_time machine/m_sunos4.c /^static long cp_time[CPUSTATES];$/;" v file: +cp_time_offset machine/m_freebsd.c /^static unsigned long cp_time_offset;$/;" v file: +cp_time_offset machine/m_hpux7.c /^static unsigned long cp_time_offset;$/;" v file: +cp_time_offset machine/m_hpux9.c /^static unsigned long cp_time_offset;$/;" v file: +cp_time_offset machine/m_sunos4.c /^static unsigned long cp_time_offset;$/;" v file: +cpu_offset machine/m_sunos5.c /^static unsigned long *cpu_offset;$/;" v file: +cpu_proc machine/m_aix5.c /^struct timeval64 *cpu_proc,$/;" v typeref:struct:timeval64 +cpu_states machine/m_aix43.c /^int cpu_states[4];$/;" v +cpu_states machine/m_aix5.c /^int cpu_states[CPU_NTIMES];$/;" v +cpu_states machine/m_decosf1.c /^int cpu_states[5];$/;" v +cpu_states machine/m_freebsd.c /^int64_t cpu_states[CPUSTATES];$/;" v +cpu_states machine/m_hpux10.c /^int cpu_states[PST_MAX_CPUSTATES];$/;" v +cpu_states machine/m_hpux7.c /^int cpu_states[5];$/;" v +cpu_states machine/m_hpux7.c /^int cpu_states[9];$/;" v +cpu_states machine/m_hpux9.c /^int cpu_states[9];$/;" v +cpu_states machine/m_irix5.c /^int cpu_states[CPUSTATES];$/;" v +cpu_states machine/m_irixsgi.c /^int cpu_states[CPU_STATES];$/;" v +cpu_states machine/m_linux.c /^static int64_t cpu_states[NCPUSTATES];$/;" v file: +cpu_states machine/m_linuxthr.c /^static int cpu_states[NCPUSTATES];$/;" v file: +cpu_states machine/m_macosx.c /^static int64_t cpu_states[CPU_STATE_MAX];$/;" v file: +cpu_states machine/m_netbsd.c /^int cpu_states[CPUSTATES];$/;" v +cpu_states machine/m_openbsd.c /^int64_t *cpu_states;$/;" v +cpu_states machine/m_sco5.c /^int cpu_states[CPUSTATES];$/;" v +cpu_states machine/m_sunos4.c /^int cpu_states[5];$/;" v +cpu_states machine/m_sunos5.c /^int64_t cpu_states[CPUSTATES];$/;" v +cpu_states machine/m_svr4.c /^int cpu_states[CPUSTATES];$/;" v +cpu_states machine/m_svr5.c /^int cpu_states[CPUSTATES];$/;" v +cpucount machine/m_sunos5.c /^static int cpucount;$/;" v file: +cpuload machine/m_macosx.c /^host_cpu_load_info_data_t cpuload;$/;" v +cpustate_cidx display.c /^static int *cpustate_cidx;$/;" v file: +cpustate_columns display.c /^static int *cpustate_columns;$/;" v file: +cpustate_names display.c /^static const char **cpustate_names;$/;" v file: +cpustate_total_length display.c /^static int cpustate_total_length;$/;" v file: +cpustatenames machine/m_aix43.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_aix5.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_decosf1.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_freebsd.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_hpux10.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_hpux7.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_hpux9.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_irix5.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_irixsgi.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_linux.c /^static const char *cpustatenames[NCPUSTATES + 1] =$/;" v file: +cpustatenames machine/m_linuxthr.c /^static char *cpustatenames[NCPUSTATES + 1] =$/;" v file: +cpustatenames machine/m_netbsd.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_openbsd.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_sco5.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_sunos4.c /^char *cpustatenames[] = {$/;" v +cpustatenames machine/m_sunos5.c /^char *cpustatenames[] =$/;" v +cpustatenames machine/m_svr4.c /^char *cpustatenames[] =$/;" v +cpustatenames machine/m_svr5.c /^char *cpustatenames[] =$/;" v +cpustates machine/m_macosx.c /^static char *cpustates[] =$/;" v file: +cpustates_tag display.c /^cpustates_tag(void)$/;" f +cur_cpu machine/m_sco5.c /^static load_avg cur_cpu;$/;" v file: +curr_color display.c /^static int curr_color;$/;" v file: +curr_x display.c /^static int curr_x,$/;" v file: +curr_y display.c /^ curr_y;$/;" v file: +cursor_motion screen.c /^char *cursor_motion;$/;" v +curtime machine/m_aix43.c /^unsigned long curtime;$/;" v +curtime machine/m_aix5.c /^unsigned long curtime;$/;" v +curtimeval machine/m_aix5.c /^struct timeval curtimeval;$/;" v typeref:struct:timeval +d_cpustates pg_top.c /^void (*d_cpustates) (int64_t *) = i_cpustates;$/;" v +d_header pg_top.c /^void (*d_header) (char *) = i_header;$/;" v +d_loadave pg_top.c /^void (*d_loadave) (int, double *) = i_loadave;$/;" v +d_memory pg_top.c /^void (*d_memory) (long *) = i_memory;$/;" v +d_message pg_top.c /^void (*d_message) () = i_message;$/;" v +d_minibar pg_top.c /^void (*d_minibar) ($/;" v +d_process pg_top.c /^void (*d_process) (int, char *) = i_process;$/;" v +d_procstates pg_top.c /^void (*d_procstates) (int, int *) = i_procstates;$/;" v +d_swap pg_top.c /^void (*d_swap) (long *) = i_swap;$/;" v +d_uptime pg_top.c /^void (*d_uptime) (time_t *, time_t *) = i_uptime;$/;" v +dbl_align machine/m_sunos5.c 137;" d file: +debug_on utils.c /^static int debug_on = 0;$/;" v file: +debug_set utils.c /^debug_set(int i)$/;" f +debugfile utils.c /^FILE *debugfile;$/;" v +dev machine/m_hpux10.c /^ dev_t dev;$/;" m struct:ttymap file: +diff_idx_scan pg.c /^ long long diff_idx_scan;$/;" m struct:index_node file: +diff_idx_scan pg.c /^ long long diff_idx_scan;$/;" m struct:table_node file: +diff_idx_tup_fetch pg.c /^ long long diff_idx_tup_fetch;$/;" m struct:index_node file: +diff_idx_tup_fetch pg.c /^ long long diff_idx_tup_fetch;$/;" m struct:table_node file: +diff_idx_tup_read pg.c /^ long long diff_idx_tup_read;$/;" m struct:index_node file: +diff_n_tup_del pg.c /^ long long diff_n_tup_del;$/;" m struct:table_node file: +diff_n_tup_ins pg.c /^ long long diff_n_tup_ins;$/;" m struct:table_node file: +diff_n_tup_upd pg.c /^ long long diff_n_tup_upd;$/;" m struct:table_node file: +diff_seq_scan pg.c /^ long long diff_seq_scan;$/;" m struct:table_node file: +diff_seq_tup_read pg.c /^ long long diff_seq_tup_read;$/;" m struct:table_node file: +digits utils.c /^digits(int val)$/;" f +display_clear display.c /^display_clear(void)$/;" f file: +display_cte display.c /^display_cte(void)$/;" f file: +display_error_message display.c /^display_error_message(const char *msgfmt,...)$/;" f +display_fmt display.c /^display_fmt(int x, int y, int newcolor, int eol, const char *fmt,...)$/;" f file: +display_header display.c /^display_header(int t)$/;" f +display_init display.c /^display_init(struct statics * statics)$/;" f +display_move display.c /^display_move(int x, int y)$/;" f file: +display_pager display.c /^display_pager(const char *data)$/;" f +display_pagerend display.c /^display_pagerend()$/;" f +display_pagerstart display.c /^display_pagerstart()$/;" f +display_resize display.c /^display_resize(void)$/;" f +display_width display.c /^static int display_width = MAX_COLS;$/;" v file: +display_write display.c /^display_write(int x, int y, int newcolor, int eol, const char *new)$/;" f file: +do_last_pid machine/m_decosf1.c /^static int do_last_pid = 1;$/;" v file: +do_threads_calculations machine/m_decosf1.c /^do_threads_calculations(thisproc)$/;" f +double_pctcpu machine/m_aix43.c 439;" d file: +end_code machine/m_linuxthr.c /^ unsigned long end_code;$/;" m struct:top_proc file: +end_screen screen.c /^end_screen()$/;" f +end_standout screen.c /^char *end_standout;$/;" v +enter_user username.c /^enter_user(uid_t uid, const char *name, int wecare)$/;" f +entries color.c /^static color_entry *entries = NULL;$/;" v file: +epages machine/m_sunos4.c /^static unsigned long epages;$/;" v file: +err_compar commands.c /^err_compar(const void *p1, const void *p2)$/;" f file: +err_listem commands.c /^static const char err_listem[] =$/;" v file: +err_string commands.c /^err_string(void)$/;" f file: +err_toomany commands.c /^static const char err_toomany[] = " too many errors occurred";$/;" v file: +errcnt commands.c /^static int errcnt;$/;" v file: +errmsg utils.c /^errmsg(int errnum)$/;" f +errnum commands.c /^ int errnum; \/* value of errno (that is, the actual error) *\/$/;" m struct:errs file: +error_count commands.c /^error_count(void)$/;" f +errs commands.c /^static struct errs errs[ERRMAX];$/;" v typeref:struct:errs file: +errs commands.c /^struct errs \/* structure for a system-call error *\/$/;" s file: +fmt machine/m_aix43.c /^char fmt[MAX_COLS]; \/* static area where result is built *\/$/;" v +fmt machine/m_aix5.c /^char fmt[128]; \/* static area where result is built *\/$/;" v +fmt machine/m_decosf1.c /^char fmt[MAX_COLS]; \/* static area where result is built *\/$/;" v +fmt machine/m_freebsd.c /^char fmt[MAX_COLS]; \/* static area where result is built *\/$/;" v +fmt machine/m_hpux7.c /^char fmt[MAX_COLS]; \/* static area where result is built *\/$/;" v +fmt machine/m_hpux9.c /^char fmt[MAX_COLS]; \/* static area where result is built *\/$/;" v +fmt machine/m_irix5.c /^char fmt[MAX_COLS];$/;" v +fmt machine/m_irixsgi.c /^static char fmt[MAX_COLS + 2];$/;" v file: +fmt machine/m_macosx.c /^static char fmt[MAX_COLS];$/;" v file: +fmt machine/m_openbsd.c /^char fmt[MAX_COLS]; \/* static area where result is built *\/$/;" v +fmt machine/m_sco5.c /^char fmt[128]; \/* static area where result is built *\/$/;" v +fmt machine/m_sunos4.c /^char fmt[MAX_COLS]; \/* static area where result is built *\/$/;" v +fmt machine/m_sunos5.c /^char fmt[MAX_COLS]; \/* static area where result is built *\/$/;" v +fmt machine/m_svr4.c /^char fmt[MAX_COLS]; \/* static area where result is built *\/$/;" v +fmt machine/m_svr5.c /^char fmt[MAX_COLS]; \/* static area where result is built *\/$/;" v +fmt_header machine/m_linux.c /^static char fmt_header[] =$/;" v file: +fmt_header machine/m_linuxthr.c /^static char fmt_header[] =$/;" v file: +format_comm machine/m_openbsd.c /^format_comm(struct kinfo_proc2 *kp)$/;" f file: +format_header machine/m_aix43.c /^format_header(char *uname_field)$/;" f +format_header machine/m_aix5.c /^format_header(uname_field)$/;" f +format_header machine/m_decosf1.c /^format_header(uname_field)$/;" f +format_header machine/m_freebsd.c /^format_header(char *uname_field)$/;" f +format_header machine/m_hpux10.c /^format_header(uname_field)$/;" f +format_header machine/m_hpux7.c /^format_header(uname_field)$/;" f +format_header machine/m_hpux9.c /^format_header(uname_field)$/;" f +format_header machine/m_irix5.c /^format_header(uname_field)$/;" f +format_header machine/m_irixsgi.c /^format_header(register char *uname_field)$/;" f +format_header machine/m_linux.c /^format_header(char *uname_field)$/;" f +format_header machine/m_linuxthr.c /^format_header(char *uname_field)$/;" f +format_header machine/m_macosx.c /^format_header(register char *uname_field)$/;" f +format_header machine/m_netbsd.c /^format_header(uname_field)$/;" f +format_header machine/m_openbsd.c /^format_header(char *uname_field)$/;" f +format_header machine/m_sco5.c /^format_header(register char *uname_field)$/;" f +format_header machine/m_sunos4.c /^format_header(uname_field)$/;" f +format_header machine/m_sunos5.c /^format_header(register char *uname_field)$/;" f +format_header machine/m_svr4.c /^format_header(char *uname_field)$/;" f +format_header machine/m_svr5.c /^format_header(char *uname_field)$/;" f +format_k utils.c /^format_k(long amt)$/;" f +format_next_process machine/m_aix43.c /^format_next_process(caddr_t handle, char *(*get_userid) ())$/;" f +format_next_process machine/m_aix5.c /^format_next_process(handle, get_userid)$/;" f +format_next_process machine/m_decosf1.c /^format_next_process(handle, get_userid)$/;" f +format_next_process machine/m_freebsd.c /^format_next_process(caddr_t handle, char *(*get_userid) (uid_t))$/;" f +format_next_process machine/m_hpux10.c /^format_next_process(handle, get_userid)$/;" f +format_next_process machine/m_hpux7.c /^format_next_process(handle, get_userid)$/;" f +format_next_process machine/m_hpux9.c /^format_next_process(handle, get_userid)$/;" f +format_next_process machine/m_irix5.c /^format_next_process(handle, get_userid)$/;" f +format_next_process machine/m_irixsgi.c /^format_next_process(caddr_t handle, char *(*get_userid) ())$/;" f +format_next_process machine/m_linux.c /^format_next_process(caddr_t handle, char *(*get_userid) (uid_t))$/;" f +format_next_process machine/m_linuxthr.c /^format_next_process(caddr_t handle, char *(*get_userid) (int))$/;" f +format_next_process machine/m_macosx.c /^format_next_process(caddr_t handle, char *(*getuserid) ())$/;" f +format_next_process machine/m_netbsd.c /^format_next_process(handle, get_userid)$/;" f +format_next_process machine/m_openbsd.c /^format_next_process(caddr_t handle, char *(*get_userid)(uid_t))$/;" f +format_next_process machine/m_sco5.c /^format_next_process(caddr_t handle, char *(*get_userid) ())$/;" f +format_next_process machine/m_sunos4.c /^format_next_process(handle, get_userid)$/;" f +format_next_process machine/m_sunos5.c /^format_next_process($/;" f +format_next_process machine/m_svr4.c /^format_next_process($/;" f +format_next_process machine/m_svr5.c /^format_next_process($/;" f +format_percent utils.c /^format_percent(double v)$/;" f +format_prio machine/m_irixsgi.c /^format_prio(struct prpsinfo * pp)$/;" f file: +format_state machine/m_irixsgi.c /^format_state(struct prpsinfo * pp)$/;" f file: +format_time utils.c /^format_time(long seconds)$/;" f +free_proc machine/m_linux.c /^free_proc(struct top_proc * proc)$/;" f file: +free_proc machine/m_linuxthr.c /^free_proc(struct top_proc * proc)$/;" f file: +freelist machine/m_linux.c /^static struct top_proc *freelist = NULL;$/;" v typeref:struct:top_proc file: +freelist machine/m_linuxthr.c /^static struct top_proc *freelist = NULL;$/;" v typeref:struct:top_proc file: +freemem machine/m_aix43.c /^ uint freemem;$/;" m struct:vmker file: +freemem machine/m_aix5.c /^ uint freemem;$/;" m struct:vmker file: +freemem_offset machine/m_irix5.c /^static unsigned long freemem_offset;$/;" v file: +freemem_offset machine/m_sunos5.c /^static unsigned long freemem_offset;$/;" v file: +freevmem machine/m_aix43.c /^ freevmem;$/;" m struct:vmker file: +freevmem machine/m_aix5.c /^ freevmem;$/;" m struct:vmker file: +get_avenrun machine/m_sunos5.c /^get_avenrun(int avenrun[3])$/;" f +get_cpustates machine/m_svr5.c /^get_cpustates(int *new)$/;" f file: +get_cpustats machine/m_sunos5.c /^ get_cpustats(int *cnt, int64_t (*cp_stats)[CPUSTATES]))[CPUSTATES]$/;" f +get_index_stats pg.c /^get_index_stats(struct index_node * head,$/;" f +get_meminfo machine/m_sunos5.c /^get_meminfo(long *total, long *fr)$/;" f +get_ncpus machine/m_sunos5.c /^get_ncpus()$/;" f +get_nproc machine/m_sunos5.c /^get_nproc()$/;" f +get_pregion machine/m_sco5.c /^get_pregion(void *ptr)$/;" f +get_process_info machine/m_aix43.c /^get_process_info(struct system_info * si, struct process_select * sel, int compare_index)$/;" f +get_process_info machine/m_aix5.c /^get_process_info(si, sel, compare_index)$/;" f +get_process_info machine/m_decosf1.c /^get_process_info(si, sel, compare_index)$/;" f +get_process_info machine/m_freebsd.c /^get_process_info(struct system_info * si,$/;" f +get_process_info machine/m_hpux10.c /^get_process_info(si, sel, compare_index)$/;" f +get_process_info machine/m_hpux7.c /^get_process_info(si, sel, i)$/;" f +get_process_info machine/m_hpux9.c /^get_process_info(si, sel, i)$/;" f +get_process_info machine/m_irix5.c /^get_process_info(si, sel, x)$/;" f +get_process_info machine/m_irixsgi.c /^get_process_info(struct system_info * si, struct process_select * sel, int compare_index)$/;" f +get_process_info machine/m_linux.c /^get_process_info(struct system_info * si,$/;" f +get_process_info machine/m_linuxthr.c /^get_process_info(struct system_info * si,$/;" f +get_process_info machine/m_macosx.c /^get_process_info(struct system_info * si,$/;" f +get_process_info machine/m_netbsd.c /^get_process_info(si, sel, compare_index)$/;" f +get_process_info machine/m_openbsd.c /^get_process_info(struct system_info *si, struct process_select *sel,$/;" f +get_process_info machine/m_sco5.c /^get_process_info(struct system_info * si,$/;" f +get_process_info machine/m_sunos4.c /^get_process_info(si, sel, compare_index)$/;" f +get_process_info machine/m_sunos5.c /^get_process_info($/;" f +get_process_info machine/m_svr4.c /^get_process_info($/;" f +get_process_info machine/m_svr5.c /^get_process_info($/;" f +get_region machine/m_sco5.c /^get_region(void *ptr)$/;" f +get_screensize screen.c /^get_screensize(void)$/;" f +get_swapinfo machine/m_sunos5.c /^get_swapinfo(long *total, long *fr)$/;" f +get_swapinfo machine/m_svr5.c /^get_swapinfo(long *total, long *fr)$/;" f +get_system_info machine/m_aix43.c /^get_system_info(struct system_info * si)$/;" f +get_system_info machine/m_aix5.c /^get_system_info(si)$/;" f +get_system_info machine/m_decosf1.c /^get_system_info(si)$/;" f +get_system_info machine/m_freebsd.c /^get_system_info(struct system_info * si)$/;" f +get_system_info machine/m_hpux10.c /^get_system_info(si)$/;" f +get_system_info machine/m_hpux7.c /^get_system_info(si)$/;" f +get_system_info machine/m_hpux9.c /^get_system_info(si)$/;" f +get_system_info machine/m_irix5.c /^get_system_info(si)$/;" f +get_system_info machine/m_irixsgi.c /^get_system_info(struct system_info * si)$/;" f +get_system_info machine/m_linux.c /^get_system_info(struct system_info * info)$/;" f +get_system_info machine/m_linuxthr.c /^get_system_info(struct system_info * info)$/;" f +get_system_info machine/m_macosx.c /^get_system_info(struct system_info * si)$/;" f +get_system_info machine/m_netbsd.c /^get_system_info(si)$/;" f +get_system_info machine/m_openbsd.c /^get_system_info(struct system_info *si)$/;" f +get_system_info machine/m_sco5.c /^get_system_info(struct system_info * si)$/;" f +get_system_info machine/m_sunos4.c /^get_system_info(si)$/;" f +get_system_info machine/m_sunos5.c /^get_system_info(struct system_info * si)$/;" f +get_system_info machine/m_svr4.c /^get_system_info(struct system_info * si)$/;" f +get_system_info machine/m_svr5.c /^get_system_info(struct system_info * si)$/;" f +get_table_stats pg.c /^get_table_stats(struct table_node * head, long long relid)$/;" f +get_tty_names machine/m_hpux10.c /^get_tty_names(dir, m)$/;" f file: +get_user username.c /^get_user(int uid)$/;" f +getkval machine/m_aix43.c /^getkval(unsigned long offset, caddr_t ptr, int size, char *refstr)$/;" f +getkval machine/m_aix5.c /^getkval(offset, ptr, size, refstr)$/;" f +getkval machine/m_decosf1.c /^getkval(offset, ptr, size, refstr)$/;" f +getkval machine/m_freebsd.c /^getkval(unsigned long offset, int *ptr, int size, char *refstr)$/;" f file: +getkval machine/m_hpux10.c /^getkval(offset, ptr, size, refstr)$/;" f +getkval machine/m_hpux7.c /^getkval(offset, ptr, size, refstr)$/;" f +getkval machine/m_hpux9.c /^getkval(offset, ptr, size, refstr)$/;" f +getkval machine/m_irix5.c /^getkval(offset, ptr, size, refstr)$/;" f +getkval machine/m_irixsgi.c /^getkval(unsigned long offset, int *ptr, int size, char *refstr)$/;" f +getkval machine/m_sco5.c /^getkval(unsigned long offset, int *ptr, int size, char *refstr)$/;" f +getkval machine/m_sunos4.c /^getkval(offset, ptr, size, refstr)$/;" f +getkval machine/m_sunos5.c /^getkval(unsigned long offset,$/;" f +getkval machine/m_svr4.c /^getkval($/;" f +getkval machine/m_svr5.c /^getkval($/;" f +getopt getopt.c /^getopt(int argc, char **argv, char *opts)$/;" f +getpagesize machine/m_hpux7.c /^getpagesize()$/;" f +getpagesize machine/m_hpux9.c /^getpagesize()$/;" f +getptable machine/m_irix5.c /^getptable(baseptr)$/;" f +getptable machine/m_irixsgi.c /^getptable(struct prpsinfo * baseptr)$/;" f +getptable machine/m_sunos5.c /^getptable(struct prpsinfo * baseptr, PGresult * pgresult)$/;" f +getptable machine/m_svr4.c /^getptable(struct prpsinfo * baseptr)$/;" f +getptable machine/m_svr5.c /^getptable(struct prpsinfo * baseptr)$/;" f +getstathz machine/m_openbsd.c /^getstathz(void)$/;" f file: +getu machine/m_hpux7.c /^getu(p, u)$/;" f +getu machine/m_hpux9.c /^getu(p, u)$/;" f +getu machine/m_sunos4.c /^getu(p, u)$/;" f +go_home screen.c /^go_home(void)$/;" f +handle machine/m_aix43.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_aix43.c /^struct handle$/;" s file: +handle machine/m_aix5.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_aix5.c /^struct handle$/;" s file: +handle machine/m_decosf1.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_decosf1.c /^struct handle$/;" s file: +handle machine/m_freebsd.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_freebsd.c /^struct handle$/;" s file: +handle machine/m_hpux7.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_hpux7.c /^struct handle$/;" s file: +handle machine/m_hpux9.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_hpux9.c /^struct handle$/;" s file: +handle machine/m_irix5.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_irix5.c /^struct handle$/;" s file: +handle machine/m_irixsgi.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_irixsgi.c /^struct handle$/;" s file: +handle machine/m_macosx.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_macosx.c /^struct handle$/;" s file: +handle machine/m_netbsd.c /^struct handle$/;" s file: +handle machine/m_openbsd.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_openbsd.c /^struct handle {$/;" s file: +handle machine/m_sco5.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_sco5.c /^struct handle$/;" s file: +handle machine/m_sunos4.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_sunos4.c /^struct handle$/;" s file: +handle machine/m_sunos5.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_sunos5.c /^struct handle$/;" s file: +handle machine/m_svr4.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_svr4.c /^struct handle$/;" s file: +handle machine/m_svr5.c /^static struct handle handle;$/;" v typeref:struct:handle file: +handle machine/m_svr5.c /^struct handle$/;" s file: +hash_el username.c /^struct hash_el$/;" s file: +hash_table username.c /^struct hash_el hash_table[Table_size];$/;" v typeref:struct:hash_el +hashit username.c 51;" d file: +header machine/m_aix43.c /^static char header[] =$/;" v file: +header machine/m_aix5.c /^static char header[] =$/;" v file: +header machine/m_decosf1.c /^static char header[] =$/;" v file: +header machine/m_hpux10.c /^static char header[] =$/;" v file: +header machine/m_hpux7.c /^static char header[] =$/;" v file: +header machine/m_hpux9.c /^static char header[] =$/;" v file: +header machine/m_irix5.c /^static char header[] =$/;" v file: +header machine/m_irixsgi.c /^static char header[] =$/;" v file: +header machine/m_macosx.c /^static char header[] =$/;" v file: +header machine/m_netbsd.c /^static char header[] =$/;" v file: +header machine/m_openbsd.c /^static char header[] =$/;" v file: +header machine/m_sco5.c /^static char header[] =$/;" v file: +header machine/m_sunos4.c /^static char header[] =$/;" v file: +header machine/m_sunos5.c /^static char header[] =$/;" v file: +header machine/m_svr4.c /^static char header[] =$/;" v file: +header machine/m_svr5.c /^static char header[] =$/;" v file: +header_cidx display.c /^static int header_cidx;$/;" v file: +header_color display.c /^static int header_color = 0;$/;" v file: +header_length display.c /^static int header_length;$/;" v file: +header_status display.c /^} header_status = ON;$/;" v typeref:enum:__anon1 file: +home screen.c /^char home[15];$/;" v +homogenize utils.c /^homogenize(const char *str)$/;" f +hz machine/m_hpux7.c /^static long hz;$/;" v file: +hz machine/m_hpux9.c /^static long hz;$/;" v file: +hz machine/m_netbsd.c /^static int hz;$/;" v file: +i_cpustates display.c /^i_cpustates(int64_t *states)$/;" f +i_header display.c /^i_header(char *text)$/;" f +i_loadave display.c /^i_loadave(int mpid, double *avenrun)$/;" f +i_memory display.c /^i_memory(long *stats)$/;" f +i_message display.c /^i_message()$/;" f +i_minibar display.c /^i_minibar(int (*formatter) (char *, int))$/;" f +i_process display.c /^i_process(int line, char *thisline)$/;" f +i_procstates display.c /^i_procstates(int total, int *brkdn)$/;" f +i_swap display.c /^i_swap(long *stats)$/;" f +i_timeofday display.c /^i_timeofday(time_t * tod)$/;" f +i_uptime display.c /^i_uptime(time_t * bt, time_t * tod)$/;" f +index_compares pg.c /^int (*index_compares[]) () =$/;" v +index_node pg.c /^struct index_node$/;" s file: +index_ordernames pg.c /^const char *index_ordernames[] = {$/;" v +indexrelid pg.c /^ long long indexrelid;$/;" m struct:index_node file: +init_hash username.c /^init_hash(void)$/;" f +init_screen screen.c /^init_screen(void)$/;" f +init_termcap screen.c /^init_termcap(int interactive)$/;" f +insert_index_stats pg.c /^insert_index_stats(struct index_node * head,$/;" f +insert_table_stats pg.c /^insert_table_stats(struct table_node * head,$/;" f +intload machine/m_irix5.c 60;" d file: +intload machine/m_irix5.c 65;" d file: +intload machine/m_irixsgi.c 64;" d file: +irix_ver machine/m_irixsgi.c /^static float irix_ver; \/* for easy numeric comparison *\/$/;" v file: +is_a_terminal screen.c /^static char is_a_terminal = No;$/;" v file: +is_empty_hash username.c 45;" d file: +itoa utils.c /^itoa(int val)$/;" f +itoa7 utils.c /^itoa7(uid_t val)$/;" f +jmp_int pg_top.c /^jmp_buf jmp_int;$/;" v +kc machine/m_sunos5.c /^static kstat_ctl_t *kc = NULL;$/;" v file: +kcid machine/m_sunos5.c /^static kid_t kcid = 0;$/;" v file: +kd machine/m_freebsd.c /^static kvm_t *kd;$/;" v file: +kd machine/m_netbsd.c /^static kvm_t *kd;$/;" v file: +kd machine/m_sunos4.c /^kvm_t *kd;$/;" v +kd machine/m_sunos5.c /^kvm_t *kd;$/;" v +kill_procs commands.c /^kill_procs(const char *str)$/;" f +kmem machine/m_aix43.c /^int kmem; \/* file descriptor *\/$/;" v +kmem machine/m_aix5.c /^int kmem; \/* file descriptor *\/$/;" v +kmem machine/m_decosf1.c /^static int kmem,$/;" v file: +kmem machine/m_hpux10.c /^static int kmem;$/;" v file: +kmem machine/m_hpux7.c /^static int kmem,$/;" v file: +kmem machine/m_hpux9.c /^static int kmem;$/;" v file: +kmem machine/m_irix5.c /^static int kmem;$/;" v file: +kmem machine/m_irixsgi.c /^static int kmem;$/;" v file: +kmem machine/m_sco5.c /^static int kmem,$/;" v file: +kmem machine/m_svr4.c /^static int kmem = -1;$/;" v file: +kmem machine/m_svr5.c /^static int kmem = -1;$/;" v file: +kmet_done machine/m_svr5.c /^kmet_done()$/;" f file: +kmet_get_cpu machine/m_svr5.c /^kmet_get_cpu(int type, char *desc)$/;" f file: +kmet_get_freemem machine/m_svr5.c /^kmet_get_freemem()$/;" f file: +kmet_get_nproc machine/m_svr5.c /^kmet_get_nproc()$/;" f file: +kmet_init machine/m_svr5.c /^kmet_init()$/;" f file: +kmet_verify machine/m_svr5.c /^kmet_verify($/;" f file: +kproc machine/m_macosx.c /^ struct kinfo_proc *kproc;$/;" m struct:macos_proc typeref:struct:macos_proc::kinfo_proc file: +kproc_list machine/m_macosx.c /^static struct kinfo_proc *kproc_list = NULL;$/;" v typeref:struct:kinfo_proc file: +ks_system_misc machine/m_sunos5.c /^static kstat_t *ks_system_misc = NULL;$/;" v file: +kstat_data_value_l machine/m_sunos5.c /^kstat_data_value_l(kstat_named_t * kn)$/;" f +kstat_safe_namematch machine/m_sunos5.c /^kstat_safe_namematch(int num, kstat_t ** ksparg, char *name, void *buf, int size)$/;" f +kstat_safe_retrieve machine/m_sunos5.c /^kstat_safe_retrieve(kstat_t ** ksp,$/;" f +lastpid machine/m_freebsd.c /^static long lastpid;$/;" v file: +lastpid_offset machine/m_freebsd.c /^static unsigned long lastpid_offset;$/;" v file: +lasttime machine/m_linux.c /^static struct timeval lasttime;$/;" v typeref:struct:timeval file: +lasttime machine/m_linuxthr.c /^static struct timeval lasttime;$/;" v typeref:struct:timeval file: +lasttimeval machine/m_aix5.c /^struct timeval lasttimeval;$/;" v typeref:struct:timeval +lcpustates display.c /^static int *lcpustates;$/;" v file: +leave pg_top.c /^leave(int i) \/* exit under normal conditions -- INT handler *\/$/;" f file: +lineindex display.c 91;" d file: +lmpid display.c /^static int lmpid = -1;$/;" v file: +load machine/m_irix5.c /^double load[3];$/;" v +load machine/m_irixsgi.c /^double load[3];$/;" v +load_avg machine/m_irix5.c /^typedef double load_avg;$/;" t file: +load_avg machine/m_irix5.c /^typedef long load_avg;$/;" t file: +load_avg machine/m_irixsgi.c /^typedef double load_avg;$/;" t file: +load_cidx display.c /^static int load_cidx[3];$/;" v file: +load_thread_info machine/m_macosx.c /^load_thread_info(struct macos_proc * mp)$/;" f +loaddouble machine/m_irix5.c 59;" d file: +loaddouble machine/m_irix5.c 64;" d file: +loaddouble machine/m_irixsgi.c 63;" d file: +loaddouble machine/m_sunos5.c 136;" d file: +loaddouble machine/m_svr4.c 73;" d file: +loaddouble machine/m_svr5.c 79;" d file: +logcpu machine/m_decosf1.c /^static double logcpu;$/;" v file: +logcpu machine/m_freebsd.c /^static double logcpu;$/;" v file: +logcpu machine/m_hpux7.c /^static double logcpu;$/;" v file: +logcpu machine/m_hpux9.c /^static double logcpu;$/;" v file: +logcpu machine/m_netbsd.c /^static double logcpu;$/;" v file: +logcpu machine/m_sco5.c /^static double logcpu;$/;" v file: +logcpu machine/m_sunos4.c /^static double logcpu;$/;" v file: +lower_left screen.c /^char lower_left[15];$/;" v +lprocstates display.c /^static int *lprocstates;$/;" v file: +lseek machine/m_irix5.c 43;" d file: +ltotal display.c /^static int ltotal = 0;$/;" v file: +machine_init machine/m_aix43.c /^machine_init(struct statics * statics)$/;" f +machine_init machine/m_aix5.c /^machine_init(statics)$/;" f +machine_init machine/m_decosf1.c /^machine_init(statics)$/;" f +machine_init machine/m_freebsd.c /^machine_init(struct statics * statics)$/;" f +machine_init machine/m_hpux10.c /^machine_init(statics)$/;" f +machine_init machine/m_hpux7.c /^machine_init(statics)$/;" f +machine_init machine/m_hpux9.c /^machine_init(statics)$/;" f +machine_init machine/m_irix5.c /^machine_init(statics)$/;" f +machine_init machine/m_irixsgi.c /^machine_init(struct statics * statics)$/;" f +machine_init machine/m_linux.c /^machine_init(struct stat