Make this build.

This commit is contained in:
ad 2007-02-19 01:19:16 +00:00
parent fe10a8bc01
commit cee712ad2f
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_ptrace.c,v 1.7 2007/02/09 21:55:18 ad Exp $ */
/* $NetBSD: linux_ptrace.c,v 1.8 2007/02/19 01:19:16 ad Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.7 2007/02/09 21:55:18 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.8 2007/02/19 01:19:16 ad Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@ -129,14 +129,14 @@ linux_sys_ptrace_arch(l, v, retval)
* You can't do what you want to the process if:
* (1) It's not being traced at all,
*/
if (!ISSET(t->p_flag, P_TRACED))
if (!ISSET(t->p_slflag, PSL_TRACED))
return EPERM;
/*
* (2) it's being traced by procfs (which has
* different signal delivery semantics),
*/
if (ISSET(t->p_flag, P_FSTRACE))
if (ISSET(t->p_slflag, PSL_FSTRACE))
return EBUSY;
/*
@ -148,7 +148,7 @@ linux_sys_ptrace_arch(l, v, retval)
/*
* (4) it's not currently stopped.
*/
if (t->p_stat != SSTOP || !ISSET(t->p_flag, P_WAITED))
if (t->p_stat != SSTOP || !t->p_waited)
return EBUSY;
/* XXX NJWLWP