Commit Graph

24 Commits

Author SHA1 Message Date
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
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
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 81ed25dba3 Knee-jerk snprintf()-ism. 1999-12-20 17:08:52 +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 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
soren 6fc41af333 Sync usage() with man page. 1999-11-11 03:06:04 +00:00
ross ef4ee3d458 Functional LP64 and type sanity fixes. 1999-04-24 23:36:36 +00:00
drochner b2058e2f38 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.
1998-07-19 17:47:07 +00:00
mrg 47abaab886 - KNF
- use snprintf
- don't overwrite the keyboard buffer (and make this sized on
  the window size).
1998-07-12 05:59:00 +00:00
mrg 2beab49a06 - 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
1998-07-06 06:45:41 +00:00
lukem 9ccb9cd874 fix .Nm usage, deprecate register, getopt returns -1 not EOF, s/[br]*/[ms]*/ 1997-10-19 23:36:20 +00:00
mrg 5941399374 - some KNF.
- use __RCSID().
- WARNS=1
1997-07-21 07:04:56 +00:00
explorer a030e0a1ae Message buffer passed to kvm_openfiles() should _POSIX2_LINE_MAX long; PR#3266 1997-03-03 22:12:19 +00:00
scottr 823c2433dc Freshen up a bit:
- Replace deprecated sigblock() with sigprocmask()
 - Redraw the current display if SIGWINCH is caught
 - Style police
1996-12-13 19:26:18 +00:00
thorpej 1eaf5ee379 New userland code to read the statistics kept by the NetBSD generic
disk framework, from John M. Vinopal <banshee@gabriella.resort.com>
1996-05-10 23:16:30 +00:00
jtc cac62b2d65 Be pedantic, main() returns int in C. 1996-03-21 17:56:15 +00:00
jtc 86f36c2670 Print error message and exit if TERM is not set.
From PR #1015.
1995-05-06 06:25:07 +00:00
cgd 5cac5e9c7c various includes, casts, and cleanups... 1995-04-29 05:54:42 +00:00
mycroft 05fc3892b3 Use err*(3)/warn*(3). 1995-03-22 15:25:56 +00:00
mycroft 73ab328b89 Don't core dump on an illegal display type. Display a more specific error
message for an ambiguous type.
1995-03-22 15:20:31 +00:00
jtc 2f3cb7ae7d Changed to conform to NetBSD's new RCS Id convention. 1995-01-20 08:51:48 +00:00
jtc 12749a2a84 imported from 44lite 1995-01-20 08:30:50 +00:00