From 2f91e71b83a8e7e4100374ad717c531c491d73ea Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 28 Mar 1995 18:17:14 +0000 Subject: Add the exec_flags field to the proc_stat structure, and add PSTAT_STATE_TRACED. --- libps/ps.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libps/ps.h') diff --git a/libps/ps.h b/libps/ps.h index d7bcfb23..92c8856c 100644 --- a/libps/ps.h +++ b/libps/ps.h @@ -207,6 +207,9 @@ struct proc_stat thread_basic_info_data_t thread_basic_info; thread_sched_info_data_t thread_sched_info; + /* Exec flags (see EXEC_* in ). */ + int exec_flags; + /* A bitmask summarizing the scheduling state of this process and all its threads. See the PSTAT_STATE_ defines below for a list of bits. */ int state; @@ -268,6 +271,7 @@ struct proc_stat #define PSTAT_TTY 0x4000 /* A ps_tty_t for the proc's terminal.*/ #define PSTAT_OWNER 0x8000 /* A ps_user_t for the proc's owner. */ #define PSTAT_UMASK 0x10000 /* The proc's current umask. */ +#define PSTAT_EXEC_FLAGS 0x20000 /* The process's exec flags. */ #define PSTAT_NUM_THREADS PSTAT_INFO @@ -289,6 +293,7 @@ struct proc_stat #define PSTAT_STATE_NOMSG 0x2000 /* m no msg port */ #define PSTAT_STATE_NOPARENT 0x4000 /* p no parent */ #define PSTAT_STATE_ORPHANED 0x8000 /* o orphaned */ +#define PSTAT_STATE_TRACED 0x10000 /* x traced */ /* This is a constant string holding a single character for each possible bit -- cgit v1.2.3