diff options
Diffstat (limited to 'sys/compat/sunos32/sunos32_misc.c')
| -rw-r--r-- | sys/compat/sunos32/sunos32_misc.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/compat/sunos32/sunos32_misc.c b/sys/compat/sunos32/sunos32_misc.c index ea36fcc2714..d86b652367f 100644 --- a/sys/compat/sunos32/sunos32_misc.c +++ b/sys/compat/sunos32/sunos32_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: sunos32_misc.c,v 1.62 2008/08/07 20:15:32 plunky Exp $ */ +/* $NetBSD: sunos32_misc.c,v 1.63 2008/11/12 12:36:11 ad Exp $ */ /* from :NetBSD: sunos_misc.c,v 1.107 2000/12/01 19:25:10 jdolecek Exp */ /* @@ -77,7 +77,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.62 2008/08/07 20:15:32 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.63 2008/11/12 12:36:11 ad Exp $"); #define COMPAT_SUNOS 1 @@ -85,7 +85,6 @@ __KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.62 2008/08/07 20:15:32 plunky Exp #include "opt_nfsserver.h" #include "opt_compat_43.h" #include "opt_compat_netbsd.h" -#include "opt_ptrace.h" #include "fs_nfs.h" #endif @@ -1278,7 +1277,6 @@ sunos32_sys_setrlimit(struct lwp *l, const struct sunos32_sys_setrlimit_args *ua return compat_43_netbsd32_osetrlimit(l, &ua_43, retval); } -#if defined(PTRACE) || defined(_LKM) /* for the m68k machines */ #ifndef PT_GETFPREGS #define PT_GETFPREGS -1 @@ -1294,12 +1292,10 @@ static const int sreq2breq[] = { PT_GETREGS, PT_SETREGS, PT_GETFPREGS, PT_SETFPREGS }; static const int nreqs = sizeof(sreq2breq) / sizeof(sreq2breq[0]); -#endif int sunos32_sys_ptrace(struct lwp *l, const struct sunos32_sys_ptrace_args *uap, register_t *retval) { -#if defined(PTRACE) || defined(_LKM) /* { syscallarg(int) req; syscallarg(pid_t) pid; @@ -1310,11 +1306,9 @@ sunos32_sys_ptrace(struct lwp *l, const struct sunos32_sys_ptrace_args *uap, reg struct netbsd32_ptrace_args pa; int req; -#ifdef _LKM #define sys_ptrace sysent[SYS_ptrace].sy_call if (sys_ptrace == sys_nosys) return ENOSYS; -#endif req = SCARG(uap, req); if ((unsigned int)req >= nreqs) @@ -1330,9 +1324,6 @@ sunos32_sys_ptrace(struct lwp *l, const struct sunos32_sys_ptrace_args *uap, reg SCARG(&pa, data) = SCARG(uap, data); return netbsd32_ptrace(l, &pa, retval); -#else - return (ENOSYS); -#endif /* PTRACE || _LKM */ } /* |
