| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
(if any) and exit, thus matching the behavior on -stable and other OS's.
My earlier attempt to fix this (v1.65) only seemed to work because of a
lucky random value in nentries (which was not being initialized back
when I tested that earlier patch).
|
|
|
|
|
|
| |
PR: bin/59417
Submitted by: Jan Willem Knopper
This fix by: bde (in the audit-trail of the PR)
|
|
|
|
|
| |
a fatal error instead of a minor warning. It is possible that a few
users are used to the previous behavior, but I'm claiming it was a bug.
|
| |
|
|
|
|
|
|
| |
is compiled with LAZY_PS, so that there is only one PS_ARGS string to
modify when changing the option-list. Also get `-f' to show up in the
usage() statement when compiled with LAZY_PS.
|
| |
|
|
|
|
| |
a few new options.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Change `-p' to allow a list of process IDs, and `-t' to allow a list
of terminal names, instead of only a single value for each.
- Add the `-A' option of SUSv3, which is exactly the same as `-ax'.
- Add the `-G gidlist' (group id).
- Allow any of these "selector options" to be specified multiple times,
and have `ps' keep adding to a given list -- instead of replacing the
previously-specified values.
- Fix interactions between selector-options, so that: "If any are
specified, ... ps shall select the processes represented by the
inclusive OR of all the selection-criteria options." (from SUSv3)
- Add a `-X' option, which is the reverse of the `-x' option.
- various minor improvements in parsing and error handling.
This does not get us to match POSIX/SUSv3, but it gets us closer. The
`-g pgidlist', `-R ruserlist' and `-s sidlist' options mentioned in
freebsd-standards are still under debate, so they skipped for now.
It should be true that this introduces no user-visible incompatible
changes, except to support "new stuff" that was not supported before.
|
|
|
|
|
| |
details of libkvm, and just tell what the getbootfile(3) function
will return, by using the text from netstat(1) and dmesg(8).
|
|
|
|
|
|
|
| |
sysctl(3) interface in kvm(3).
- Document the correct default when no -N is specified.
- Remove stale reference to /var/db/kvm_kernel.db.
- Remove stale reference to /var/run/dev.db.
|
| |
|
|
|
|
|
|
|
|
| |
if no processes were matched. Also sorts the list of 'int's in main, as
long as I had to add another one...
Noticed by: Nate Lawson
MFC after: 10 days
|
|
|
|
|
|
|
|
|
|
|
| |
just print the header (if any) and exit, thus matching the behavior on -stable
and other OS's.
Also adds support for <x> being a comma-separated list of processes, and does
a much better checking for invalid-values of <x>, such as 'ps -p someword'.
Reviewed by: mentioned on freebsd-current
MFC after: 10 days
|
|
|
|
| |
Use WARNS?= instead of WARNS=
|
|
|
|
| |
and pid.
|
|
|
|
|
|
|
| |
Support "uprocp" exactly like "paddr" with the former having been
documented in the manual but not implemented.
PR: 42484
|
|
|
|
|
|
|
|
|
|
| |
* Remove mention of '>', 'A', and 'S' states
* Mention 'W' state.
* List 'J' state in the correct location.
* Sync with flags in sys/proc.h
Approved by: rwatson (mentor)
MFC after: 7 days
|
| |
|
|
|
|
|
| |
not implemented. This is just handy if you want to ddb the address
some process is waiting on.
|
|
|
|
|
|
|
|
| |
only letters (e.g. IWs+)
PR: 55221
Submitted by: Rich Morin <rdm@cfcl.com>
MFC after: 3 days
|
|
|
|
|
|
|
| |
Obsolete WFORMAT= junk also removed where possible.
OK'ed by: obrien
Tested on: sparc64, alpha, i386
|
|
|
|
|
| |
process. The default behavior of showing only the process is retained as
the default.
|
| |
|
|
|
|
| |
Tested by: Joe Marcus Clarke <marcus@marcuscom.com>
|
|
|
|
|
|
| |
WARNS=6, std=c99 clean.
Tested on: i386, alpha
|
|
|
|
| |
to properly fix.
|
|
|
|
|
| |
PR: docs/51480 (only a small part)
Submitted by: Diomidis D. Spinellis <dds@aueb.gr>
|
| |
|
|
|
|
|
|
| |
zombie CPU times are valid. Adjust array size in strftime(3).
Submitted by: Bruce
|
|
|
|
|
|
|
| |
This is what the manual page says ps should do, and what OpenBSD and NetBSD do.
Based on a patch from Ken Stailey.
PR: 27433, 46232
|
|
|
|
|
|
| |
fact that in this case order matters.
Submitted by: Peter Edwards <pmedwards@eircom.net>
|
|
|
|
|
|
| |
Solaris man page is the POSIX way.
Reviewed by: jmallett
|
|
|
|
|
| |
case to do the right thing and affect exactly one column. This is consistent
with GNU ps(1) in BSD mode, and POLA.
|
|
|
|
|
|
|
|
| |
one that is already there. This is consistent with GNU ps(1)'s BSD mode, and
POLA.
Reported by: Andy Farkas <andyf@speednet.com.au>
Tested by: Andy Farkas <andyf@speednet.com.au>
|
|
|
|
| |
and that's what these locals were called before.
|
|
|
|
| |
PR: docs/37176
|
|
|
|
| |
to match that.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
the LOMAC-specific interface (which is being deprecated). The
revised LOMAC using the MAC framework will export levels listable
using this mechanism.
Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
|
|
|
|
|
|
| |
replaced by int instead of size_t.
Spotted by: fanf
|