summaryrefslogtreecommitdiff
path: root/libps
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-08-19 16:19:07 +0000
committerMiles Bader <miles@gnu.org>1995-08-19 16:19:07 +0000
commitd6a2d094a3ca2eb266b3cb871c6b139d34b14648 (patch)
treeb6b62b9fc31ccd02245ca7cc2d307ae164b6de0a /libps
parenta6808c301908837211b827bcda39942a3ff3fe02 (diff)
(ps_not_sess_leader_p, ps_unorphaned_p, ps_parent_p): Use the new state bits.
Diffstat (limited to 'libps')
-rw-r--r--libps/filters.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libps/filters.c b/libps/filters.c
index 345e90e8..d47a130f 100644
--- a/libps/filters.c
+++ b/libps/filters.c
@@ -44,7 +44,7 @@ struct ps_filter ps_own_filter =
static bool
ps_not_sess_leader_p(proc_stat_t ps)
{
- return !(proc_stat_state(ps) & PSTAT_STATE_SESSLDR);
+ return !(proc_stat_state(ps) & PSTAT_STATE_P_SESSLDR);
}
struct ps_filter ps_not_sess_leader_filter =
{"not-sess-leader", PSTAT_STATE, ps_not_sess_leader_p};
@@ -53,7 +53,7 @@ static bool
ps_unorphaned_p(proc_stat_t ps)
{
int state = proc_stat_state(ps);
- return !(state & PSTAT_STATE_ORPHANED) || (state & PSTAT_STATE_SESSLDR);
+ return !(state & PSTAT_STATE_P_ORPHAN) || (state & PSTAT_STATE_P_SESSLDR);
}
struct ps_filter ps_unorphaned_filter =
{"unorphaned", PSTAT_STATE, ps_unorphaned_p};
@@ -69,7 +69,7 @@ struct ps_filter ps_ctty_filter =
static bool
ps_parent_p(proc_stat_t ps)
{
- return !(proc_stat_state(ps) & PSTAT_STATE_NOPARENT);
+ return !(proc_stat_state(ps) & PSTAT_STATE_P_NOPARENT);
}
struct ps_filter ps_parent_filter =
{"parent", PSTAT_STATE, ps_parent_p};