diff options
author | will <will@FreeBSD.org> | 2013-08-26 23:48:21 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2013-08-26 23:48:21 +0000 |
commit | a52b9ca1d3093315714bdb9c80d6cc06215837a0 (patch) | |
tree | f82f67cc875d4d29e153a4dc547c3ccbc1a22f38 /bin | |
parent | fe9638e56d5327851fc0bb1330797ef34ad22cb5 (diff) | |
download | FreeBSD-src-a52b9ca1d3093315714bdb9c80d6cc06215837a0.zip FreeBSD-src-a52b9ca1d3093315714bdb9c80d6cc06215837a0.tar.gz |
Add the ability to display the default FIB number for a process to the
ps(1) utility, e.g. "ps -O fib".
bin/ps/keyword.c:
Add the "fib" keyword and default its column name to "FIB".
bin/ps/ps.1:
Add "fib" as a supported keyword.
sys/compat/freebsd32/freebsd32.h:
sys/kern/kern_proc.c:
sys/sys/user.h:
Add the default fib number for a process (p->p_fibnum)
to the user land accessible process data of struct kinfo_proc.
Submitted by: Oliver Fromme <olli@fromme.com>, gibbs
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ps/keyword.c | 1 | ||||
-rw-r--r-- | bin/ps/ps.1 | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c index 5861129..21e6791 100644 --- a/bin/ps/keyword.c +++ b/bin/ps/keyword.c @@ -87,6 +87,7 @@ static VAR var[] = { {"etimes", "ELAPSED", NULL, USER, elapseds, 0, CHAR, NULL, 0}, {"euid", "", "uid", 0, NULL, 0, CHAR, NULL, 0}, {"f", "F", NULL, 0, kvar, KOFF(ki_flag), INT, "x", 0}, + {"fib", "FIB", NULL, 0, kvar, KOFF(ki_fibnum), INT, "d", 0}, {"flags", "", "f", 0, NULL, 0, CHAR, NULL, 0}, {"gid", "GID", NULL, 0, kvar, KOFF(ki_groups), UINT, UIDFMT, 0}, {"group", "GROUP", NULL, LJUST, egroupname, 0, CHAR, NULL, 0}, diff --git a/bin/ps/ps.1 b/bin/ps/ps.1 index 1a364f5..81a1f6d 100644 --- a/bin/ps/ps.1 +++ b/bin/ps/ps.1 @@ -512,6 +512,9 @@ elapsed running time, format minutes:seconds. .It Cm etimes elapsed running time, in decimal integer seconds +.It Cm fib +default FIB number, see +.Xr setfib 1 .It Cm flags the process flags, in hexadecimal (alias .Cm f ) |