1/*
2 * Copyright (c) 1993 Jan-Simon Pendry
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Jan-Simon Pendry.
8 *
--- 22 unchanged lines hidden (view full) ---
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)procfs_ctl.c 8.3 (Berkeley) 1/21/94
38 *
39 * $Id: procfs_ctl.c,v 1.3 1994/12/31 12:26:50 ache Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/time.h>
45#include <sys/kernel.h>
46#include <sys/proc.h>
47#include <sys/vnode.h>
48#include <sys/ioctl.h>
49#include <sys/tty.h>
50#include <sys/resource.h>
51#include <sys/resourcevar.h>
52#include <miscfs/procfs/procfs.h>
53#include <sys/signal.h> /* for sigmask() */
54
55/*
56 * True iff process (p) is in trace wait state
57 * relative to process (curp)
58 */
59#define TRACE_WAIT_P(curp, p) \
60 ((p)->p_stat == SSTOP && \
61 (p)->p_pptr == (curp) && \
--- 245 unchanged lines hidden ---
2 * Copyright (c) 1993 Jan-Simon Pendry
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Jan-Simon Pendry.
8 *
--- 22 unchanged lines hidden (view full) ---
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)procfs_ctl.c 8.3 (Berkeley) 1/21/94
38 *
39 * $Id: procfs_ctl.c,v 1.3 1994/12/31 12:26:50 ache Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/time.h>
45#include <sys/kernel.h>
46#include <sys/proc.h>
47#include <sys/vnode.h>
48#include <sys/ioctl.h>
49#include <sys/tty.h>
50#include <sys/resource.h>
51#include <sys/resourcevar.h>
52#include <miscfs/procfs/procfs.h>
53#include <sys/signal.h> /* for sigmask() */
54
55/*
56 * True iff process (p) is in trace wait state
57 * relative to process (curp)
58 */
59#define TRACE_WAIT_P(curp, p) \
60 ((p)->p_stat == SSTOP && \
61 (p)->p_pptr == (curp) && \
--- 245 unchanged lines hidden ---