kern_procctl.c (8876) | kern_procctl.c (12221) |
---|---|
1/* 2 * Copyright (c) 1994, Sean Eric Fagan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * | 1/* 2 * Copyright (c) 1994, Sean Eric Fagan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * |
31 * $Id: sys_process.c,v 1.13 1995/05/12 21:39:48 davidg Exp $ | 31 * $Id: sys_process.c,v 1.14 1995/05/30 08:05:58 rgrimes Exp $ |
32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> | 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> |
36#include <sys/sysproto.h> |
|
36#include <sys/proc.h> 37#include <sys/vnode.h> 38#include <sys/ptrace.h> 39#include <sys/errno.h> 40 41#include <machine/reg.h> 42#include <machine/psl.h> 43#include <vm/vm.h> --- 137 unchanged lines hidden (view full) --- 181 vm_map_protect (map, pageno, pageno + PAGE_SIZE, 182 VM_PROT_READ|VM_PROT_EXECUTE, 0); 183 return rv; 184} 185 186/* 187 * Process debugging system call. 188 */ | 37#include <sys/proc.h> 38#include <sys/vnode.h> 39#include <sys/ptrace.h> 40#include <sys/errno.h> 41 42#include <machine/reg.h> 43#include <machine/psl.h> 44#include <vm/vm.h> --- 137 unchanged lines hidden (view full) --- 182 vm_map_protect (map, pageno, pageno + PAGE_SIZE, 183 VM_PROT_READ|VM_PROT_EXECUTE, 0); 184 return rv; 185} 186 187/* 188 * Process debugging system call. 189 */ |
190#ifndef _SYS_SYSPROTO_H_ |
|
189struct ptrace_args { 190 int req; 191 pid_t pid; 192 caddr_t addr; 193 int data; 194}; | 191struct ptrace_args { 192 int req; 193 pid_t pid; 194 caddr_t addr; 195 int data; 196}; |
197#endif |
|
195 196int 197ptrace(curp, uap, retval) 198 struct proc *curp; 199 struct ptrace_args *uap; 200 int *retval; 201{ 202 struct proc *p; --- 156 unchanged lines hidden --- | 198 199int 200ptrace(curp, uap, retval) 201 struct proc *curp; 202 struct ptrace_args *uap; 203 int *retval; 204{ 205 struct proc *p; --- 156 unchanged lines hidden --- |