diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 2001-04-09 07:14:24 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 2001-04-09 07:14:24 +0000 |
commit | 9b1fe5fc1ac937b51295538f4b165a1d9fc9ac95 (patch) | |
tree | c6461a4d96f7af1694080600ef5db641bf8ac344 /sys/kern/sys_process.c | |
parent | 6f2fdb9ba0804df4f105421d41cd208c8b2f1807 (diff) |
Add emulation of Linux features to procfs; mostly from NetBSD. ok deraadt@
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r-- | sys/kern/sys_process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 696371e28f4..bbe5b104ca3 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_process.c,v 1.9 2000/11/10 15:33:10 provos Exp $ */ +/* $OpenBSD: sys_process.c,v 1.10 2001/04/09 07:14:18 tholo Exp $ */ /* $NetBSD: sys_process.c,v 1.55 1996/05/15 06:17:47 tls Exp $ */ /*- @@ -338,7 +338,7 @@ sys_ptrace(p, v, retval) /* write = 0 done above. */ #endif #if defined(PT_SETREGS) || defined(PT_GETREGS) - if (!procfs_validregs(t)) + if (!procfs_validregs(t, NULL)) return (EINVAL); else { iov.iov_base = SCARG(uap, addr); @@ -363,7 +363,7 @@ sys_ptrace(p, v, retval) /* write = 0 done above. */ #endif #if defined(PT_SETFPREGS) || defined(PT_GETFPREGS) - if (!procfs_validfpregs(t)) + if (!procfs_validfpregs(t, NULL)) return (EINVAL); else { iov.iov_base = SCARG(uap, addr); |