diff options
author | sef <sef@FreeBSD.org> | 1997-12-06 04:11:14 +0000 |
---|---|---|
committer | sef <sef@FreeBSD.org> | 1997-12-06 04:11:14 +0000 |
commit | c7d273eccbdbad69eed3ca880a3956ca804a83c8 (patch) | |
tree | 213faf73090825488ed9bc01587c6f942d45f53e /sys/sys/pioctl.h | |
parent | 9821c0958535e623d28d6d4fc1d1ac205a20ec36 (diff) | |
download | FreeBSD-src-c7d273eccbdbad69eed3ca880a3956ca804a83c8.zip FreeBSD-src-c7d273eccbdbad69eed3ca880a3956ca804a83c8.tar.gz |
Changes to allow event-based process monitoring and control.
Diffstat (limited to 'sys/sys/pioctl.h')
-rw-r--r-- | sys/sys/pioctl.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys/sys/pioctl.h b/sys/sys/pioctl.h new file mode 100644 index 0000000..bc264e9 --- /dev/null +++ b/sys/sys/pioctl.h @@ -0,0 +1,36 @@ +/* + * procfs ioctl definitions. + * + * $Id$ + */ + +#ifndef _SYS_PIOCTL_H +# define _SYS_PIOCTL_H + +# include <sys/ioccom.h> + +struct procfs_status { + int state; /* Running, stopped, something else? */ + int flags; /* Any flags */ + unsigned long events; /* Events to stop on */ + int why; /* What event, if any, proc stopped on */ + unsigned long val; /* Any extra data */ +}; + +# define PIOCBIS _IOW('p', 1, unsigned int) /* Set event flag */ +# define PIOCBIC _IOW('p', 2, unsigned int) /* Clear event flag */ +# define PIOCSFL _IOR('p', 3, unsigned int) /* Set flags */ + /* wait for proc to stop */ +# define PIOCWAIT _IOR('p', 4, struct procfs_status) +# define PIOCCONT _IOW('p', 5, int) /* Continue a process */ + /* Get proc status */ +# define PIOCSTATUS _IOW('p', 6, struct procfs_status) + +# 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 */ + +#endif |