Move the stop event macros from pioctl.h to proc.h, and add an S_ALLSTOPS

macro to represent "all stop events".
This commit is contained in:
Dag-Erling Smørgrav 2001-10-22 02:00:33 +00:00
parent 83c54719ed
commit 902830c2ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85300
2 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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. */