summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/keyword.c4
-rw-r--r--bin/ps/ps.14
2 files changed, 8 insertions, 0 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index af33593..a3d0066 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -148,6 +148,8 @@ VAR var[] = {
{"ruid", "RUID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_ruid),
UINT, UIDFMT},
{"ruser", "RUSER", NULL, LJUST|DSIZ, runame, s_runame, USERLEN},
+ {"sid", "SID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_sid), UINT,
+ PIDFMT},
{"sig", "PENDING", NULL, 0, kvar, NULL, 8, KOFF(ki_siglist), INT, "x"},
{"sigcatch", "CAUGHT",
NULL, 0, kvar, NULL, 8, KOFF(ki_sigcatch), UINT, "x"},
@@ -167,6 +169,8 @@ VAR var[] = {
{"time", "TIME", NULL, USER, cputime, NULL, 9},
{"tpgid", "TPGID",
NULL, 0, kvar, NULL, 4, KOFF(ki_tpgid), UINT, PIDFMT},
+ {"tsid", "TSID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_tsid), UINT,
+ PIDFMT},
{"tsiz", "TSIZ", NULL, 0, tsize, NULL, 4},
{"tt", "TT ", NULL, 0, tname, NULL, 4},
{"tty", "TTY", NULL, LJUST, longtname, NULL, 8},
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1
index 6791626..2e4877b 100644
--- a/bin/ps/ps.1
+++ b/bin/ps/ps.1
@@ -430,6 +430,8 @@ real user
.Tn ID
.It ruser
user name (from ruid)
+.It sid
+session ID
.It sig
pending signals (alias pending)
.It sigcatch
@@ -457,6 +459,8 @@ control terminal process group
.Tn ID
.\".It trss
.\"text resident set size (in Kbytes)
+.It tsid
+control terminal session ID
.It tsiz
text size (in Kbytes)
.It tt
OpenPOWER on IntegriCloud