summaryrefslogtreecommitdiff
path: root/bin/ps
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2017-10-09 10:24:06 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2017-10-09 10:24:06 +0000
commita8373a7c1fa6bdde30189e377792abe10eee369b (patch)
tree8a0cb6dde3485abd79d39f10f7f0cd6e33961583 /bin/ps
parent1dce7acd3730bcb0fc5754b794c8190797d0fa04 (diff)
downloadsrc-test2-a8373a7c1fa6bdde30189e377792abe10eee369b.tar.gz
src-test2-a8373a7c1fa6bdde30189e377792abe10eee369b.zip
Document "tdnam" keyword to ps(1), and add "tdname" alias.
MFC after: 2 weeks Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=324427
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/keyword.c1
-rw-r--r--bin/ps/ps.15
2 files changed, 5 insertions, 1 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 55c89a134250..7440799e2098 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -201,6 +201,7 @@ static VAR var[] = {
{"tdev", "TDEV", NULL, "terminal-device", 0, tdev, 0, CHAR, NULL, 0},
{"tdnam", "TDNAM", NULL, "terminal-device-name", LJUST, tdnam, 0, CHAR,
NULL, 0},
+ {"tdname", "", "tdnam", NULL, 0, NULL, 0, CHAR, NULL, 0},
{"time", "TIME", NULL, "cpu-time", USER, cputime, 0, CHAR, NULL, 0},
{"tpgid", "TPGID", NULL, "terminal-process-gid", 0, kvar,
KOFF(ki_tpgid), UINT, PIDFMT, 0},
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1
index 649f5e9e7082..896f22cff6d5 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 September 7, 2017
+.Dd October 9, 2017
.Dt PS 1
.Os
.Sh NAME
@@ -675,6 +675,9 @@ saved UID from a setuid executable
accumulated system CPU time
.It Cm tdaddr
thread address
+.It Cm tdnam
+thread name (alias
+.Cm tdname )
.It Cm tdev
control terminal device number
.It Cm time