Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ps Document some missing flags and add systrace(1) 'x' f...
details: https://anonhg.NetBSD.org/src/rev/a75dc52dc8c5
branches: trunk
changeset: 532894:a75dc52dc8c5
user: christos <christos%NetBSD.org@localhost>
date: Mon Jun 17 16:48:44 2002 +0000
description:
Document some missing flags and add systrace(1) 'x' flag.
diffstat:
bin/ps/print.c | 6 ++++--
bin/ps/ps.1 | 46 +++++++++++++++++++++++++++-------------------
2 files changed, 31 insertions(+), 21 deletions(-)
diffs (105 lines):
diff -r 24e7e50b895c -r a75dc52dc8c5 bin/ps/print.c
--- a/bin/ps/print.c Mon Jun 17 16:32:57 2002 +0000
+++ b/bin/ps/print.c Mon Jun 17 16:48:44 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.72 2002/04/24 21:41:22 nathanw Exp $ */
+/* $NetBSD: print.c,v 1.73 2002/06/17 16:48:44 christos Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
#if 0
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
#else
-__RCSID("$NetBSD: print.c,v 1.72 2002/04/24 21:41:22 nathanw Exp $");
+__RCSID("$NetBSD: print.c,v 1.73 2002/06/17 16:48:44 christos Exp $");
#endif
#endif /* not lint */
@@ -428,6 +428,8 @@
*cp++ = 'N';
if (flag & P_TRACED)
*cp++ = 'X';
+ if (flag & P_SYSTRACE)
+ *cp++ = 'x';
if (flag & P_WEXIT && !is_zombie)
*cp++ = 'E';
if (flag & P_PPWAIT)
diff -r 24e7e50b895c -r a75dc52dc8c5 bin/ps/ps.1
--- a/bin/ps/ps.1 Mon Jun 17 16:32:57 2002 +0000
+++ b/bin/ps/ps.1 Mon Jun 17 16:48:44 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: ps.1,v 1.51 2002/04/24 08:58:33 wiz Exp $
+.\" $NetBSD: ps.1,v 1.52 2002/06/17 16:48:45 christos Exp $
.\"
.\" Copyright (c) 1980, 1990, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -250,28 +250,32 @@
the include file
.Aq Pa sys/proc.h :
.Bl -column P_NOCLDSTOP P_NOCLDSTOP
-.It Dv "P_ADVLOCK" Ta No "0x0000001 process may hold a POSIX advisory lock"
-.It Dv "P_CONTROLT" Ta No "0x0000002 process has a controlling terminal"
-.It Dv "P_INMEM" Ta No "0x0000004 process is loaded into memory"
-.It Dv "P_NOCLDSTOP" Ta No "0x0000008 no
+.It Dv "P_ADVLOCK" Ta No "0x00000001 process may hold a POSIX advisory lock"
+.It Dv "P_CONTROLT" Ta No "0x00000002 process has a controlling terminal"
+.It Dv "P_INMEM" Ta No "0x00000004 process is loaded into memory"
+.It Dv "P_NOCLDSTOP" Ta No "0x00000008 no
.Dv SIGCHLD
when children stop
-.It Dv "P_PPWAIT" Ta No "0x0000010 parent is waiting for child to exec/exit"
-.It Dv "P_PROFIL" Ta No "0x0000020 process has started profiling"
-.It Dv "P_SELECT" Ta No "0x0000040 selecting; wakeup/waiting danger"
-.It Dv "P_SINTR" Ta No "0x0000080 sleep is interruptible"
-.It Dv "P_SUGID" Ta No "0x0000100 process had set id privileges since last exec"
-.It Dv "P_SYSTEM" Ta No "0x0000200 system process: no sigs, stats or swapping"
-.It Dv "P_TIMEOUT" Ta No "0x0000400 timing out during sleep"
-.It Dv "P_TRACED" Ta No "0x0000800 process is being traced"
-.It Dv "P_WAITED" Ta No "0x0001000 debugging process has waited for child"
-.It Dv "P_WEXIT" Ta No "0x0002000 working on exiting"
-.It Dv "P_EXEC" Ta No "0x0004000 process called"
+.It Dv "P_PPWAIT" Ta No "0x00000010 parent is waiting for child to exec/exit"
+.It Dv "P_PROFIL" Ta No "0x00000020 process has started profiling"
+.It Dv "P_SELECT" Ta No "0x00000040 selecting; wakeup/waiting danger"
+.It Dv "P_SINTR" Ta No "0x00000080 sleep is interruptible"
+.It Dv "P_SUGID" Ta No "0x00000100 process had set id privileges since last exec"
+.It Dv "P_SYSTEM" Ta No "0x00000200 system process: no sigs, stats or swapping"
+.It Dv "P_TIMEOUT" Ta No "0x00000400 timing out during sleep"
+.It Dv "P_TRACED" Ta No "0x00000800 process is being traced"
+.It Dv "P_WAITED" Ta No "0x00001000 debugging process has waited for child"
+.It Dv "P_WEXIT" Ta No "0x00002000 working on exiting"
+.It Dv "P_EXEC" Ta No "0x00004000 process called"
.Xr execve 2
-.It Dv "P_OWEUPC" Ta No "0x0008000 owe process an addupc() call at next ast"
+.It Dv "P_OWEUPC" Ta No "0x00008000 owe process an addupc() call at next ast"
.\" the routine addupc is not documented in the man pages
-.It Dv "P_FSTRACE" Ta No "0x0010000 tracing via file system"
-.It Dv "P_NOCLDWAIT" Ta No "0x0020000 no zombies when children die"
+.It Dv "P_FSTRACE" Ta No "0x00010000 tracing via file system"
+.It Dv "P_NOCLDWAIT" Ta No "0x00020000 no zombies when children die"
+.It Dv "P_32" Ta No "0x00040000 32-bit process (used on 64-bit kernels)"
+.It Dv "P_BIGLOCK" Ta No "0x00080000 process needs kernel ``big lock'' to run"
+.It Dv "P_INEXEC" Ta No "0x00100000 process is exec'ing and cannot be traced"
+.It Dv "P_SYSTRACE" Ta No "0x00200000 process system call tracing active"
.El
.It lim
The soft limit on memory used, specified via a call to
@@ -362,6 +366,9 @@
The process is swapped out.
.It X
The process is being traced or debugged.
+.It x
+The process is running under
+.Xr systrace 1 .
.El
.It tt
An abbreviation for the pathname of the controlling terminal, if any.
@@ -583,6 +590,7 @@
.Xr kill 1 ,
.Xr pgrep 1 ,
.Xr pkill 1 ,
+.Xr systrace 1 ,
.Xr sh 1 ,
.Xr w 1 ,
.Xr kvm 3 ,
Home |
Main Index |
Thread Index |
Old Index