summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-05-02 21:23:05 +0000
committerMiles Bader <miles@gnu.org>1995-05-02 21:23:05 +0000
commit105a41afd0d823d8878de8717ef523c2b3f60e39 (patch)
tree6508d88bd3b99a4e6c44f87118240472f86a5500 /utils
parent237d05c06774fa1ea9d7ae47e6a148bdf91742bd (diff)
Add the SC (suspend count) field to various output formats.
Diffstat (limited to 'utils')
-rw-r--r--utils/ps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/ps.c b/utils/ps.c
index 652ac878..c7380571 100644
--- a/utils/ps.c
+++ b/utils/ps.c
@@ -181,15 +181,15 @@ bool fmt_sortrev[] =
char *fmts[] =
{
/* default */
- "~PID ~TH# ~TT=tty ~STAT=state ~TIME ~COMMAND=args",
+ "~PID ~TH# ~TT=tty ~SC=susp ~STAT=state ~TIME ~COMMAND=args",
/* user (-u) */
- "~USER ~PID ~TH# ~%CPU ~%MEM ~SZ=vsize ~RSS=rsize ~TT=tty ~STAT=state ~COMMAND=args",
+ "~USER ~PID ~TH# ~%CPU ~%MEM ~SZ=vsize ~RSS=rsize ~TT=tty ~SC=susp ~STAT=state ~COMMAND=args",
/* vmem (-v) */
"~PID ~TH# ~STAT=state ~SL=sleep ~PAGEIN=pgins ~FAULTS=pgflts ~COWFLT=cowflts ~ZFILLS ~SIZE=vsize ~RSS=rsize ~%CPU ~%MEM ~COMMAND=args",
/* long (-l) */
- "~UID ~PID ~TH# ~PPID ~PRI ~NI=bpri ~TH=nth ~MSGIN ~MSGOUT ~SZ=vsize ~RSS=rsize ~STAT=state ~TT=tty ~TIME ~COMMAND=args",
+ "~UID ~PID ~TH# ~PPID ~PRI ~NI=bpri ~TH=nth ~MSGI=msgin ~MSGO=msgout ~SZ=vsize ~RSS=rsize ~SC=susp ~STAT=state ~TT=tty ~TIME ~COMMAND=args",
/* jobc (-j) */
- "~USER ~PID ~TH# ~PPID ~PGRP ~SESS ~LCOLL ~STAT=state ~TT=tty ~TIME ~COMMAND=args",
+ "~USER ~PID ~TH# ~PPID ~PGRP ~SESS ~LCOLL ~SC=susp ~STAT=state ~TT=tty ~TIME ~COMMAND=args",
/* full (-f) (from sysv) */
"~-USER ~PID ~PPID ~TTY ~TIME ~COMMAND=args",
/* hurd */