Update to deal with options PTRACE
This commit is contained in:
parent
d98d4f0f0f
commit
ad6aa2b08e
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: syscalls.master,v 1.53 2006/06/10 21:15:33 christos Exp $
|
||||
$NetBSD: syscalls.master,v 1.54 2006/08/30 11:14:39 matt Exp $
|
||||
;
|
||||
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
|
||||
|
||||
|
@ -61,6 +61,7 @@
|
|||
#include "opt_sysv.h"
|
||||
#include "opt_compat_43.h"
|
||||
#include "opt_compat_osf1.h"
|
||||
#include "opt_ptrace.h"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -116,8 +117,12 @@
|
|||
23 NOARGS { int sys_setuid(uid_t uid); }
|
||||
24 NOARGS { uid_t sys_getuid_with_euid(void); }
|
||||
25 UNIMPL
|
||||
#ifdef PTRACE
|
||||
26 STD { int linux_sys_ptrace(long request, long pid, \
|
||||
long addr, long data); }
|
||||
#else
|
||||
26 EXCL ptrace
|
||||
#endif
|
||||
27 UNIMPL
|
||||
28 UNIMPL
|
||||
29 UNIMPL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: syscalls.master,v 1.13 2006/08/24 16:36:59 manu Exp $
|
||||
$NetBSD: syscalls.master,v 1.14 2006/08/30 11:14:39 matt Exp $
|
||||
|
||||
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
|||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_sysv.h"
|
||||
#include "opt_compat_43.h"
|
||||
#include "opt_ptrace.h"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -246,8 +247,12 @@
|
|||
98 NOARGS { int sys_getrusage(int who, struct rusage *rusage); }
|
||||
99 STD { int linux_sys_sysinfo(struct linux_sysinfo *arg); }
|
||||
100 STD { int linux_sys_times(struct times *tms); }
|
||||
#ifdef PTRACE
|
||||
101 STD { int linux_sys_ptrace(long request, long pid, \
|
||||
long addr, long data); }
|
||||
#else
|
||||
101 EXCL ptrace
|
||||
#endif
|
||||
102 NOARGS { uid_t sys_getuid(void); }
|
||||
103 UNIMPL syslog
|
||||
104 NOARGS { gid_t sys_getgid(void); }
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# $NetBSD: files.linux_arm,v 1.3 2002/03/31 22:40:16 christos Exp $
|
||||
# $NetBSD: files.linux_arm,v 1.4 2006/08/30 11:14:39 matt Exp $
|
||||
#
|
||||
# Config file description for ARM-dependent Linux compat code.
|
||||
|
||||
file compat/linux/arch/arm/linux_machdep.c compat_linux
|
||||
file compat/linux/arch/arm/linux_ptrace.c compat_linux
|
||||
file compat/linux/arch/arm/linux_ptrace.c compat_linux & ptrace
|
||||
file compat/linux/arch/arm/linux_syscalls.c compat_linux
|
||||
file compat/linux/arch/arm/linux_sysent.c compat_linux
|
||||
file compat/linux/arch/arm/linux_sys_machdep.c compat_linux
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_ptrace.c,v 1.4 2006/03/06 23:19:50 thorpej Exp $ */
|
||||
/* $NetBSD: linux_ptrace.c,v 1.5 2006/08/30 11:14:39 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -38,7 +38,8 @@
|
|||
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.4 2006/03/06 23:19:50 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.5 2006/08/30 11:14:39 matt Exp $");
|
||||
#include "opt_ptrace.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/malloc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: syscalls.master,v 1.24 2006/06/10 21:15:33 christos Exp $
|
||||
$NetBSD: syscalls.master,v 1.25 2006/08/30 11:14:39 matt Exp $
|
||||
|
||||
; Derived from sys/compat/linux/arch/*/syscalls.master
|
||||
; and from Linux 2.4.12 arch/arm/kernel/calls.S
|
||||
|
@ -36,6 +36,7 @@
|
|||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_43.h"
|
||||
#include "opt_ptrace.h"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -89,8 +90,12 @@
|
|||
23 NOARGS { int sys_setuid(uid_t uid); }
|
||||
24 NOARGS { uid_t sys_getuid(void); }
|
||||
25 STD { int linux_sys_stime(linux_time_t *t); }
|
||||
#ifdef PTRACE
|
||||
26 STD { int linux_sys_ptrace(int request, int pid, \
|
||||
int addr, int data); }
|
||||
#else
|
||||
26 EXCL ptrace
|
||||
#endif
|
||||
27 STD { int linux_sys_alarm(unsigned int secs); }
|
||||
28 OBSOL ofstat
|
||||
29 STD { int linux_sys_pause(void); }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: files.linux_i386,v 1.7 2005/12/11 12:20:14 christos Exp $
|
||||
# $NetBSD: files.linux_i386,v 1.8 2006/08/30 11:14:39 matt Exp $
|
||||
#
|
||||
# Config file description for i386-dependent Linux compat code.
|
||||
|
||||
|
@ -6,5 +6,5 @@ file compat/linux/arch/i386/linux_machdep.c compat_linux
|
|||
file compat/linux/arch/i386/linux_syscalls.c compat_linux
|
||||
file compat/linux/arch/i386/linux_sysent.c compat_linux
|
||||
file compat/linux/arch/i386/linux_commons.c compat_linux
|
||||
file compat/linux/arch/i386/linux_ptrace.c compat_linux
|
||||
file compat/linux/arch/i386/linux_ptrace.c compat_linux & ptrace
|
||||
file compat/linux/arch/i386/linux_exec_machdep.c compat_linux
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_ptrace.c,v 1.13 2005/12/11 12:20:14 christos Exp $ */
|
||||
/* $NetBSD: linux_ptrace.c,v 1.14 2006/08/30 11:14:39 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,9 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.13 2005/12/11 12:20:14 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.14 2006/08/30 11:14:39 matt Exp $");
|
||||
|
||||
#include "opt_ptrace.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/malloc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: syscalls.master,v 1.78 2006/06/10 21:15:33 christos Exp $
|
||||
$NetBSD: syscalls.master,v 1.79 2006/08/30 11:14:39 matt Exp $
|
||||
|
||||
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
|||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_43.h"
|
||||
#include "opt_ptrace.h"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -89,8 +90,12 @@
|
|||
23 NOARGS linux_setuid16 { int sys_setuid(uid_t uid); }
|
||||
24 NOARGS linux_getuid16 { uid_t sys_getuid(void); }
|
||||
25 STD { int linux_sys_stime(linux_time_t *t); }
|
||||
#ifdef PTRACE
|
||||
26 STD { int linux_sys_ptrace(int request, int pid, \
|
||||
int addr, int data); }
|
||||
#else
|
||||
26 EXCL ptrace
|
||||
#endif
|
||||
27 STD { int linux_sys_alarm(unsigned int secs); }
|
||||
28 OBSOL ofstat
|
||||
29 STD { int linux_sys_pause(void); }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: syscalls.master,v 1.50 2006/06/13 22:23:03 he Exp $
|
||||
$NetBSD: syscalls.master,v 1.51 2006/08/30 11:14:39 matt Exp $
|
||||
|
||||
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
|||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_compat_43.h"
|
||||
#include "opt_ptrace.h"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -93,8 +94,12 @@
|
|||
23 NOARGS linux_setuid16 { int sys_setuid(uid_t uid); }
|
||||
24 NOARGS linux_getuid16 { uid_t sys_getuid(void); }
|
||||
25 STD { int linux_sys_stime(linux_time_t *t); }
|
||||
#ifdef PTRACE
|
||||
26 STD { int linux_sys_ptrace(int request, int pid, \
|
||||
int addr, int data); }
|
||||
#else
|
||||
26 EXCL ptrace
|
||||
#endf
|
||||
27 STD { int linux_sys_alarm(unsigned int secs); }
|
||||
28 OBSOL ofstat
|
||||
29 STD { int linux_sys_pause(void); }
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# $NetBSD: files.linux_mips,v 1.3 2002/03/31 22:40:18 christos Exp $
|
||||
# $NetBSD: files.linux_mips,v 1.4 2006/08/30 11:14:39 matt Exp $
|
||||
#
|
||||
# Config file description for mips-dependent Linux compat code.
|
||||
|
||||
file compat/linux/arch/mips/linux_machdep.c compat_linux
|
||||
file compat/linux/arch/mips/linux_ptrace.c compat_linux
|
||||
file compat/linux/arch/mips/linux_ptrace.c compat_linux & ptrace
|
||||
file compat/linux/arch/mips/linux_syscalls.c compat_linux
|
||||
file compat/linux/arch/mips/linux_sysent.c compat_linux
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_ptrace.c,v 1.4 2003/01/18 08:02:49 thorpej Exp $ */
|
||||
/* $NetBSD: linux_ptrace.c,v 1.5 2006/08/30 11:14:39 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,8 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.4 2003/01/18 08:02:49 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.5 2006/08/30 11:14:39 matt Exp $");
|
||||
#include "opt_ptrace.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/malloc.h>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# $NetBSD: files.linux_powerpc,v 1.6 2005/12/11 12:20:16 christos Exp $
|
||||
# $NetBSD: files.linux_powerpc,v 1.7 2006/08/30 11:14:39 matt Exp $
|
||||
#
|
||||
# Config file description for powerpc-dependent Linux compat code.
|
||||
|
||||
file compat/linux/arch/powerpc/linux_machdep.c compat_linux
|
||||
file compat/linux/arch/powerpc/linux_ptrace.c compat_linux
|
||||
file compat/linux/arch/powerpc/linux_ptrace.c compat_linux & ptrace
|
||||
file compat/linux/arch/powerpc/linux_syscalls.c compat_linux
|
||||
file compat/linux/arch/powerpc/linux_sysent.c compat_linux
|
||||
file compat/linux/arch/powerpc/linux_exec_powerpc.c compat_linux
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_ptrace.c,v 1.12 2005/12/11 12:20:16 christos Exp $ */
|
||||
/* $NetBSD: linux_ptrace.c,v 1.13 2006/08/30 11:14:39 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,9 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.12 2005/12/11 12:20:16 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.13 2006/08/30 11:14:39 matt Exp $");
|
||||
|
||||
#include "opt_ptrace.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/malloc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: syscalls.master,v 1.27 2006/06/10 21:15:33 christos Exp $
|
||||
$NetBSD: syscalls.master,v 1.28 2006/08/30 11:14:39 matt Exp $
|
||||
|
||||
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
|
||||
|
||||
|
@ -65,6 +65,7 @@
|
|||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_compat_43.h"
|
||||
#include "opt_ptrace.h"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -118,8 +119,12 @@
|
|||
23 NOARGS { int sys_setuid(uid_t uid); }
|
||||
24 NOARGS { uid_t sys_getuid(void); }
|
||||
25 STD { int linux_sys_stime(linux_time_t *t); }
|
||||
#ifdef PTRACE
|
||||
26 STD { int linux_sys_ptrace(int request, int pid, \
|
||||
int addr, int data); }
|
||||
#else
|
||||
26 EXCL ptrace
|
||||
#endif
|
||||
27 STD { int linux_sys_alarm(unsigned int secs); }
|
||||
28 OBSOL ofstat
|
||||
29 STD { int linux_sys_pause(void); }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_misc.c,v 1.158 2006/07/23 22:06:09 ad Exp $ */
|
||||
/* $NetBSD: linux_misc.c,v 1.159 2006/08/30 11:14:39 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -64,7 +64,9 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.158 2006/07/23 22:06:09 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.159 2006/08/30 11:14:39 matt Exp $");
|
||||
|
||||
#include "opt_ptrace.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -1431,6 +1433,7 @@ linux_sys_getresuid(l, v, retval)
|
|||
return (copyout(&uid, SCARG(uap, suid), sizeof(uid_t)));
|
||||
}
|
||||
|
||||
#ifdef PTRACE
|
||||
int
|
||||
linux_sys_ptrace(l, v, retval)
|
||||
struct lwp *l;
|
||||
|
@ -1490,6 +1493,7 @@ linux_sys_ptrace(l, v, retval)
|
|||
|
||||
return LINUX_SYS_PTRACE_ARCH(l, uap, retval);
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
linux_sys_reboot(struct lwp *l, void *v, register_t *retval)
|
||||
|
|
Loading…
Reference in New Issue