From c9a5d7edc1dc9363a87ebaa610bbdf358c0beadd Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 23 Jun 2003 21:26:30 +0000 Subject: [PATCH] Regen. --- sys/compat/linux/arch/arm/linux_syscall.h | 7 +++++-- sys/compat/linux/arch/arm/linux_syscallargs.h | 5 +++-- sys/compat/linux/arch/arm/linux_syscalls.c | 8 ++++---- sys/compat/linux/arch/arm/linux_sysent.c | 10 +++++----- sys/compat/linux/arch/i386/linux_syscall.h | 8 ++++---- sys/compat/linux/arch/i386/linux_syscallargs.h | 6 +++--- sys/compat/linux/arch/i386/linux_syscalls.c | 8 ++++---- sys/compat/linux/arch/i386/linux_sysent.c | 10 +++++----- sys/compat/linux/arch/m68k/linux_syscall.h | 7 +++++-- sys/compat/linux/arch/m68k/linux_syscallargs.h | 5 +++-- sys/compat/linux/arch/m68k/linux_syscalls.c | 8 ++++---- sys/compat/linux/arch/m68k/linux_sysent.c | 10 +++++----- sys/compat/linux/arch/mips/linux_syscall.h | 7 +++++-- sys/compat/linux/arch/mips/linux_syscallargs.h | 5 +++-- sys/compat/linux/arch/mips/linux_syscalls.c | 8 ++++---- sys/compat/linux/arch/mips/linux_sysent.c | 10 +++++----- sys/compat/linux/arch/powerpc/linux_syscall.h | 7 +++++-- sys/compat/linux/arch/powerpc/linux_syscallargs.h | 5 +++-- sys/compat/linux/arch/powerpc/linux_syscalls.c | 8 ++++---- sys/compat/linux/arch/powerpc/linux_sysent.c | 10 +++++----- 20 files changed, 84 insertions(+), 68 deletions(-) diff --git a/sys/compat/linux/arch/arm/linux_syscall.h b/sys/compat/linux/arch/arm/linux_syscall.h index 44ea920ba0af..befb3635385b 100644 --- a/sys/compat/linux/arch/arm/linux_syscall.h +++ b/sys/compat/linux/arch/arm/linux_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.13 2003/01/18 23:34:34 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.14 2003/06/23 21:26:30 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.12 2003/01/18 08:02:47 thorpej Exp + * created from NetBSD: syscalls.master,v 1.13 2003/06/23 21:25:56 christos Exp */ /* syscall: "nosys" ret: "int" args: */ @@ -469,6 +469,9 @@ /* syscall: "ugetrlimit" ret: "int" args: "int" "struct rlimit *" */ #define LINUX_SYS_ugetrlimit 191 +/* syscall: "mmap2" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */ +#define LINUX_SYS_mmap2 192 + /* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */ #define LINUX_SYS_truncate64 193 diff --git a/sys/compat/linux/arch/arm/linux_syscallargs.h b/sys/compat/linux/arch/arm/linux_syscallargs.h index 3037430b097d..09073b6f722f 100644 --- a/sys/compat/linux/arch/arm/linux_syscallargs.h +++ b/sys/compat/linux/arch/arm/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.13 2003/01/18 23:34:34 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.14 2003/06/23 21:26:31 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.12 2003/01/18 08:02:47 thorpej Exp + * created from NetBSD: syscalls.master,v 1.13 2003/06/23 21:25:56 christos Exp */ #ifndef _LINUX_SYS__SYSCALLARGS_H_ @@ -716,6 +716,7 @@ int sys___getcwd(struct lwp *, void *, register_t *); int linux_sys_sigaltstack(struct lwp *, void *, register_t *); int sys___vfork14(struct lwp *, void *, register_t *); int linux_sys_ugetrlimit(struct lwp *, void *, register_t *); +int linux_sys_mmap2(struct lwp *, void *, register_t *); int linux_sys_truncate64(struct lwp *, void *, register_t *); int sys_ftruncate(struct lwp *, void *, register_t *); int linux_sys_stat64(struct lwp *, void *, register_t *); diff --git a/sys/compat/linux/arch/arm/linux_syscalls.c b/sys/compat/linux/arch/arm/linux_syscalls.c index bb6ab57ad29d..094bcfb6b1c2 100644 --- a/sys/compat/linux/arch/arm/linux_syscalls.c +++ b/sys/compat/linux/arch/arm/linux_syscalls.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.13 2003/01/18 23:34:34 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.14 2003/06/23 21:26:33 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.12 2003/01/18 08:02:47 thorpej Exp + * created from NetBSD: syscalls.master,v 1.13 2003/06/23 21:25:56 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.13 2003/01/18 23:34:34 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.14 2003/06/23 21:26:33 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -225,7 +225,7 @@ const char *const linux_syscallnames[] = { "#189 (unimplemented putpmsg)", /* 189 = unimplemented putpmsg */ "vfork", /* 190 = vfork */ "ugetrlimit", /* 191 = ugetrlimit */ - "#192 (unimplemented mmap2)", /* 192 = unimplemented mmap2 */ + "mmap2", /* 192 = mmap2 */ "truncate64", /* 193 = truncate64 */ "ftruncate64", /* 194 = ftruncate64 */ "stat64", /* 195 = stat64 */ diff --git a/sys/compat/linux/arch/arm/linux_sysent.c b/sys/compat/linux/arch/arm/linux_sysent.c index f12d0c0cbd49..ae767be2799f 100644 --- a/sys/compat/linux/arch/arm/linux_sysent.c +++ b/sys/compat/linux/arch/arm/linux_sysent.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.13 2003/01/18 23:34:34 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.14 2003/06/23 21:26:33 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.12 2003/01/18 08:02:47 thorpej Exp + * created from NetBSD: syscalls.master,v 1.13 2003/06/23 21:25:56 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.13 2003/01/18 23:34:34 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.14 2003/06/23 21:26:33 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_43.h" @@ -418,8 +418,8 @@ struct sysent linux_sysent[] = { sys___vfork14 }, /* 190 = vfork */ { 2, s(struct linux_sys_ugetrlimit_args), 0, linux_sys_ugetrlimit }, /* 191 = ugetrlimit */ - { 0, 0, 0, - linux_sys_nosys }, /* 192 = unimplemented mmap2 */ + { 6, s(struct linux_sys_mmap2_args), 0, + linux_sys_mmap2 }, /* 192 = mmap2 */ { 2, s(struct linux_sys_truncate64_args), 0, linux_sys_truncate64 }, /* 193 = truncate64 */ { 2, s(struct sys_ftruncate_args), 0, diff --git a/sys/compat/linux/arch/i386/linux_syscall.h b/sys/compat/linux/arch/i386/linux_syscall.h index 4285c405edb7..69511b60c61a 100644 --- a/sys/compat/linux/arch/i386/linux_syscall.h +++ b/sys/compat/linux/arch/i386/linux_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.46 2003/01/18 23:36:09 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.47 2003/06/23 21:26:35 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2003/01/18 08:02:48 thorpej Exp + * created from NetBSD: syscalls.master,v 1.65 2003/06/23 21:25:56 christos Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -482,8 +482,8 @@ /* syscall: "ugetrlimit" ret: "int" args: "int" "struct orlimit *" */ #define LINUX_SYS_ugetrlimit 191 -/* syscall: "mmap" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */ -#define LINUX_SYS_mmap 192 +/* syscall: "mmap2" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */ +#define LINUX_SYS_mmap2 192 /* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */ #define LINUX_SYS_truncate64 193 diff --git a/sys/compat/linux/arch/i386/linux_syscallargs.h b/sys/compat/linux/arch/i386/linux_syscallargs.h index b12fa7d44e00..57c9ab687868 100644 --- a/sys/compat/linux/arch/i386/linux_syscallargs.h +++ b/sys/compat/linux/arch/i386/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.46 2003/01/18 23:36:10 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.47 2003/06/23 21:26:35 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2003/01/18 08:02:48 thorpej Exp + * created from NetBSD: syscalls.master,v 1.65 2003/06/23 21:25:56 christos Exp */ #ifndef _LINUX_SYS__SYSCALLARGS_H_ @@ -769,7 +769,7 @@ int sys___getcwd(struct lwp *, void *, register_t *); int linux_sys_sigaltstack(struct lwp *, void *, register_t *); int sys___vfork14(struct lwp *, void *, register_t *); int linux_sys_ugetrlimit(struct lwp *, void *, register_t *); -int linux_sys_mmap(struct lwp *, void *, register_t *); +int linux_sys_mmap2(struct lwp *, void *, register_t *); int linux_sys_truncate64(struct lwp *, void *, register_t *); int sys_ftruncate(struct lwp *, void *, register_t *); int linux_sys_stat64(struct lwp *, void *, register_t *); diff --git a/sys/compat/linux/arch/i386/linux_syscalls.c b/sys/compat/linux/arch/i386/linux_syscalls.c index 65dc65824661..c5d5402eec4e 100644 --- a/sys/compat/linux/arch/i386/linux_syscalls.c +++ b/sys/compat/linux/arch/i386/linux_syscalls.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.47 2003/01/18 23:36:10 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.48 2003/06/23 21:26:36 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2003/01/18 08:02:48 thorpej Exp + * created from NetBSD: syscalls.master,v 1.65 2003/06/23 21:25:56 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.47 2003/01/18 23:36:10 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.48 2003/06/23 21:26:36 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -222,7 +222,7 @@ const char *const linux_syscallnames[] = { "#189 (unimplemented putpmsg)", /* 189 = unimplemented putpmsg */ "__vfork14", /* 190 = __vfork14 */ "ugetrlimit", /* 191 = ugetrlimit */ - "mmap", /* 192 = mmap */ + "mmap2", /* 192 = mmap2 */ "truncate64", /* 193 = truncate64 */ "linux_ftruncate64", /* 194 = linux_ftruncate64 */ "stat64", /* 195 = stat64 */ diff --git a/sys/compat/linux/arch/i386/linux_sysent.c b/sys/compat/linux/arch/i386/linux_sysent.c index d66c60b8a75f..1fb33195d7d8 100644 --- a/sys/compat/linux/arch/i386/linux_sysent.c +++ b/sys/compat/linux/arch/i386/linux_sysent.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.46 2003/01/18 23:36:10 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.47 2003/06/23 21:26:37 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2003/01/18 08:02:48 thorpej Exp + * created from NetBSD: syscalls.master,v 1.65 2003/06/23 21:25:56 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.46 2003/01/18 23:36:10 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.47 2003/06/23 21:26:37 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_43.h" @@ -414,8 +414,8 @@ struct sysent linux_sysent[] = { sys___vfork14 }, /* 190 = __vfork14 */ { 2, s(struct linux_sys_ugetrlimit_args), 0, linux_sys_ugetrlimit }, /* 191 = ugetrlimit */ - { 6, s(struct linux_sys_mmap_args), 0, - linux_sys_mmap }, /* 192 = mmap */ + { 6, s(struct linux_sys_mmap2_args), 0, + linux_sys_mmap2 }, /* 192 = mmap2 */ { 2, s(struct linux_sys_truncate64_args), 0, linux_sys_truncate64 }, /* 193 = truncate64 */ { 2, s(struct sys_ftruncate_args), 0, diff --git a/sys/compat/linux/arch/m68k/linux_syscall.h b/sys/compat/linux/arch/m68k/linux_syscall.h index 4f1c9bf0afce..7e537864b609 100644 --- a/sys/compat/linux/arch/m68k/linux_syscall.h +++ b/sys/compat/linux/arch/m68k/linux_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.45 2003/01/18 23:36:48 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.46 2003/06/23 21:26:38 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.40 2003/01/18 08:02:49 thorpej Exp + * created from NetBSD: syscalls.master,v 1.41 2003/06/23 21:25:57 christos Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -468,6 +468,9 @@ /* syscall: "ugetrlimit" ret: "int" args: "int" "struct orlimit *" */ #define LINUX_SYS_ugetrlimit 191 +/* syscall: "mmap2" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */ +#define LINUX_SYS_mmap2 192 + /* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */ #define LINUX_SYS_truncate64 193 diff --git a/sys/compat/linux/arch/m68k/linux_syscallargs.h b/sys/compat/linux/arch/m68k/linux_syscallargs.h index 9764e412f1fb..721489cf388f 100644 --- a/sys/compat/linux/arch/m68k/linux_syscallargs.h +++ b/sys/compat/linux/arch/m68k/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.44 2003/01/18 23:36:48 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.45 2003/06/23 21:26:38 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.40 2003/01/18 08:02:49 thorpej Exp + * created from NetBSD: syscalls.master,v 1.41 2003/06/23 21:25:57 christos Exp */ #ifndef _LINUX_SYS__SYSCALLARGS_H_ @@ -741,6 +741,7 @@ int sys___getcwd(struct lwp *, void *, register_t *); int linux_sys_sigaltstack(struct lwp *, void *, register_t *); int sys___vfork14(struct lwp *, void *, register_t *); int linux_sys_ugetrlimit(struct lwp *, void *, register_t *); +int linux_sys_mmap2(struct lwp *, void *, register_t *); int linux_sys_truncate64(struct lwp *, void *, register_t *); int sys_ftruncate(struct lwp *, void *, register_t *); int linux_sys_stat64(struct lwp *, void *, register_t *); diff --git a/sys/compat/linux/arch/m68k/linux_syscalls.c b/sys/compat/linux/arch/m68k/linux_syscalls.c index 361bbc5c4555..977f6c7283c1 100644 --- a/sys/compat/linux/arch/m68k/linux_syscalls.c +++ b/sys/compat/linux/arch/m68k/linux_syscalls.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.45 2003/01/18 23:36:49 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.46 2003/06/23 21:26:39 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.40 2003/01/18 08:02:49 thorpej Exp + * created from NetBSD: syscalls.master,v 1.41 2003/06/23 21:25:57 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.45 2003/01/18 23:36:49 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.46 2003/06/23 21:26:39 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -238,7 +238,7 @@ const char *const linux_syscallnames[] = { "#189 (unimplemented putpmsg)", /* 189 = unimplemented putpmsg */ "__vfork14", /* 190 = __vfork14 */ "ugetrlimit", /* 191 = ugetrlimit */ - "#192 (unimplemented mmap2)", /* 192 = unimplemented mmap2 */ + "mmap2", /* 192 = mmap2 */ "truncate64", /* 193 = truncate64 */ "ftruncate64", /* 194 = ftruncate64 */ "stat64", /* 195 = stat64 */ diff --git a/sys/compat/linux/arch/m68k/linux_sysent.c b/sys/compat/linux/arch/m68k/linux_sysent.c index fb95494d7941..b78c9cee7df9 100644 --- a/sys/compat/linux/arch/m68k/linux_sysent.c +++ b/sys/compat/linux/arch/m68k/linux_sysent.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.45 2003/01/18 23:36:49 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.46 2003/06/23 21:26:39 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.40 2003/01/18 08:02:49 thorpej Exp + * created from NetBSD: syscalls.master,v 1.41 2003/06/23 21:25:57 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.45 2003/01/18 23:36:49 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.46 2003/06/23 21:26:39 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -434,8 +434,8 @@ struct sysent linux_sysent[] = { sys___vfork14 }, /* 190 = __vfork14 */ { 2, s(struct linux_sys_ugetrlimit_args), 0, linux_sys_ugetrlimit }, /* 191 = ugetrlimit */ - { 0, 0, 0, - linux_sys_nosys }, /* 192 = unimplemented mmap2 */ + { 6, s(struct linux_sys_mmap2_args), 0, + linux_sys_mmap2 }, /* 192 = mmap2 */ { 2, s(struct linux_sys_truncate64_args), 0, linux_sys_truncate64 }, /* 193 = truncate64 */ { 2, s(struct sys_ftruncate_args), 0, diff --git a/sys/compat/linux/arch/mips/linux_syscall.h b/sys/compat/linux/arch/mips/linux_syscall.h index 76e8a22dedb2..5f57e1a0848d 100644 --- a/sys/compat/linux/arch/mips/linux_syscall.h +++ b/sys/compat/linux/arch/mips/linux_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.14 2003/01/18 23:37:09 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.15 2003/06/23 21:26:40 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.10 2003/01/18 08:02:49 thorpej Exp + * created from NetBSD: syscalls.master,v 1.11 2003/06/23 21:25:58 christos Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -506,6 +506,9 @@ /* syscall: "sigaltstack" ret: "int" args: "const struct linux_sigaltstack *" "struct linux_sigaltstack *" */ #define LINUX_SYS_sigaltstack 206 +/* syscall: "mmap2" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */ +#define LINUX_SYS_mmap2 210 + /* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */ #define LINUX_SYS_truncate64 211 diff --git a/sys/compat/linux/arch/mips/linux_syscallargs.h b/sys/compat/linux/arch/mips/linux_syscallargs.h index fe72e66082ed..32c88077e635 100644 --- a/sys/compat/linux/arch/mips/linux_syscallargs.h +++ b/sys/compat/linux/arch/mips/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.13 2003/01/18 23:37:10 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.14 2003/06/23 21:26:41 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.10 2003/01/18 08:02:49 thorpej Exp + * created from NetBSD: syscalls.master,v 1.11 2003/06/23 21:25:58 christos Exp */ #ifndef _LINUX_SYS__SYSCALLARGS_H_ @@ -711,6 +711,7 @@ int linux_sys_pwrite(struct lwp *, void *, register_t *); int linux_sys_chown(struct lwp *, void *, register_t *); int sys___getcwd(struct lwp *, void *, register_t *); int linux_sys_sigaltstack(struct lwp *, void *, register_t *); +int linux_sys_mmap2(struct lwp *, void *, register_t *); int linux_sys_truncate64(struct lwp *, void *, register_t *); int linux_sys_stat64(struct lwp *, void *, register_t *); int linux_sys_lstat64(struct lwp *, void *, register_t *); diff --git a/sys/compat/linux/arch/mips/linux_syscalls.c b/sys/compat/linux/arch/mips/linux_syscalls.c index 45ff20b3cf21..08537bcb4590 100644 --- a/sys/compat/linux/arch/mips/linux_syscalls.c +++ b/sys/compat/linux/arch/mips/linux_syscalls.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.13 2003/01/18 23:37:10 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.14 2003/06/23 21:26:41 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.10 2003/01/18 08:02:49 thorpej Exp + * created from NetBSD: syscalls.master,v 1.11 2003/06/23 21:25:58 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.13 2003/01/18 23:37:10 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.14 2003/06/23 21:26:41 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -242,7 +242,7 @@ const char *const linux_syscallnames[] = { "#207 (unimplemented sendfile)", /* 207 = unimplemented sendfile */ "#208 (unimplemented)", /* 208 = unimplemented */ "#209 (unimplemented)", /* 209 = unimplemented */ - "#210 (unimplemented mmap2)", /* 210 = unimplemented mmap2 */ + "mmap2", /* 210 = mmap2 */ "truncate64", /* 211 = truncate64 */ "#212 (unimplemented ftruncate64)", /* 212 = unimplemented ftruncate64 */ "stat64", /* 213 = stat64 */ diff --git a/sys/compat/linux/arch/mips/linux_sysent.c b/sys/compat/linux/arch/mips/linux_sysent.c index 0a926138f675..a87a40399b9d 100644 --- a/sys/compat/linux/arch/mips/linux_sysent.c +++ b/sys/compat/linux/arch/mips/linux_sysent.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.13 2003/01/18 23:37:10 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.14 2003/06/23 21:26:42 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.10 2003/01/18 08:02:49 thorpej Exp + * created from NetBSD: syscalls.master,v 1.11 2003/06/23 21:25:58 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.13 2003/01/18 23:37:10 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.14 2003/06/23 21:26:42 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -452,8 +452,8 @@ struct sysent linux_sysent[] = { linux_sys_nosys }, /* 208 = unimplemented */ { 0, 0, 0, linux_sys_nosys }, /* 209 = unimplemented */ - { 0, 0, 0, - linux_sys_nosys }, /* 210 = unimplemented mmap2 */ + { 6, s(struct linux_sys_mmap2_args), 0, + linux_sys_mmap2 }, /* 210 = mmap2 */ { 2, s(struct linux_sys_truncate64_args), 0, linux_sys_truncate64 }, /* 211 = truncate64 */ { 0, 0, 0, diff --git a/sys/compat/linux/arch/powerpc/linux_syscall.h b/sys/compat/linux/arch/powerpc/linux_syscall.h index 2488978fd7f5..d26e243d7763 100644 --- a/sys/compat/linux/arch/powerpc/linux_syscall.h +++ b/sys/compat/linux/arch/powerpc/linux_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.20 2003/01/18 23:37:35 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.21 2003/06/23 21:26:42 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.14 2003/01/18 08:02:50 thorpej Exp + * created from NetBSD: syscalls.master,v 1.15 2003/06/23 21:25:58 christos Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -474,6 +474,9 @@ /* syscall: "ugetrlimit" ret: "int" args: "int" "struct rlimit *" */ #define LINUX_SYS_ugetrlimit 190 +/* syscall: "mmap2" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */ +#define LINUX_SYS_mmap2 192 + /* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */ #define LINUX_SYS_truncate64 193 diff --git a/sys/compat/linux/arch/powerpc/linux_syscallargs.h b/sys/compat/linux/arch/powerpc/linux_syscallargs.h index 7b65a6cdfca6..f9437780de1f 100644 --- a/sys/compat/linux/arch/powerpc/linux_syscallargs.h +++ b/sys/compat/linux/arch/powerpc/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.19 2003/01/18 23:37:35 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.20 2003/06/23 21:26:43 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.14 2003/01/18 08:02:50 thorpej Exp + * created from NetBSD: syscalls.master,v 1.15 2003/06/23 21:25:58 christos Exp */ #ifndef _LINUX_SYS__SYSCALLARGS_H_ @@ -702,6 +702,7 @@ int sys___getcwd(struct lwp *, void *, register_t *); int linux_sys_sigaltstack(struct lwp *, void *, register_t *); int sys___vfork14(struct lwp *, void *, register_t *); int linux_sys_ugetrlimit(struct lwp *, void *, register_t *); +int linux_sys_mmap2(struct lwp *, void *, register_t *); int linux_sys_truncate64(struct lwp *, void *, register_t *); int sys_ftruncate(struct lwp *, void *, register_t *); int linux_sys_stat64(struct lwp *, void *, register_t *); diff --git a/sys/compat/linux/arch/powerpc/linux_syscalls.c b/sys/compat/linux/arch/powerpc/linux_syscalls.c index e7be7c3956f4..0d5435bc2d9e 100644 --- a/sys/compat/linux/arch/powerpc/linux_syscalls.c +++ b/sys/compat/linux/arch/powerpc/linux_syscalls.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.19 2003/01/18 23:37:36 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.20 2003/06/23 21:26:43 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.14 2003/01/18 08:02:50 thorpej Exp + * created from NetBSD: syscalls.master,v 1.15 2003/06/23 21:25:58 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.19 2003/01/18 23:37:36 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.20 2003/06/23 21:26:43 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -223,7 +223,7 @@ const char *const linux_syscallnames[] = { "__vfork14", /* 189 = __vfork14 */ "ugetrlimit", /* 190 = ugetrlimit */ "#191 (unimplemented / * unused * /)", /* 191 = unimplemented / * unused * / */ - "#192 (unimplemented mmap2)", /* 192 = unimplemented mmap2 */ + "mmap2", /* 192 = mmap2 */ "truncate64", /* 193 = truncate64 */ "linux_ftruncate64", /* 194 = linux_ftruncate64 */ "stat64", /* 195 = stat64 */ diff --git a/sys/compat/linux/arch/powerpc/linux_sysent.c b/sys/compat/linux/arch/powerpc/linux_sysent.c index 571a1ae80f12..c23b7c5e2ecc 100644 --- a/sys/compat/linux/arch/powerpc/linux_sysent.c +++ b/sys/compat/linux/arch/powerpc/linux_sysent.c @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.20 2003/01/18 23:37:36 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.21 2003/06/23 21:26:44 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.14 2003/01/18 08:02:50 thorpej Exp + * created from NetBSD: syscalls.master,v 1.15 2003/06/23 21:25:58 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.20 2003/01/18 23:37:36 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.21 2003/06/23 21:26:44 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -415,8 +415,8 @@ struct sysent linux_sysent[] = { linux_sys_ugetrlimit }, /* 190 = ugetrlimit */ { 0, 0, 0, linux_sys_nosys }, /* 191 = unimplemented / * unused * / */ - { 0, 0, 0, - linux_sys_nosys }, /* 192 = unimplemented mmap2 */ + { 6, s(struct linux_sys_mmap2_args), 0, + linux_sys_mmap2 }, /* 192 = mmap2 */ { 2, s(struct linux_sys_truncate64_args), 0, linux_sys_truncate64 }, /* 193 = truncate64 */ { 2, s(struct sys_ftruncate_args), 0,