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
jwise
b5f0c03b3a
Backout unintended change
1999-12-16 04:41:49 +00:00
jwise
7fc29b6116
Add a file missed in last commit
1999-12-16 04:40:03 +00:00
jwise
06f376613f
Rototill global command matching -- switch from ad-hoc tomfoolery to a
...
table lookup. This will make prefix matching and so on easier.
Expect a similar change for mode-specific commands before too long.
While there, rename some structures with misleading names.
Watch this space for more changes soon.
1999-12-16 04:02:22 +00:00
fredb
2cfe71bc9a
More fallout from CL* purge.
1999-12-05 18:54:34 +00:00
mrg
ef2d33cbd1
add some percentages in here.
1999-11-27 05:58:04 +00:00
simonb
7f7397e603
Don't free "buf" in closebufcache() - initbufcache() only gets called
...
once per systat invocation, not each time we switch to the bufcache
display.
Fixes core dump noted by Andy Doran when switching back and forth to
bufcache display.
1999-11-15 23:39:33 +00:00
mrg
9042b087c4
avoid using CLBYTES (which is based on NBPG).
1999-11-15 10:54:40 +00:00
simonb
b80f4eaf1d
- Add `bufcache' display which shows buffer cache usage per filesystem,
...
ala the monitor(1) command for Ultrix.
- Allow `h' or `?' to show the command list (same as `:help').
- Sort commands in cmdtab.c and systat.1
1999-11-15 06:16:56 +00:00
soren
6fc41af333
Sync usage() with man page.
1999-11-11 03:06:04 +00:00
mrg
45cd15f3ed
recognise "dty" the same as we do "tty"
1999-10-11 11:55:27 +00:00
mrg
345a3bce75
let "systat vmstat" say "1 user" not "1 users"
1999-10-10 01:07:03 +00:00
soren
a87871bbec
There's room in the systat-vmstat-iostat display, so allow four-letter
...
device names like e.g. ccd0 and print an extra digit of precision in
the 'sec' line like iostat(8) does.
1999-09-30 13:16:27 +00:00
chs
21eedb0ec1
the PMAP_NEW option is gone as the new interface is no longer optional.
1999-09-12 01:19:23 +00:00
ad
aa707bd962
Add 'inet.' prefix to 'tcp', 'ip', 'tcpsyn' and 'icmp' displays.
...
Fixes PR: bin/8130 (Geoff C. Wing)
1999-08-02 17:27:27 +00:00
sommerfeld
728f40d730
Fix from PR7655: translation of keyboard command in systat is Wrong.
...
(breaks netstat's :ignore command for upper-case service names)
1999-08-02 02:01:57 +00:00
ad
5cd8715136
Formatting nits.
1999-07-30 16:08:59 +00:00
veego
03fd106af5
According to the previous commit the new process state should be SDEAD and
...
not SDYING, so s/SDYING/SDEAD/.
1999-07-23 08:56:13 +00:00
thorpej
3586621927
Update for SDEAD.
1999-07-22 18:16:05 +00:00
mjl
d278ba3869
Enlarge disk names in labels from 3 to 7 to cater for things like raid0.
1999-06-29 18:14:15 +00:00
itohy
5bebc476c6
Fix CPU percentage of "systat ps".
...
Yes, the name of the member "pt_pctcpu" is confusing :-).
Use double instead of float.
1999-06-19 05:35:14 +00:00