pioctl.h (139825) | pioctl.h (162711) |
---|---|
1/*- 2 * Copryight 1997 Sean Eric Fagan 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 19 unchanged lines hidden (view full) --- 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 */ 32 33/* 34 * procfs ioctl definitions. 35 * | 1/*- 2 * Copryight 1997 Sean Eric Fagan 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 19 unchanged lines hidden (view full) --- 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 */ 32 33/* 34 * procfs ioctl definitions. 35 * |
36 * $FreeBSD: head/sys/sys/pioctl.h 139825 2005-01-07 02:29:27Z imp $ | 36 * $FreeBSD: head/sys/sys/pioctl.h 162711 2006-09-27 19:57:02Z ru $ |
37 */ 38 39#ifndef _SYS_PIOCTL_H 40# define _SYS_PIOCTL_H 41 42# include <sys/ioccom.h> 43 44struct procfs_status { 45 int state; /* Running, stopped, something else? */ 46 int flags; /* Any flags */ 47 unsigned long events; /* Events to stop on */ 48 int why; /* What event, if any, proc stopped on */ 49 unsigned long val; /* Any extra data */ 50}; 51 | 37 */ 38 39#ifndef _SYS_PIOCTL_H 40# define _SYS_PIOCTL_H 41 42# include <sys/ioccom.h> 43 44struct procfs_status { 45 int state; /* Running, stopped, something else? */ 46 int flags; /* Any flags */ 47 unsigned long events; /* Events to stop on */ 48 int why; /* What event, if any, proc stopped on */ 49 unsigned long val; /* Any extra data */ 50}; 51 |
52# define PIOCBIS _IO('p', 1) /* Set event flag */ 53# define PIOCBIC _IO('p', 2) /* Clear event flag */ 54# define PIOCSFL _IO('p', 3) /* Set flags */ | 52# define PIOCBIS _IOWINT('p', 1) /* Set event flag */ 53# define PIOCBIC _IOWINT('p', 2) /* Clear event flag */ 54# define PIOCSFL _IOWINT('p', 3) /* Set flags */ |
55 /* wait for proc to stop */ 56# define PIOCWAIT _IOR('p', 4, struct procfs_status) | 55 /* wait for proc to stop */ 56# define PIOCWAIT _IOR('p', 4, struct procfs_status) |
57# define PIOCCONT _IO('p', 5) /* Continue a process */ | 57# define PIOCCONT _IOWINT('p', 5) /* Continue a process */ |
58 /* Get proc status */ 59# define PIOCSTATUS _IOR('p', 6, struct procfs_status) 60# define PIOCGFL _IOR('p', 7, unsigned int) /* Get flags */ 61 62# define S_EXEC 0x00000001 /* stop-on-exec */ 63# define S_SIG 0x00000002 /* stop-on-signal */ 64# define S_SCE 0x00000004 /* stop on syscall entry */ 65# define S_SCX 0x00000008 /* stop on syscall exit */ --- 14 unchanged lines hidden --- | 58 /* Get proc status */ 59# define PIOCSTATUS _IOR('p', 6, struct procfs_status) 60# define PIOCGFL _IOR('p', 7, unsigned int) /* Get flags */ 61 62# define S_EXEC 0x00000001 /* stop-on-exec */ 63# define S_SIG 0x00000002 /* stop-on-signal */ 64# define S_SCE 0x00000004 /* stop on syscall entry */ 65# define S_SCX 0x00000008 /* stop on syscall exit */ --- 14 unchanged lines hidden --- |