procfs_mem.c (95210) | procfs_mem.c (96886) |
---|---|
1/* 2 * Copyright (c) 1993 Jan-Simon Pendry 3 * Copyright (c) 1993 Sean Eric Fagan 4 * Copyright (c) 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Jan-Simon Pendry and Sean Eric Fagan. --- 23 unchanged lines hidden (view full) --- 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)procfs_mem.c 8.5 (Berkeley) 6/15/94 39 * | 1/* 2 * Copyright (c) 1993 Jan-Simon Pendry 3 * Copyright (c) 1993 Sean Eric Fagan 4 * Copyright (c) 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Jan-Simon Pendry and Sean Eric Fagan. --- 23 unchanged lines hidden (view full) --- 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)procfs_mem.c 8.5 (Berkeley) 6/15/94 39 * |
40 * $FreeBSD: head/sys/fs/procfs/procfs_mem.c 95210 2002-04-21 15:35:54Z bde $ | 40 * $FreeBSD: head/sys/fs/procfs/procfs_mem.c 96886 2002-05-19 00:14:50Z jhb $ |
41 */ 42 43#include <sys/param.h> 44#include <sys/lock.h> 45#include <sys/mutex.h> 46#include <sys/proc.h> 47#include <sys/ptrace.h> 48#include <sys/systm.h> --- 12 unchanged lines hidden (view full) --- 61procfs_doprocmem(PFS_FILL_ARGS) 62{ 63 int error; 64 65 if (uio->uio_resid == 0) 66 return (0); 67 68 PROC_LOCK(p); | 41 */ 42 43#include <sys/param.h> 44#include <sys/lock.h> 45#include <sys/mutex.h> 46#include <sys/proc.h> 47#include <sys/ptrace.h> 48#include <sys/systm.h> --- 12 unchanged lines hidden (view full) --- 61procfs_doprocmem(PFS_FILL_ARGS) 62{ 63 int error; 64 65 if (uio->uio_resid == 0) 66 return (0); 67 68 PROC_LOCK(p); |
69 error = p_candebug(td->td_proc, p); | 69 error = p_candebug(td, p); |
70 PROC_UNLOCK(p); 71 if (error == 0) 72 error = proc_rwmem(p, uio); 73 74 return (error); 75} | 70 PROC_UNLOCK(p); 71 if (error == 0) 72 error = proc_rwmem(p, uio); 73 74 return (error); 75} |