Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
|
|
|
|
|
|
Previously behaviors were all over the map. This changes them to
use COLUMNS first, and either terminal width or a hardcoded value
(typically 80) as appropriate.
ok deraadt@; man bits ok jmc@
|
|
It's no longer used by ps(1), but w(1) reaches around to it.
Cluestick applied by deraadt@.
|
|
In a UTF-8 locale, columnate correctly and replace valid, but non-
printable characters with the Unicode replacement character U+FFFD.
No change in the C/POSIX locale, and no change for invalid bytes.
Grand total, the code becomes shorter by almost 30 lines.
Feedback from czarkoff@, OK millert@.
|
|
|
|
|
|
OK stsp@
|
|
|
|
|
|
found with and ok bluhm@
|
|
|
|
|
|
as %cpu time. Remove the calculation in ps that includes the process
lifetime. Just print the p_pctcpu value, that was done before when
ps was called with -C. Keep -C as a no-op for existing scripts.
OK millert@
|
|
stop referencing them in comments
|
|
greater than 0 for its one test case.
ok deraadt
|
|
What's worse, the tzfile.h that gets installed is over 20 years old
and doesn't match the real tzfile.h in libc/time. This makes the
tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE
define has been moved to time.h temporarily until its usage is
replaced by 1900 in the tree. Actual removal of tzfile.h is pending
a ports build. Based on a diff from deraadt@
|
|
|
|
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
so don't make realloc copy it. just allocate what we need.
ok deraadt guenther
|
|
patch from Martin <Natano at natano dot net>;
ok deraadt
|
|
ok deraadt
|
|
|
|
PS_NOBROADCASTKILL. The resulting table is shifted so far right
that a few additional lines had to be wrapped. Not ideal but the
best we can do at the moment.
|