| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
play nicer in prisons. It also simplifies things.
Reviewed by: rwatson
Bumped into by: Jilles Tjoelker
|
|
|
|
|
|
|
|
|
|
|
| |
printing of the process environment will fail silently.
-define a function which will check to see if procfs is mounted on /proc
-Implement this test if the user specified -e
-If procfs is not mounted on /proc and -e was specified, print a warning.
informing the user that procfs(5) is required.
Reviewed by: wes, rwatson
|
| |
|
| |
|
|
|
|
|
|
| |
the PRI_ITHD case (instead of just printing the digit '1').
Submitted by: Cyrille Lefevre
|
|
|
|
|
| |
an invalid <dev> is specified. Aside: It turns out that the S_ISCHR()
check is true for almost every device that we have (not just tty's).
|
|
|
|
|
|
| |
up checking the wrong variable for NULL.
Submitted by: bde
|
|
|
|
| |
in addition to "/dev/ttyp0" or "p0" and "/dev/console" or "co".
|
|
|
|
|
|
| |
using it's own version of the same basic algorithm.
Submitted by: part by Cyrille Lefevre, part of it done by me
|
|
|
|
|
|
|
| |
(aka "command") will display "<defunct>", as does the output from "comm"
for those processes. Also do better checking for malloc() failures.
Submitted by: Cyrille Lefevre
|
|
|
|
| |
Submitted by: Cyrille Lefevre
|
|
|
|
|
|
| |
is scaled in the same way that "pri" (scheduling priority) is scaled.
Submitted by: Cyrille Lefevre
|
|
|
|
| |
Submitted by: Cyrille Lefevre
|
|
|
|
| |
Submitted by: Cyrille Lefevre
|
| |
|
|
|
|
| |
other files that I am not ready to commit yet...
|
|
|
|
|
| |
PR: bin/65803
Submitted by: Cyrille Lefevre
|
|
|
|
|
|
|
|
|
|
| |
threads, put the command name in square brackets instead of parenthesis.
This matches NetBSD, and also seems to be what linux does. The sentence
which is added to the man page is taken straight from NetBSD.
PR: bin/65803
Submitted by: Cyrille Lefevre
Obtained from: NetBSD
|
|
|
|
|
|
|
| |
kvm_getprocs() will provide useful information if it can, or *it*
will provide a zero value if it can not find something appropriate.
Submitted by: bde
|
|
|
|
|
|
|
|
| |
emulation environment the process is in. "emul" as a keyword is picked
up from OpenBSD.
PR: bin/65803
Submitted by: Cyrille Lefevre
|
|
|
|
|
|
|
|
|
|
|
| |
Any [standard output] field need not be meaningful in all
implementations. In such a case a hyphen ('-') should be
output in place of the field value
So have the `-O label' option print out the string " -" if the
process has no label.
Approved by: Silence from rwatson and green (when asked in March...)
|
|
|
|
|
|
|
|
|
|
| |
and number-of-threads tied to a process. Result can be seen by typing,
e.g.: ps -HO lwp,nlwp
These new options are not documented yet. More options will be coming,
and I will update the man page after I get farther along.
PR: bin/65803 (though adjusted to fit our present source)
Submitted by: Cyrille Lefevre
|
|
|
|
|
|
|
| |
when copying per-process info before starting to sort the list. This way,
sort-by-CPU or sort-by-memory will only calculate values once-per-process,
instead of twice-per-comparison. Also take advantage of this to simplify
the pscomp() routine.
|
|
|
|
|
| |
his eyes at quite so much... (actually someone else pointed this out
to me a long time ago, but apparently I never fixed it)
|
|
|
|
|
|
| |
is to drop a call to setuid() which has not been needed for years.
Noticed by: bde
|
|
|
|
|
| |
remove the #ifdef for it for now. I might add the feature for real at
some later date, there isn't much reason for the #ifdef for now.
|
|
|
|
| |
Noticed by: bde
|
|
|
|
|
|
|
| |
process id, instead of using pid==0. Ie, `ps -p 12,' and `ps -p ,12'
are now errors (instead of being treated like `ps -p 0 -p 12').
Noticed by: Cyrille Lefevre on freebsd-arch
|
|
|
|
|
|
|
|
| |
is treated like `ps -t p0', instead of changing it to `ps -T p0'.
Note that `ps t' is still changed to `ps -T', since that is one of
the main reasons for this kludge processing...
Noticed by: Jilles Tjoelker on freebsd-arch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
more special situations. This is the code which process `ps blah',
when "blah" does not include a leading '-'.
This change also removes a long-undocumented BACKWARD_COMPATIBILITY
compile-time option, where:
ps -options arg1 arg2
(with no '-' on "arg1" and "arg2") was treated as:
ps -options -N arg1 -M arg2
This also changes `ps' to check for any additional arguments after
processing all the '-'-options, and attempt to use those arguments as
a pid or pidlist. If an extra argument is not a valid pidlist, then
`ps' will print an error and exit. This seems a more generally useful
extension of the kludge-option processing than the -N/-M behavior, and
has fewer confusing side-effects.
Reviewed by: freebsd-arch
|
| |
|
|
|
|
|
|
|
| |
(session-pointer) info which was dropped from `ps' earlier in 5.x.
PR: bin/59423
Submitted by: Jilles Tjoelker
|
|
|
|
|
|
|
|
| |
same as `ps -tpt', instead of being changed into `ps -tpT'.
PR: bin/52489
Submitted by: Jilles Tjoelker
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
(if trying to match only one real-group or one session-id), now that
those options are implemented in src/sys/kern/kern_proc.c (v1.203).
PR: bin/65803 (a very tiny piece of the PR)
Submitted by: Cyrille Lefevre
|
| |
|
|
|
|
| |
OK'ed by: imp, core
|
| |
|
|
|
|
|
| |
up the PS_ARGS string in revision 1.69 (and which was apparently not
missed by anyone...).
|
|
|
|
|
| |
because some compilers (such as gcc 2.95.4) do not support having an
unnamed union for a field in a struct.
|
|
|
|
|
| |
Noticed by: ru
MFC after: 4 days
|
|
|
|
|
|
| |
Also improve the description of `-L' a little.
MFC after: 4 days
|
|
|
|
|
|
|
| |
this to correctly handle UID's and GID's larger than 2147483647.
Noticed by: bde
MFC after: 1 week
|
|
|
|
|
|
|
| |
this way (although I still think it "looks weird"...).
Requested by: bde
MFC after: 1 week
|
|
|
|
|
| |
Noticed by: bde
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
| |
This corrects a problem of lost-precision for `-r' (sort-by-CPU). Also,
for sort-by-CPU and sort-by-memory, any processes which have the same
value CPU or MEMORY are now sorted by TTY and then (if needed) by pid.
(* - I just added the NODEV checks, after doing some testing of my own)
Submitted by: bde
MFC after: 1 week
|
|
|
|
| |
Noticed by: bde
|
|
|
|
|
|
|
| |
values such as P_CONTROLT and PS_INMEM. But this still won't define
PID_MAX for us, since that is hidden inside of '#ifdef _KERNEL'.
Noticed by: bde
|
|
|
|
| |
Noticed by: bde
|
|
|
|
| |
Suggested by: bde (well, for most of them)
|
|
|
|
|
|
| |
so that non-pointers are listed after pointer-type variables.
Noticed by: bde
|