Commit Graph

139 Commits

Author SHA1 Message Date
ad
c92d2c3831 - Document new commands for IP displays.
- Replace the "Takes 2-10 percent of the CPU" statement.
2000-07-05 11:04:51 +00:00
ad
fc3915475d - Add boot', run', time' and zero' commands to all IP displays. These work
as in the `vmstat' display mode. The default mode is now `time', not `boot'.
- ANSIfy.
- s@kre\(@vmstat\(@.
- __RCSID() police.
- Tweak inet.icmp display visual a little.
2000-07-05 11:03:20 +00:00
mrg
8d4795719a remove include of <vm/vm.h> 2000-06-29 06:26:33 +00:00
ad
3553879fc2 Use my proper name. 2000-06-13 13:36:42 +00:00
mycroft
4e87b9d4f5 Fix bogons in command parsing for >1 arg. 2000-06-05 21:48:25 +00:00
mycroft
2f240403c3 Display disk busy statistics as `%busy', as it's less confusing. 2000-06-05 21:36:34 +00:00
mycroft
981f9b7d7b Use hline() and variants in a bunch of places. 2000-06-04 18:29:13 +00:00
mycroft
796e1a63fa Fix a check so that holding down the space bar doesn't cause systat to lose. 2000-06-04 18:14:45 +00:00
mycroft
3ddc3c22b9 Fix the CPU usage bar graph. 2000-06-04 18:10:40 +00:00
thorpej
13ba787e60 Use kern.cp_time to fetch cp_time[]. Don't support fetching it from
crash dumps yet, as that requires determining which CPU we should fetch
it from, etc.
2000-06-04 16:06:25 +00:00
perry
bd70b1984f include sys/sched.h to get definition of CPUSTATES 2000-06-04 01:53:51 +00:00
thorpej
ae67003975 Need to include <sys/sched.h> to get cp_time-related constants. 2000-06-03 21:00:42 +00:00
thorpej
38c3726a7b Handle SONPROC state. 2000-06-02 04:32:07 +00:00
simonb
60e2ae70e5 Another cp_time size fix - also, there are 5 CPUSTATES now not four... 2000-05-29 12:54:31 +00:00
matt
0c28135c93 fix SHOW to work on any platform 2000-04-29 04:36:16 +00:00
thorpej
20a1abdaef u_quad_t must be cast to (long long) to be printed with %llu. 2000-04-27 21:40:41 +00:00
jdc
d6d7f0531f Fix arguments to *printw(). 2000-04-27 00:30:51 +00:00
mrg
90bc324a8d use <sys/swap.h>. should have happened years ago. 2000-04-13 08:29:56 +00:00
jwise
1a9ae67f41 Reorder two commands so that substring matching doesn't make one shadow
the other.
2000-04-11 01:18:35 +00:00
jwise
ad285dbfbe Two UI changes:
a.) restore the capability to enter a substring of a mode or command
      name.  Pointed out by Soren Jorvang.

  b.) (capital) Q now exits systat immediately
2000-04-11 01:01:26 +00:00
soren
bca6350a53 Prevent percentage overflows by keeping score in kilobytes. 2000-02-14 05:35:21 +00:00
mycroft
f5d7100e26 Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
ad
b7de5e4494 Two tiny formatting nits in each file. 2000-01-13 12:39:04 +00:00
itojun
f70b9a5724 don't choke on non-INET6 kernel, or non-IPSEC kernel.
cleanup error handling on mode change failure.

TODO: non-IPv4 kernel support should be improved.  "netstat" should be okay,
"inet.ip" and "inet.icmp" needs more trick.

NetBSD PR: 9157
2000-01-10 21:06:15 +00:00
itojun
4bed540017 oops, avoid duplicate free(). 2000-01-08 23:34:17 +00:00
itojun
d7b4ec9207 - implement layered help.
Suggested by: Andy Doran <ad@mr-magoo.sports.gov.uk>
- inet6.ip6 and ipsec menu
- u_quad_t printing fix
- #ifdefs to allow compilation on 1.4.x
2000-01-08 23:12:36 +00:00
itojun
96a8bc922e add command line -n flag, which is same as "netstat numbers".
without it, we can't disable name resolution before the resolution starts.
2000-01-07 04:47:23 +00:00
itojun
7b5dfc58ad support IPv6. commands under "netstat" are IPv6 ready.
IPv6 is supported by filters (":ignore ssh") as well.
TODO: do something about line truncation?
TODO: inet6.icmp6?  ":help" will not fit into single line...
2000-01-05 11:59:12 +00:00
itojun
88ac9b1712 remove dupplicated prototype defs for file static funcs. 2000-01-05 11:50:21 +00:00
itojun
5784d552dd avoid null pointer access on ":show". 2000-01-05 11:48:21 +00:00
msaitoh
dad5b69f37 fix printf format for inet.ip
(because the entries in struct ipstat is u_quad_t)
2000-01-04 15:17:00 +00:00
itojun
0b66a621f9 bring in latter half of PR 9080 (host table allocation error check). 2000-01-04 15:12:42 +00:00
tron
a3045c188e Add missing memory check in port table handling. Patch based on
PR bin/9080 by Jun-ichiro itojun Hagino
1999-12-31 12:58:12 +00:00
jwise
2a1f30e2df GC now-spurious prototype 1999-12-25 01:49:25 +00:00
kleink
c23c312a55 * Fix a display buglet: if the process list is exhausted before the window's
bottom is reached, clear the remaining lines, lest there be stale process
  entries if the process list shrinks.
* Implement a top(1)-like `user' command in the ps display.
1999-12-22 14:46:14 +00:00
jwise
850fb37f89 Fix error handling throughout. First off, it is not true as claimed in swap.c
that `systat doesn't handle errors'.  Second off, errx should not be used directly, since
the terminal should be cleaned up before bailing.  Third off, whatever we do we need
to be consistent.

There, I feel better now.
1999-12-20 23:11:50 +00:00
jwise
bc8f4e2f46 Be consistent about whether to block SIGALRM before calling command() -- don't
ever do so, as the first thing command() does is block SIGALRM.
1999-12-20 21:59:29 +00:00
lukem
00a4e0e7ce need <string.h> for strlen() 1999-12-20 21:49:11 +00:00
jwise
24b9ee353a Nuke assignment unneeded after last commit 1999-12-20 21:46:10 +00:00
jwise
b037ddd3b7 More cleanup -- use strtok() rather than rolling our own not-quite-correct version. 1999-12-20 21:42:50 +00:00
jwise
5a69f1bd85 Block alarm signals while displaying -- there's no reason to allow recursive
display at all.
1999-12-20 21:04:41 +00:00
jwise
d0e3cec262 1.) Clean up keystroke processing
2.)  Add the all-time most requested feature:  hitting space or CR while
     not in command mode now causes an instant refresh
1999-12-20 20:49:06 +00:00
jwise
299c3534d3 TNF copyright -- I will do the paperwork to give these over asap. 1999-12-20 19:31:47 +00:00
itojun
8471c4a69a fix "netstat numbers". 1999-12-20 17:26:50 +00:00
jwise
81ed25dba3 Knee-jerk snprintf()-ism. 1999-12-20 17:08:52 +00:00
jwise
be9a446256 G/C function used in old command parsing 1999-12-20 04:06:25 +00:00
jwise
4c0fbd4c92 Two things:
1.) fix a bug which caused coredumps when starting with no mode arguments
  2.) move to table-lookup for mode-specific command parsing as well.
      all command matching is now table-driven.
1999-12-20 03:45:01 +00:00
jwise
30af11dbd4 Sigh... this is the missing part of last night's final commit -- perform
the same simplification on mode parsing for the command line as for user
commands.

My apologies to anyone who tried to build systat this morning.
1999-12-16 17:15:48 +00:00
jwise
099afa1959 End special-casing of start' and interval' global commands.
Vastly simplify handling of mode switches, and short-syntax interval
changes.  Substring matching of mode names and commands will come
shortly, however the previous method of substring matching modes (it was
not available for commands) is currently not working.

TODO: implement table lookups for mode-specific commands.
1999-12-16 06:16:16 +00:00
jwise
420c21c43c Handle arguments to global commands. Note that the `interval' and
`start' global commands are still special cased, which will change
1999-12-16 04:49:32 +00:00