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.4 1995/02/20 15:53:32 davidg 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/ptrace.h> |
51#include <sys/resource.h> 52#include <sys/resourcevar.h> |
53#include <sys/signal.h> 54#include <sys/signalvar.h> 55 56#include <vm/vm.h> 57 |
58#include <miscfs/procfs/procfs.h> |
59 60/* 61 * True iff process (p) is in trace wait state 62 * relative to process (curp) 63 */ 64#define TRACE_WAIT_P(curp, p) \ 65 ((p)->p_stat == SSTOP && \ 66 (p)->p_pptr == (curp) && \ --- 245 unchanged lines hidden --- |