nathanw
3d720e58fb
Add a "laddr" keyword, analagous to "paddr". Useful for finding
...
struct pcb's.
2004-08-23 16:31:10 +00:00
simonb
73cc67cb1d
For the "lid" keyword, change ULONG to INT32 since it's a 32bit type.
...
From Nicolas Joly in PR bin/26452.
2004-07-28 07:48:22 +00:00
simonb
891960dba2
Add support for the POSIX.2 "args" and "comm" keywords. "args" is just
...
an alias for "command", and "comm" shows just argv[0] and not the whole
argument list.
Fix for part of PR standards/11224.
2004-03-27 14:52:36 +00:00
simonb
63e11689ca
Add support for the POSIX.2 "etime" keyword - shows the elapsed time
...
since the process was started. Fix a couple of style nits as well.
Fix for part of PR standards/11224.
2004-03-27 14:49:13 +00:00
simonb
abb3201747
Wrap some long lines.
...
Consisently use (void) in front of printf(...);
A few more white-space nits.
2004-03-27 12:44:08 +00:00
simonb
56be4f0202
Change the header for the "tty" keyword "TT" instead of "TTY".
...
Fixed POSIX.2 conformance problem mentioned in standards/11225 from
Ben Harris.
2004-03-27 11:48:31 +00:00
mjl
550c4966cd
Correct typo in page header for tpgid.
2003-12-16 14:26:46 +00:00
agc
b5b2954259
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +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
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
thorpej
3fdac2b8c5
Merge the nathanw_sa branch.
2003-01-18 10:52:16 +00:00
itojun
68603e5242
correct use of format string (signedness, %ldd). PR 18679
2002-10-17 23:50:17 +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
itojun
f320afb26b
address PR 11653. checked on alpha.
...
XXX supports 32bit and 64bit pointers only
2001-01-08 13:20:29 +00:00
simonb
a98dd470c6
Calculate field widths on the fly so that all columns line up nicely
...
and make more effective use of screen real estate when some columns
(eg USER and VSZ) didn't need the full default width.
2000-06-07 04:57:59 +00:00
simonb
a717560d21
G/C evar() - now that everything is in the one structure it was exactly
...
the same as pvar().
2000-06-02 03:39:02 +00:00
simonb
fd521aefe9
Use new sysctl/kvm interfaces. This will stop the "proc size mismatch"
...
errors when internal kernel structures change size. Also remove
the sgid bit - all live kernel data is accessed through the sysctl
interface.
2000-05-26 03:04:28 +00:00
mjl
4ecbad3425
Fix problem in option processing, would segfault when parsing "-O,".
...
Closes PR/10096 by Yuji Yamano using the patch provided.
2000-05-11 08:52:30 +00:00
simonb
e7f8f72d9d
Since we have an "extern.h", put all external variable declarations in
...
that file and not sprinkled around various .c files.
1999-12-03 02:26:36 +00:00
drochner
85cbf55d16
Since our gcc doesn't warn about NULL format strings anymore, we can
...
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
mrg
d5c7180e2b
limit session to 6 chars. from Geoff Wing <gcw@pobox.com> and fixes his PR#7506
1999-05-03 00:17:30 +00:00
christos
f3d0eddcde
Add support for printing wide sigset_t properly.
1999-04-16 13:34:32 +00:00
thorpej
047098bc5c
Add a "sid" keyword to print the session ID.
1998-02-17 21:37:56 +00:00
mrg
79ddb78a38
remove old OLD BSD VM code.
1998-02-06 04:47:30 +00:00
christos
78295c8bc1
Fix compiler warnings
...
Add WARNS=1
1997-07-20 20:37:53 +00:00
ws
fddfc1d33f
Fix p_nice vs. NZERO code.
...
Remove some unnecessary casts.
Remove an unused time format field.
1996-10-02 18:07:20 +00:00
cgd
7514e04296
in findvar(), return after warning about unknown keyword so we don't
...
deref. a null pointer.
1996-05-30 21:16:32 +00:00
cgd
db6548cd7b
correct the sizes specified for various variables.
1995-09-29 21:58:59 +00:00
cgd
81a152541e
Kenneth Stailey pointed out that his previous fix was incorrect. RE and SL
...
should be bounded at 127, not 99.
1995-08-15 14:00:59 +00:00
cgd
731f8de0fa
as suggested in PR 1347, by Kenneth Stailey, make "RE" and "SL" fields
...
show up as two digits, max, displaying "99" if > 99. allow any field with
an unsigned value to be specified as printing that way (though right now
it's only used for RE and SL, which are both unsigned longs). This fix
is substantially different than that suggested in the PR.
1995-08-14 05:00:03 +00:00
cgd
fe9be699b4
add a 'holdcnt' keyword and document it.
1995-05-08 23:11:31 +00:00
cgd
49f0ad8601
convert to new RCS id conventions.
1995-03-21 09:01:59 +00:00
cgd
4d1457ce4e
clean up import
1994-05-09 03:31:07 +00:00
cgd
78be099528
struct element foo
1994-05-05 06:44:24 +00:00
cgd
25718695be
update for changed flags
1994-05-05 02:04:10 +00:00
mycroft
8542364e07
Add RCS identifiers.
1993-08-01 18:49:50 +00:00
cgd
06be60083d
changed "Id" to "Header" for rcsids
1993-03-23 00:22:59 +00:00
cgd
346aa5dd48
added rcs ids to all files
1993-03-22 08:04:00 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00