The NetBSD Project

CVS log for src/usr.bin/systat/main.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / systat

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Jun 16 22:44:01 2024 UTC (5 months, 2 weeks ago) by kre
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -4 lines
Revert previous, and switch to using real arithmetic.

Ever since this code was first committed to the CSRG SCCS
tree, in Oct 1983, it has contained either
	int dellave;
or more recently:
	static int dellave;
(that change is irrelevant, as is the move of the declaration
from systat.h into main.c)

And then in main() initialised it as:
	dellave = 0.0;

It seems clear to me that the variable really should have been a
double since day one.   All its uses were in floating point contexts.

So, undo the change to use int constants, and instead just make
"dellave" (the load average delta) be a double.

This should make the load average bar which appears at the
top of most systat display screens more sensitive to showing
when the load average is increasing or decreasing (showing
it using '>' or '<' instead of '|' which is used when there
is not much change since last time).

Revision 1.57: download - view: text, markup, annotated - select for diffs
Fri Jun 14 17:15:45 2024 UTC (5 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +5 -5 lines
systat: don't compare integer to floating point constants

No binary change.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Aug 21 13:22:19 2021 UTC (3 years, 3 months ago) by christos
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +16 -12 lines
PR/56331: Paul Goyette: Add -z option to display 0 instead of ' ' in vmstat.

Revision 1.53.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:10:24 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +44 -13 lines
Sync with HEAD

Revision 1.51.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 30 13:46:25 2019 UTC (5 years, 10 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +32 -3 lines
Pull up following revision(s) (requested by christos in ticket #1176):

	usr.bin/systat/main.c: revision 1.55
	usr.bin/systat/extern.h: revision 1.47
	usr.bin/systat/syscall.c: revision 1.10
	usr.bin/systat/iostat.c: revision 1.39
	usr.bin/systat/vmstat.c: revision 1.85
	usr.bin/systat/vmstat.c: revision 1.86

no need for curses.h

 -

PR/53906: Paul Ripke: systat(1) vmstat & syscall get
"alternate system clock has died" on terminal resize (SIGWINCH)

Revision 1.53.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 26 22:00:39 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.53.2.1: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.1: +32 -3 lines
Sync with HEAD

Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri Jan 25 15:31:11 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +32 -3 lines
PR/53906: Paul Ripke: systat(1) vmstat & syscall get
"alternate system clock has died" on terminal resize (SIGWINCH)

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:02:11 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +14 -12 lines
Sync with HEAD, resolve a few conflicts

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Dec 26 01:47:37 2018 UTC (5 years, 11 months ago) by sevan
Branches: MAIN
CVS tags: pgoyette-compat-20190118, pgoyette-compat-1226
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +14 -12 lines
Extend "systat vm" output to provide better insight about buffercache and
document it.

From Greg A. Woods in PR bin/36542

Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 10:54:25 2018 UTC (6 years, 1 month ago) by sborrill
Branches: netbsd-7
Diff to: previous 1.48.2.1: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.1: +9 -9 lines
Pull up the following revisions(s) (requested by mrg in ticket #1639):
	usr.bin/systat/main.c:	revision 1.52 via patch

Add missing 'b' to the list of options.
Alpha-sort the option handling.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Nov 22 02:52:42 2017 UTC (7 years ago) by snj
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
add -b to usage.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Nov 17 20:43:08 2017 UTC (7 years ago) by mrg
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +9 -9 lines
add missing 'b' to the optstring.  alpha-sort the option handling.

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 4 06:04:06 2017 UTC (7 years, 2 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +12 -5 lines
Pull up following revision(s) (requested by mrg in ticket #1491):
	usr.bin/systat/main.c: revision 1.51
	usr.bin/systat/systat.1: revision 1.47 via patch
add a basic "-b" option - that outputs one display and exits.
inspired by "top -b".  still requires a curses-capable output
without some fairly significant internal restructuring.

Revision 1.49.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:58 2017 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.49.2.1: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.2.1: +12 -5 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Dec 3 03:26:27 2016 UTC (8 years ago) by mrg
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +12 -5 lines
add a basic "-b" option - that outputs one display and exits.
inspired by "top -b".  still requires a curses-capable output
without some fairly significant internal restructuring.

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:25 2016 UTC (8 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +5 -5 lines
Sync with HEAD

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Oct 22 22:02:55 2016 UTC (8 years, 1 month ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-20161104
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +5 -5 lines
allow fractional intervals

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Aug 23 18:33:15 2015 UTC (9 years, 3 months ago) by mrg
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +9 -2 lines
if you change display types, the "Showing %s, refresh every %d seconds."
message is retained, and you can't get rid of it.  since it's dispalyed
in inverse, it feels like there's always an error happening (which is
really what the code has -- the above string is displayed via the error()
function.)  for several types of key press that largely are just "redraw"
operation (space, ^L, etc.), clear the error string as well.

Revision 1.46.8.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:04 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.46.8.1: preferred, colored; branchpoint 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.8.1: +2 -4 lines
Rebase to HEAD as of a few days ago.

Revision 1.47.6.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:58:59 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +2 -4 lines
Rebase.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Jun 3 22:22:41 2014 UTC (10 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -4 lines
Always use_sysctl in preparation of removing all kvm code.

Revision 1.46.8.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:39 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +18 -23 lines
resync with head

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:34:08 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +18 -23 lines
sync with (a bit old) head

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Nov 23 03:47:36 2012 UTC (12 years ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Branch point for: tls-earlyentropy
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +18 -23 lines
use more sysctl

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Sep 6 18:31:44 2011 UTC (13 years, 2 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache, tls-maxphys
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -4 lines
Consistently use __dead and __printflike.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Nov 4 21:46:24 2009 UTC (15 years, 1 month ago) by dsl
Branches: MAIN
CVS tags: matt-premerge-20091211, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +18 -4 lines
Allow display intervals > 25 seconds.
Fixes PR/36999
I did contemplate chaging curses - but the code is replicated and warped.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Jul 14 21:08:31 2009 UTC (15 years, 4 months ago) by apb
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -3 lines
Don't assume that two identical-looking string literals will have the
same address and will therefore be comparable with the == operator.
Instead, use a const variable.
Inspired by PR 41255 from Kurt Lidl.

Revision 1.42.4.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:29:21 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +4 -4 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Jul 21 14:19:26 2008 UTC (16 years, 4 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -4 lines
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:47 2008 UTC (16 years, 6 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +6 -4 lines
Sync with netbsd-4.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Apr 10 17:14:25 2008 UTC (16 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -2 lines
Use sysctl to fetch network statistics unless a memory file is specified
on the command line.

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Sun Feb 3 00:26:52 2008 UTC (16 years, 10 months ago) by riz
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +6 -4 lines
Pull up following revision(s) (requested by christos in ticket #1031):
	usr.bin/systat/keyboard.c: revision 1.24
	usr.bin/systat/main.c: revision 1.41
	usr.bin/systat/extern.h: revision 1.38
don't call curses from a signal handler!

Revision 1.40.8.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 02:01:05 2008 UTC (16 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +6 -4 lines
sync with HEAD

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Dec 31 00:22:15 2007 UTC (16 years, 11 months ago) by christos
Branches: MAIN
CVS tags: matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +6 -4 lines
don't call curses from a signal handler!

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Oct 22 16:43:24 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: wrstuden-fixsa-base-1, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: wrstuden-fixsa, netbsd-4, matt-armv6
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +6 -6 lines
use c99 initializers
consistently terminate nlist arrays with NULL not ""

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Feb 26 22:12:33 2005 UTC (19 years, 9 months ago) by dsl
Branches: MAIN
CVS tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +6 -6 lines
WARNS=3

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Nov 4 07:18:47 2004 UTC (20 years, 1 month ago) by dsl
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3 lines
Add (unsigned char) cast to ctype functions
Although, IIRC, there is another PR on all commands being converted to
lower case.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Jul 3 18:54:47 2004 UTC (20 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -17 lines
Using timeout() to control refresh gets rid of a whole pile of signal-related
lossage.
Making ungetch() signal-safe, as ncurses seems to, would be better, though.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Jul 3 18:31:36 2004 UTC (20 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -10 lines
Use KEY_RESIZE.  Might as well have something in our source tree that does.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Aug 7 11:15:59 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Aug 3 12:14:58 2003 UTC (21 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +8 -6 lines
if kvm_nlist() fails, nlisterr() would be called before the screen
curses context would be initialized; just use errx() instead in this case
this fixes coredump for cases like 'systat -N /netbsd.gz', reported by Walt
on port-i386

in nlisterr(), wait a while (5 seconds currently) before exiting, so that
it would be actually possible to actually see the error

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Jul 5 08:05:51 2003 UTC (21 years, 5 months ago) by dsl
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -3 lines
No need to resizeterm() if size not changed.
On 'fg' just restore old screen contents.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed May 28 20:17:14 2003 UTC (21 years, 6 months ago) by dsl
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
Reinstate our STOP handler before curses installs its one.
Ensures that both handlers are executed on subsequent stops.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Feb 10 23:59:48 2003 UTC (21 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +34 -4 lines
Resize windows on SIGWINCH and restart from SIGTSTP
(approved by christos)

Revision 1.30.2.2: download - view: text, markup, annotated - select for diffs
Thu Dec 6 12:40:52 2001 UTC (23 years ago) by blymn
Branches: nathanw_sa
Diff to: previous 1.30.2.1: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.1: +381 -0 lines
Change deprecated curses function to new equivalent.

Revision 1.30.2.1
Thu Dec 6 12:40:51 2001 UTC (23 years ago) by blymn
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.30: +0 -381 lines
file main.c was added on branch nathanw_sa on 2001-12-06 12:40:52 +0000

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Dec 6 12:40:51 2001 UTC (23 years ago) by blymn
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_end, nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Branch point for: nathanw_sa
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
Change deprecated curses function to new equivalent.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Jul 14 07:09:11 2001 UTC (23 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +6 -3 lines
Fetch maxslp from the kernel.  Only use USPACE if it's defined.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Dec 1 02:19:44 2000 UTC (24 years ago) by simonb
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -6 lines
Remove extern variables and functions now declared in dkstats.h.
While here, remove 77 (!) unneed #includes.

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 1 16:37:09 2000 UTC (24 years, 3 months ago) by ad
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +13 -34 lines
Pull up the following revisions, approved by releng-1-5:

- 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.

icmp.c           1.5
iostat.c         1.16
ip.c             1.8
ip6.c            1.5, 1.7
ipsec.c          1.5
keyboard.c       1.12
main.c           1.26
mbufs.c          1.9
netcmds.c        1.16

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Aug 25 04:48:56 2000 UTC (24 years, 3 months ago) by hubertf
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +32 -5 lines
Add "all" mode to systat to cycle between all modes,
sort of like VMS' "MONITOR ALL"-command.

Code was submitted by Jarkko Teppo <jate@uwasa.fi> in PR 10851,
cleaned up and added 'turns' handling by me.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Jul 5 11:03:22 2000 UTC (24 years, 5 months ago) by ad
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +13 -34 lines
- 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.

Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 23 16:39:58 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +6 -6 lines
Sync w/ netbsd-1-5-base.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Jun 4 18:29:13 2000 UTC (24 years, 6 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -6 lines
Use hline() and variants in a bunch of places.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Apr 11 01:01:26 2000 UTC (24 years, 7 months ago) by jwise
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
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

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jan 7 04:47:24 2000 UTC (24 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +7 -4 lines
add command line -n flag, which is same as "netstat numbers".
without it, we can't disable name resolution before the resolution starts.

Revision 1.16.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:37:12 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +37 -33 lines
Pull up to last week's -current.

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Mon Dec 20 23:54:16 1999 UTC (24 years, 11 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.1: +4 -3 lines
Pull up revision 1.21 (requested by jwise):
  Guard against buffer overflow.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Dec 20 21:04:41 1999 UTC (24 years, 11 months ago) by jwise
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +8 -2 lines
Block alarm signals while displaying -- there's no reason to allow recursive
display at all.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Dec 20 17:08:52 1999 UTC (24 years, 11 months ago) by jwise
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -3 lines
Knee-jerk snprintf()-ism.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Dec 20 03:45:02 1999 UTC (24 years, 11 months ago) by jwise
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -4 lines
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.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Dec 16 17:15:48 1999 UTC (24 years, 11 months ago) by jwise
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +17 -12 lines
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.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Dec 16 04:02:23 1999 UTC (24 years, 11 months ago) by jwise
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +14 -24 lines
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.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Nov 11 03:06:04 1999 UTC (25 years ago) by soren
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -3 lines
Sync usage() with man page.

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 26 13:36:43 1999 UTC (25 years, 2 months ago) by he
Branches: netbsd-1-4
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4 lines
Pull up revision 1.16 (requested by he):
  LP64 and type sanity fixes, with visible effects of enabling echo
  on commands and correct cursor placement after update.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:36 1999 UTC (25 years, 7 months ago) by ross
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4 lines
Functional LP64 and type sanity fixes.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Jul 19 17:47:07 1998 UTC (26 years, 4 months ago) by drochner
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +20 -15 lines
Fix handling of privileges - the gid was given up before dkinit()
was called.
Pass the gid to use for KVM access explicitely to dkinit(), the caller
decides whether to call setgid(getgid()) or not.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jul 12 05:59:00 1998 UTC (26 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4 lines
- KNF
- use snprintf
- don't overwrite the keyboard buffer (and make this sized on
  the window size).

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Jul 6 06:55:24 1998 UTC (26 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +17 -6 lines
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Oct 19 23:36:26 1997 UTC (27 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4 lines
fix .Nm usage, deprecate register, getopt returns -1 not EOF, s/[br]*/[ms]*/

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Jul 21 07:05:03 1997 UTC (27 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +9 -9 lines
- some KNF.
- use __RCSID().
- WARNS=1

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Mar 3 22:19:37 1997 UTC (27 years, 9 months ago) by explorer
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -3 lines
Message buffer passed to kvm_openfiles() should _POSIX2_LINE_MAX long; PR#3266

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Dec 13 19:26:21 1996 UTC (27 years, 11 months ago) by scottr
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +39 -24 lines
Freshen up a bit:

 - Replace deprecated sigblock() with sigprocmask()
 - Redraw the current display if SIGWINCH is caught
 - Style police

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri May 10 23:16:36 1996 UTC (28 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +48 -10 lines
New userland code to read the statistics kept by the NetBSD generic
disk framework, from John M. Vinopal <banshee@gabriella.resort.com>

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Mar 21 18:04:25 1996 UTC (28 years, 8 months ago) by jtc
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Be pedantic, main() returns int in C.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat May 6 06:25:07 1995 UTC (29 years, 7 months ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +8 -3 lines
Print error message and exit if TERM is not set.
From PR #1015.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Apr 29 05:54:42 1995 UTC (29 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -2 lines
various includes, casts, and cleanups...

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Mar 22 15:25:56 1995 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +12 -18 lines
Use err*(3)/warn*(3).

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Mar 22 15:20:31 1995 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -2 lines
Don't core dump on an illegal display type.  Display a more specific error
message for an ambiguous type.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Jan 20 08:52:00 1995 UTC (29 years, 10 months ago) by jtc
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -0 lines
Changed to conform to NetBSD's new RCS Id convention.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri Jan 20 08:30:51 1995 UTC (29 years, 10 months ago) by jtc
Branches: CSRG
CVS tags: lite-2, lite-1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
imported from 44lite

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Jan 20 08:30:50 1995 UTC (29 years, 10 months ago) by jtc
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>