aboutsummaryrefslogtreecommitdiff
path: root/bin/ps
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@FreeBSD.org>2014-06-06 22:52:11 +0000
committerSergey Kandaurov <pluknet@FreeBSD.org>2014-06-06 22:52:11 +0000
commit38d22923f7e6f1f7e6da8ad0a0025159d60e09cb (patch)
tree4ab985f9809796cfb7df64d7bd3b6a4f4a05fd88 /bin/ps
parent8bb9d3675b56f4501e16e6ca3eb903eac9e42810 (diff)
downloadsrc-38d22923f7e6f1f7e6da8ad0a0025159d60e09cb.tar.gz
src-38d22923f7e6f1f7e6da8ad0a0025159d60e09cb.zip
Notes
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/keyword.c2
-rw-r--r--bin/ps/ps.114
2 files changed, 15 insertions, 1 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 21e679128382..3a0c323b77d1 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -87,8 +87,10 @@ 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},
+ {"f2", "F2", NULL, 0, kvar, KOFF(ki_flag2), INT, "08x", 0},
{"fib", "FIB", NULL, 0, kvar, KOFF(ki_fibnum), INT, "d", 0},
{"flags", "", "f", 0, NULL, 0, CHAR, NULL, 0},
+ {"flags2", "", "f2", 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},
{"ignored", "", "sigignore", 0, NULL, 0, CHAR, NULL, 0},
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1
index c4239ea5bccd..3d7edf7ea8e1 100644
--- a/bin/ps/ps.1
+++ b/bin/ps/ps.1
@@ -29,7 +29,7 @@
.\" @(#)ps.1 8.3 (Berkeley) 4/18/94
.\" $FreeBSD$
.\"
-.Dd May 2, 2014
+.Dd June 6, 2014
.Dt PS 1
.Os
.Sh NAME
@@ -340,6 +340,15 @@ the include file
.It Dv "P_SWAPPINGIN" Ta No "0x40000000" Ta "Process is being swapped in"
.It Dv "P_PPTRACE" Ta No "0x80000000" Ta "Vforked child issued ptrace(PT_TRACEME)"
.El
+.It Cm flags2
+The flags kept in
+.Va p_flag2
+associated with the process as in
+the include file
+.In sys/proc.h :
+.Bl -column P2_INHERIT_PROTECTED 0x00000001
+.It Dv "P2_INHERIT_PROTECTED" Ta No "0x00000001" Ta "New children get P_PROTECTED"
+.El
.It Cm label
The MAC label of the process.
.It Cm lim
@@ -534,6 +543,9 @@ default FIB number, see
.It Cm flags
the process flags, in hexadecimal (alias
.Cm f )
+.It Cm flags2
+the additional set of process flags, in hexadecimal (alias
+.Cm f2 )
.It Cm gid
effective group ID (alias
.Cm egid )