diff options
-rw-r--r-- | sys/sys/pioctl.h | 7 | ||||
-rw-r--r-- | sys/sys/proc.h | 9 |
2 files changed, 9 insertions, 7 deletions
diff --git a/sys/sys/pioctl.h b/sys/sys/pioctl.h index b43a47f..4568876 100644 --- a/sys/sys/pioctl.h +++ b/sys/sys/pioctl.h @@ -59,13 +59,6 @@ struct procfs_status { # define PIOCSTATUS _IOR('p', 6, struct procfs_status) # define PIOCGFL _IOR('p', 7, unsigned int) /* Get flags */ -# define S_EXEC 0x00000001 /* stop-on-exec */ -# define S_SIG 0x00000002 /* stop-on-signal */ -# define S_SCE 0x00000004 /* stop on syscall entry */ -# define S_SCX 0x00000008 /* stop on syscall exit */ -# define S_CORE 0x00000010 /* stop on coredump */ -# define S_EXIT 0x00000020 /* stop on exit */ - /* * If PF_LINGER is set in procp->p_pfsflags, then the last close * of a /proc/<pid>/mem file will nto clear out the stops and continue diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 3e55e19..66c00d9 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -448,6 +448,15 @@ struct proc { #define SWAIT 6 /* Waiting for interrupt. */ #define SMTX 7 /* Blocked on a mutex. */ +/* Stop events */ +#define S_EXEC 0x00001 /* stop on exec */ +#define S_SIG 0x00002 /* stop on signal */ +#define S_SCE 0x00004 /* stop on syscall entry */ +#define S_SCX 0x00008 /* stop on syscall exit */ +#define S_CORE 0x00010 /* stop on coredump */ +#define S_EXIT 0x00020 /* stop on exit */ +#define S_ALLSTOPS 0x0003f /* all of the above */ + /* These flags are kept in p_flag. */ #define P_ADVLOCK 0x00001 /* Process may hold a POSIX advisory lock. */ #define P_CONTROLT 0x00002 /* Has a controlling terminal. */ |