Commit Graph

68 Commits

Author SHA1 Message Date
agc
a8d6388e6f Add NetBSD RCS Ids. 2003-06-23 13:05:47 +00:00
lukem
d8108972ba add dependency on sigdesc.h to commands.c 2003-03-14 22:56:14 +00:00
jrf
c93c016461 Patch from PR 12304 submitted by Matthias Buelow mkb@moghedien.mayn.de.
Patch reviewed by Itojun itojun@netbsd.org.
2003-03-05 01:10:46 +00:00
thorpej
3fdac2b8c5 Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
mycroft
aae6c28cf9 null commit 2002-09-23 12:44:34 +00:00
itojun
6248b5281d poll.h, not sys/poll.h 2002-09-23 03:29:10 +00:00
mycroft
05abee23d9 select() -> poll(), nanosleep() 2002-09-19 16:45:57 +00:00
chris
624b632030 Fix segv when running show_help.
Seems that copyright had it's type changed, but not the extern.
2002-08-02 20:03:36 +00:00
itojun
72b53650e0 copyright cleanup from openbsd (thanks!)
>license change from William LeFebvre <wnl@groupsys.com>; top is now BSD
>licensed.  this same license will show up on his next release as well.
2002-07-16 00:40:51 +00:00
wiz
3e61c2fc6e Remove STDC ifdefs. 2002-06-13 23:28:57 +00:00
thorpej
b9145634cd Update top(1) for new UVM/UBC counters.
bin/16020, Tomas Svensson <tsn@gbdev.net>
2002-03-23 01:28:10 +00:00
ross
2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
tv
d56a8ceeec Make this directory usable on a case insensitive fs. 2002-01-21 20:07:34 +00:00
wiz
aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
hubertf
6e25baad1d /vmunix => /netbsd
Reported by Hiramatsu Yoshifumi <hiramatu@boreas.dti.ne.jp> in PR 14513
2001-11-09 16:32:16 +00:00
christos
1703d1eee6 Update to the new t_agetstr() API. 2001-11-02 18:27:00 +00:00
christos
49fc99e479 print system processes as [procname] 2001-07-03 01:36:07 +00:00
wiz
dad52345fd Sync with top.1 v1.6. 2001-06-21 21:36:23 +00:00
wiz
d6232cb1ae Fix some typos and grammar. 2001-06-21 21:36:05 +00:00
wiz
c384a41e3f Turn -S (display of system processes) on by default.
If they are using so much CPU that they would be in the top 10 (or so)
they should be shown. Ok'd by christos.
2001-06-21 21:27:50 +00:00
christos
d8401d9eac document 'S' command (thanks thomas) 2001-06-20 22:32:17 +00:00
christos
6008bb4486 add a command ('S') to toggle display of system processes.
It is annoying to have to quit and use top -S to toggle.
2001-06-20 19:56:35 +00:00
wiz
3f9984fc90 existent', not existant' 2001-06-19 13:42:07 +00:00
christos
3eced62df6 bring in fixes from beta12:
- better error checking for read/write failures
	- new install/configure/Makefile and support scripts (we don't use)
	- don't allow 0 delay for non-root accounts
XXX: Someone needs to coordinate to feed back our prototype fixes to Jeff!
2001-05-22 15:38:22 +00:00
abs
5416ac320c if the read() on stdin for a command fails, exit.
This stops top ending up in an infinite cpu churning loop if the tty detaches,
or if something similar to 'top < /dev/null' is run.
2001-04-12 14:10:05 +00:00
enami
4be646f78d s/Swap/Swp in Memory: line.
XXX: Strictly speaking, we must chop off two more characters from this line
XXX: so that the line fits in single line.
2001-01-30 13:29:58 +00:00
enami
044efd32f8 Print a process state except sleeping in capital letter, and
print wait channel for sleeping process.  While I'm here, document that
the STATE field may be followed by /cpu-number on multi-processor system.
2001-01-23 23:03:49 +00:00
sommerfeld
6553cce562 on multiprocessor, display last cpu for SSLEEP state, too. 2000-12-30 14:26:50 +00:00
simonb
ba632e7078 Use the vm.uvmexp2 sysctl. 2000-11-29 11:18:33 +00:00
sommerfeld
e1c4d5f30b If kernel gives us a CPU number in kinfo_proc2, display it after the state.
Rename "onproc" to "cpu".
2000-11-19 01:49:29 +00:00
christos
3bd256e4ec Avoid buffer overflow. Inspired by a FreeBSD BUGTRAQ security advisory.
It should not really matter because we don't install top setgid kmem.
2000-11-02 15:28:51 +00:00
thorpej
ef3b320608 Back out last change. It was not a format string cleanup at all,
but rather a piece of SMP development code not ready for committing.
2000-10-11 19:10:19 +00:00
is
135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
mjl
b46ec3b29b getopt(3) returns -1 not EOF. 2000-10-04 20:09:04 +00:00
itojun
194446c648 plug possible printf string format issue. seen on openbsd mailing list 2000-10-04 17:58:44 +00:00
enami
2eee9d6e1d Use u_int64_t to avoid an integer overflow when converting total number
of swap blocks into kilo bytes.
2000-06-09 07:09:28 +00:00
simonb
7f7c61365d Now that the CPUSTATES info is in <sys/sched.h>, we don't need to include
<sys/dkstat.h> anymore.
2000-06-05 05:24:07 +00:00
perry
a3d66afde6 include sys/sched.h to get definition of CPUSTATES 2000-06-04 02:11:11 +00:00
simonb
a25a6ad644 Move the compare_*() function declarations to m_netbsd15.c and make them
static - they aren't used anywhere else and now there should be no changes
with the top distributed version of m_netbsd15.c.
2000-05-29 11:52:36 +00:00
simonb
ebdd9810cb cp_time[] is now an array of u_int64_t's. Add a percentages64() function
that deals with u_int64_t's instead of long's.
2000-05-29 11:38:33 +00:00
simonb
d4032a270c Sync a comment with the version of this file sent to the top-spinners
list.
2000-05-26 04:22:01 +00:00
simonb
a9d3ad7bbb New module for top based on the old m_netbsd13.c module.
Uses new sysctl/kvm interfaces and removes setgid bit.
2000-05-26 04:01:13 +00:00
thorpej
1f7468bded Handle SONPROC state, and fix buglets in state sorting weight. 2000-05-26 00:44:58 +00:00
blymn
7b14c86600 Convert telnet and top to the new termcap interface. This stops some
buffer overflows in top from ever happening.
2000-05-25 12:25:14 +00:00
mrg
09b8a5a646 for NetBSD 1.4 and above, use <sys/swap.h> 2000-04-13 08:34:40 +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
lukem
3a2e129c54 add trailing "," to memory names (makes it easier to read) 1999-11-05 07:25:14 +00:00
lukem
88d3d7c59e update after change to return value of tputs() third argument 1999-10-04 23:26:59 +00:00
christos
edac4bd44f fix SDEAD problems. 1999-07-23 18:40:27 +00:00
veego
bb1198e9ee According to the previous commit the new process state should be SDEAD and
not SDYING, so s/SDYING/SDEAD/.
And add the new element "dying" to the state_abbrev array.
XXX Is is correct to have two elements with the number 3 in sorted_state?
1999-07-23 09:01:09 +00:00