Deleted Added
full compact
procfs_regs.c (94622) procfs_regs.c (96886)
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 *

--- 24 unchanged lines hidden (view full) ---

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_regs.c 8.4 (Berkeley) 6/15/94
38 *
39 * From:
40 * $Id: procfs_regs.c,v 3.2 1993/12/15 09:40:17 jsp Exp $
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 *

--- 24 unchanged lines hidden (view full) ---

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_regs.c 8.4 (Berkeley) 6/15/94
38 *
39 * From:
40 * $Id: procfs_regs.c,v 3.2 1993/12/15 09:40:17 jsp Exp $
41 * $FreeBSD: head/sys/fs/procfs/procfs_regs.c 94622 2002-04-13 23:14:08Z jhb $
41 * $FreeBSD: head/sys/fs/procfs/procfs_regs.c 96886 2002-05-19 00:14:50Z jhb $
42 */
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/lock.h>
47#include <sys/mutex.h>
48#include <sys/proc.h>
49#include <sys/ptrace.h>

--- 8 unchanged lines hidden (view full) ---

58procfs_doprocregs(PFS_FILL_ARGS)
59{
60 int error;
61 struct reg r;
62 char *kv;
63 int kl;
64
65 PROC_LOCK(p);
42 */
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/lock.h>
47#include <sys/mutex.h>
48#include <sys/proc.h>
49#include <sys/ptrace.h>

--- 8 unchanged lines hidden (view full) ---

58procfs_doprocregs(PFS_FILL_ARGS)
59{
60 int error;
61 struct reg r;
62 char *kv;
63 int kl;
64
65 PROC_LOCK(p);
66 if (p_candebug(td->td_proc, p)) {
66 if (p_candebug(td, p)) {
67 PROC_UNLOCK(p);
68 return (EPERM);
69 }
70 kl = sizeof(r);
71 kv = (char *) &r;
72
73 kv += uio->uio_offset;
74 kl -= uio->uio_offset;

--- 26 unchanged lines hidden ---
67 PROC_UNLOCK(p);
68 return (EPERM);
69 }
70 kl = sizeof(r);
71 kv = (char *) &r;
72
73 kv += uio->uio_offset;
74 kl -= uio->uio_offset;

--- 26 unchanged lines hidden ---