diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:37:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:37:11 +0000 |
commit | 7a01108f60e58c5683c269bbbb884090b5a0620f (patch) | |
tree | d28dc1713411066fb4ced6b7bb3fe35eb3a43955 /bin/ps | |
parent | 76228dc5f1e37f76feb11003febafceed8e121f0 (diff) |
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'bin/ps')
-rw-r--r-- | bin/ps/print.c | 6 | ||||
-rw-r--r-- | bin/ps/ps.1 | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index fb4faeb2f4e..d42614e9fae 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print.c,v 1.62 2015/07/19 19:26:00 deraadt Exp $ */ +/* $OpenBSD: print.c,v 1.63 2015/10/09 01:37:06 deraadt Exp $ */ /* $NetBSD: print.c,v 1.27 1995/09/29 21:58:12 cgd Exp $ */ /*- @@ -269,8 +269,8 @@ state(const struct kinfo_proc *kp, VARENT *ve) *cp++ = 's'; if ((kp->p_psflags & PS_CONTROLT) && kp->p__pgid == kp->p_tpgid) *cp++ = '+'; - if (kp->p_psflags & PS_TAMED) - *cp++ = 't'; + if (kp->p_psflags & PS_PLEDGE) + *cp++ = 'p'; *cp = '\0'; if (state == 'R' && kp->p_cpuid != KI_NOCPU) { diff --git a/bin/ps/ps.1 b/bin/ps/ps.1 index 3ce7d6d5637..2085ae92cc0 100644 --- a/bin/ps/ps.1 +++ b/bin/ps/ps.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ps.1,v 1.100 2015/07/19 19:26:00 deraadt Exp $ +.\" $OpenBSD: ps.1,v 1.101 2015/10/09 01:37:06 deraadt Exp $ .\" $NetBSD: ps.1,v 1.16 1996/03/21 01:36:28 jtc Exp $ .\" .\" Copyright (c) 1980, 1990, 1991, 1993, 1994 @@ -30,7 +30,7 @@ .\" .\" @(#)ps.1 8.3 (Berkeley) 4/18/94 .\" -.Dd $Mdocdate: July 19 2015 $ +.Dd $Mdocdate: October 9 2015 $ .Dt PS 1 .Os .Sh NAME @@ -341,7 +341,7 @@ PS_SYSTEM 0x10000 No signals, stats or swapping PS_EMBRYO 0x20000 New process, not yet fledged PS_ZOMBIE 0x40000 Dead and ready to be waited for PS_NOBROADCASTKILL 0x80000 Process excluded from kill -1 -PS_TAMED 0x100000 process has called tame(2) +PS_PLEDGE 0x100000 process has called pledge(2) .Ed .It Cm re Core residency time (in seconds; 127 = infinity). @@ -454,6 +454,9 @@ The process is a kernel thread. .It N The process has a reduced CPU scheduling priority. +.It p +The process has called +.Xr pledge 2 . .\" .It S .\" The process has asked for FIFO .\" page replacement @@ -464,9 +467,6 @@ scheduling priority. .\" sequentially address voluminous data). .It s The process is a session leader. -.It t -The process has called -.Xr tame 2 . .It V The process is suspended during a .Xr vfork 2 . |