wiz
2df55409df
Update date for recent changes.
2003-03-17 08:15:07 +00:00
dsl
b44ef110a7
Support -ktt and -ktty, quote "tdev" in comment so table can be sorted.
2003-03-08 08:04:24 +00:00
christos
5998d3b278
XXX: cast tdev to INT32 instead of UINT32 so that that sorting works as
...
before [NODEV entries come first]
2003-03-08 06:46:22 +00:00
dsl
f24cb25605
- add keywords for utime, stime and ctime (output sss.ssssss if small)
...
- fiddle with keyword table - mainly to keep width under 80 cols
- add -k keylist so sort output
- don't use logs to work out field width, get -MAXINT right
- user defined headers can be 1 char (actually they can be zero length)
so ?? in tty column isn't guaranteed to be wider than header
- remove some long long casts (compiles on sparc64 still)
- use kvm_openfiles(NULL, NULL, NULL, KVN_NO_FILES, ..) unless core file
specified,
(approved by christos)
2003-03-06 09:04:21 +00:00
dsl
036e265716
- add keywords for utime, stime and ctime (output sss.ssssss if small)
...
- fiddle with keyword table - mainly to keep width under 80 cols)
- add -k keylist so sort output
- don't use logs to work out field width, get -MAXINT right
- user defined headers can be 1 char (actually they can be zero length)
so ?? in tty column isn't guaranteed to be wider than header
- use PRId64 to remove some long long casts
- use kvm_openfiles(NULL, NULL, NULL, KVN_NO_FILES, ..) unless core file
specified
(approved by christos)
2003-03-06 09:02:16 +00:00
dsl
a124f92ed5
Seems better to display p_sv{u,g}id when asked for it...
2003-03-03 23:13:21 +00:00
atatat
40f3045957
Add p_svuid and p_svgid to kinfo_proc2. Populate them in the kernel
...
and in libkvm. Then teach ps how to show them to you.
Also, teach ps how to show the names for all the uids, the rest of the
group numbers, and the "group access list".
2003-03-01 05:41:55 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
thorpej
3fdac2b8c5
Merge the nathanw_sa branch.
2003-01-18 10:52:16 +00:00
wiz
7e681f7063
interrupt with two rs.
2003-01-06 13:04:54 +00:00
itojun
68603e5242
correct use of format string (signedness, %ldd). PR 18679
2002-10-17 23:50:17 +00:00
wiz
f3e4defc56
Use more mdoc.
2002-10-01 15:11:08 +00:00
wiz
14dfaa4b03
New policy: New sentences start on a new line.
...
Patches by Robert Elz <kre at munnari oz au>, with minimal changes by me.
2002-09-25 15:18:36 +00:00
jdolecek
fc257046b9
g/c procfs fallback code, it's redundant now that we use sysctl to get
...
process info
2002-06-19 08:11:55 +00:00
wiz
c8c3c3fd5f
Sort SEE ALSO.
2002-06-17 16:55:05 +00:00
christos
d09016d45a
Document some missing flags and add systrace(1) 'x' flag.
2002-06-17 16:48:44 +00:00
nathanw
43634bc5ba
Since kinfo_proc2 has many values that are 64-bit, ps needs to know
...
that they're 64-bit, and grab them out of memory appropriately. Otherwise,
big-endian systems get the wrong end of the 64-bit value and lose.
Keywords affected: inblk, majflt, minflt, msgrcv, msgsnd, nivcsw, nsigs,
nswap, nvcsw, and oublk.
2002-04-24 21:41:22 +00:00
wiz
66a3e61375
"a, b, c, and d", not "a, b, c and d".
2002-04-24 08:58:33 +00:00
wiz
1932d50001
Drop trailing space.
2002-03-04 13:19:33 +00:00
ad
5a6b9d89df
Xref pkill/pgrep.
2002-03-04 13:02:32 +00:00
martin
f95cd5a968
Use int32_t for temporary variables (instead of long), that is the same
...
type as we get the data passed from the kernel. This avoids (missing)
sign extension bugs on LP64 systems and partly takes care of PR 15677.
We now print this values as negative seconds - still wrong, but that
probably is due to the simple way this values are acumulated in the
scheduler, causing negative times when ntpd steps time backwards.
2002-02-21 19:31:03 +00:00
enami
b127ec2616
Just use return value of strvis instead of calling strlen.
2002-02-14 06:57:19 +00:00
enami
4c30ea4ac5
Don't define variable as static unnecessarily.
2002-02-14 06:54:41 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
jdolecek
ef1ec2419d
started(): don't assume that the field width is correct and recompute
...
it as needed
This fixes bogus output for cases like `ps -ao start=xx`, as reported by
Martin Macok of Undeground.cz on current-users@netbsd.org .
2002-01-21 23:01:55 +00:00
soren
dc53bf3cba
Sync getopt() / man page with actual getopt options.
2001-12-20 20:10:33 +00:00
wiz
8ee888f96f
Properly quote punctuation.
2001-12-20 20:06:15 +00:00
wiz
3ebcdc5e43
Whitespace nits.
2001-12-20 19:31:48 +00:00
lukem
b8a6769184
fix minor WARNS=2
2001-11-03 13:21:09 +00:00
lukem
725b21190a
fix comment: "[]" are [square] brackets, "<>" are angle brackets
2001-08-24 06:37:03 +00:00
enami
48661b973f
Print commands within angled brackets only if they are system processes.
...
Print other commands, like cc, cpp and as, within parentheres.
2001-08-24 01:48:22 +00:00
wiz
1e378c4c12
precede, not preceed.
2001-08-20 12:00:46 +00:00
christos
c91b59d1de
Print system processes/kernel threads as [kprocname] as top(1) does.
2001-08-07 14:46:09 +00:00
wiz
8c6310c4a3
Remove duplicate `if'. Noted by Geoff C. Wing in bin/13551.
2001-07-30 16:22:49 +00:00
matt
c6458f33d8
Add a small optimizetion in savevars(). break out of the loop once needcomm
...
is set since setting it multiple times only wastes cpu time.
2001-07-20 21:59:58 +00:00
matt
68b3b7e9c7
Retrieve maxslp & uspace from kernel instead of using defines. Needed for
...
shared arm code.
2001-07-14 06:53:43 +00:00
sommerfeld
d19e89a7c0
correct the description of paddr
2001-07-04 20:49:00 +00:00
cyber
428f40d685
If there were no processes to list, it meant that our criteria failed
...
and didnt match anything. Dont make our caller think we succeeded.
2001-06-14 19:04:49 +00:00
enami
4aa8283eb7
Always initialize an auto variable.
2001-03-23 01:06:02 +00:00
itojun
58a9573963
do not update maxlen if realloc fails.
2001-03-20 19:05:11 +00:00
christos
a396a72f84
clarify things a bit more (from hubertf)
2001-01-15 21:02:58 +00:00
christos
3141a5cc48
Really explain what parenthesized names mean and why we parenthesize names!
2001-01-15 17:57:14 +00:00
hubertf
9bb3e62b11
Document the meaning of commands shown in parantheses.
...
Patches submitted by Jeremy C. Reed <reed@reedmedia.net> in PR 11930.
2001-01-15 16:16:51 +00:00
itojun
bc8fe00e2e
KPTR/KPTR24 are using u_int64_t. commented by minoura
2001-01-09 01:21:59 +00:00
itojun
adf3a0eef5
redo previous (simplify KPTR)
2001-01-08 18:03:45 +00:00
itojun
3410e7bd02
backout previous; did not compile on non-alpha
2001-01-08 17:55:28 +00:00
itojun
a3c77f0437
simplify KPTR processing.
2001-01-08 17:18:24 +00:00
itojun
f320afb26b
address PR 11653. checked on alpha.
...
XXX supports 32bit and 64bit pointers only
2001-01-08 13:20:29 +00:00
simonb
0a7d3a1ff5
Add a K flag to the state information - K is for kernel thread or system
...
process (ie, P_SYSTEM set in p_flag). The L flag (locked in core) is
only used for non-P_SYSTEM processes.
2000-10-23 05:54:06 +00:00
nathanw
904bfc5822
Update description of process flag 0x20000 to match reality:
...
P_NOCLDWAIT, not P_SSTEP.
2000-08-28 13:06:42 +00:00