Age | Commit message (Collapse) | Author |
|
Turn [-U username] into [-U user] to match top(1)/pgrep(1)/fstat(1) -U/-u
taking both "root" and "0".
Feedback OK millert
|
|
|
|
length value, not the length difference.
ok deraadt@ millert@ guenther@
|
|
exposed in a new field returned by sysctl(KERN_PROC). Update
pthread_{get,set}_name_np(3) to use the syscalls. Show them, when
set, in ps -H and top -H output.
libc and libpthread minor bumps
ok mpi@, mvs@, deraadt@
|
|
|
|
Reported by Christian Weisgerber
OK kn@
|
|
- while here, wrap a long line
|
|
In -f mode group & display parent/child process relationships using ASCII art.
Borrows heavily from Brian Somers' work on FreeBSD ps(1).
With input from deraadt@ and tb@
OK benno@ claudio@
|
|
Also remove unneeded seltrue() and selfalse().
OK mpi@ jsg@
|
|
jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.
ok jmc@
|
|
Pointers from and discussions with millert and deraadt.
Ok millert@, deraadt@, bluhm@
|
|
This way we keep the size of the strings in the private struct in
sync with what the kernel gives us. OK deraadt@
|
|
from sysctl.h. This isn't a perfect transition, still thinking about
other ways to do it.
ok millert
|
|
Ok deraat@
|
|
Ok deraadt
|
|
Feedback and tweaks from deraadt@ guenther@
Ok bluhm@ deraadt@
|
|
|
|
Ok millert@ deraadt@
|
|
ok jsg@ deraadt@
|
|
|
|
with help from sthen@ and tim@. OK tim@
|
|
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.
Work done and verified by Ashton Fagg <ashton@fagg.id.au>
ok deraadt@ semarie@ claudio@
|
|
From Daniel Kovacic <daniel dot kovacic at unbugd dot com>, thanks!
No object change.
|
|
it results in the same, but is incorrect.
ok millert
|
|
Fluff noticed by jsg@.
|
|
KERN_PROC_SHOW_THREADS and have been rendered superfluous by it.
Similarly, some P_SYSTEM tests can be deleted or pushed to the
kernel by using KERN_PROC_ALL instead of KERN_PROC_KTHREAD.
ok visa@ mpi@
|
|
OK millert
|
|
OK deraadt@
|
|
fact on the ground in ps everywhere, even on linux, and it is not going
to go away, and denying the existance is pointless. The SYNOPSIS cannot
proscriptively document all the cases without a madness. I also feel
there is very little need to explain the behaviour differences relative
to the sparse POSIX standard for ps, everyone's ps has oodles of
extensions.
|
|
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
|
|
|
active on each process. So go forth and "ps agux -o pledge" to find pledges
which can be improved.
(I hesitated adding this before because I am afraid of people
enforcing extra-strict pledge in programs without testing all the use
cases -- thereby breaking software).
|
|
you'll see one, or neither.
'u' - process installed unveils, but not yet locked with unveil(0,0)
or pledge w/o "unveil"
'U' - process has installed unveils, and locked.
ok rob
|
|
|
|
could have, so let's formally expand the buffer to what it needs to be.
|
|
Give the same treatment if /dev doesn't exist. While things will be
real interesting without /dev there is no reason to stop ps(1).
Fix suggested by & OK deraadt
OK millert
|
|
decomposition into major and minor is unsigned, so we should print them
with %u instead of %d.
ok guenther
|
|
do repeated lookups. OK tb@
|
|
some kernel memory/symbol files.
|
|
ok kettenis, plus a fix from tb
|
|
Do not link ps(1) with libm.
from miod@; OK millert@
|
|
diff from bcallah@; OK tedu@ deraadt@
|
|
|
|
The lack of this entry was reported by Jan Stary <hans at stare dot cz>.
OK czarkoff@ jmc@
|
|
Triggered by a different patch from Michal Mazurek.
Joint work by tb@, jmc@, and tedu@, but no one ever committed it.
|
|
This behavior already existed but was unintentionally lost in revision
1.70 of ps.c.
ok millert@ tb@
|
|
faster than the system is more of a caveat than a bug. The comment also
dates back to ye olden times when the information was collected via
multiple kvm reads. The sysctl interface provides a much more consistent
snapshot, albeit one that may be outdated by the time it's printed.
Reword accordingly.
|
|
diff from Carlin Bingham. ok millert.
|
|
|
|
|