Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat regen
details: https://anonhg.NetBSD.org/src/rev/58df4389a192
branches: trunk
changeset: 460915:58df4389a192
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Nov 09 23:45:07 2019 +0000
description:
regen
diffstat:
sys/compat/linux/arch/alpha/linux_syscall.h | 7 ++-
sys/compat/linux/arch/alpha/linux_syscallargs.h | 14 ++++++-
sys/compat/linux/arch/alpha/linux_syscalls.c | 10 ++--
sys/compat/linux/arch/alpha/linux_sysent.c | 12 +++--
sys/compat/linux/arch/amd64/linux_syscall.h | 7 ++-
sys/compat/linux/arch/amd64/linux_syscallargs.h | 14 ++++++-
sys/compat/linux/arch/amd64/linux_syscalls.c | 10 ++--
sys/compat/linux/arch/amd64/linux_sysent.c | 12 +++--
sys/compat/linux/arch/amd64/linux_systrace_args.c | 36 ++++++++++++++++++-
sys/compat/linux/arch/arm/linux_syscall.h | 7 ++-
sys/compat/linux/arch/arm/linux_syscallargs.h | 14 ++++++-
sys/compat/linux/arch/arm/linux_syscalls.c | 10 ++--
sys/compat/linux/arch/arm/linux_sysent.c | 12 +++--
sys/compat/linux/arch/arm/linux_systrace_args.c | 36 ++++++++++++++++++-
sys/compat/linux/arch/i386/linux_syscall.h | 7 ++-
sys/compat/linux/arch/i386/linux_syscallargs.h | 14 ++++++-
sys/compat/linux/arch/i386/linux_syscalls.c | 10 ++--
sys/compat/linux/arch/i386/linux_sysent.c | 12 +++--
sys/compat/linux/arch/i386/linux_systrace_args.c | 36 ++++++++++++++++++-
sys/compat/linux/arch/m68k/linux_syscall.h | 7 ++-
sys/compat/linux/arch/m68k/linux_syscallargs.h | 14 ++++++-
sys/compat/linux/arch/m68k/linux_syscalls.c | 10 ++--
sys/compat/linux/arch/m68k/linux_sysent.c | 12 +++--
sys/compat/linux/arch/mips/linux_syscall.h | 7 ++-
sys/compat/linux/arch/mips/linux_syscallargs.h | 14 ++++++-
sys/compat/linux/arch/mips/linux_syscalls.c | 10 ++--
sys/compat/linux/arch/mips/linux_sysent.c | 12 +++--
sys/compat/linux/arch/powerpc/linux_syscall.h | 7 ++-
sys/compat/linux/arch/powerpc/linux_syscallargs.h | 14 ++++++-
sys/compat/linux/arch/powerpc/linux_syscalls.c | 10 ++--
sys/compat/linux/arch/powerpc/linux_sysent.c | 12 +++--
sys/compat/linux32/arch/amd64/linux32_syscall.h | 7 ++-
sys/compat/linux32/arch/amd64/linux32_syscallargs.h | 14 ++++++-
sys/compat/linux32/arch/amd64/linux32_syscalls.c | 10 ++--
sys/compat/linux32/arch/amd64/linux32_sysent.c | 12 +++--
sys/compat/linux32/arch/amd64/linux32_systrace_args.c | 36 ++++++++++++++++++-
36 files changed, 372 insertions(+), 116 deletions(-)
diffs (truncated from 1368 to 300 lines):
diff -r 1090757a6f78 -r 58df4389a192 sys/compat/linux/arch/alpha/linux_syscall.h
--- a/sys/compat/linux/arch/alpha/linux_syscall.h Sat Nov 09 23:44:31 2019 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h Sat Nov 09 23:45:07 2019 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.108 2019/03/24 16:39:46 maxv Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.109 2019/11/09 23:45:07 jdolecek Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp
+ * created from NetBSD: syscalls.master,v 1.96 2019/11/09 23:44:31 jdolecek Exp
*/
#ifndef _LINUX_SYS_SYSCALL_H_
@@ -702,6 +702,9 @@
/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */
#define LINUX_SYS_recvmmsg 479
+/* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */
+#define LINUX_SYS_fallocate 480
+
/* syscall: "dup3" ret: "int" args: "int" "int" "int" */
#define LINUX_SYS_dup3 487
diff -r 1090757a6f78 -r 58df4389a192 sys/compat/linux/arch/alpha/linux_syscallargs.h
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h Sat Nov 09 23:44:31 2019 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h Sat Nov 09 23:45:07 2019 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.107 2019/03/24 16:39:46 maxv Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.108 2019/11/09 23:45:07 jdolecek Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp
+ * created from NetBSD: syscalls.master,v 1.96 2019/11/09 23:44:31 jdolecek Exp
*/
#ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -1126,6 +1126,14 @@
};
check_syscall_args(linux_sys_recvmmsg)
+struct linux_sys_fallocate_args {
+ syscallarg(int) fd;
+ syscallarg(int) mode;
+ syscallarg(off_t) offset;
+ syscallarg(off_t) len;
+};
+check_syscall_args(linux_sys_fallocate)
+
struct linux_sys_dup3_args {
syscallarg(int) from;
syscallarg(int) to;
@@ -1623,6 +1631,8 @@
int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *);
+int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *);
+
int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *);
int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *);
diff -r 1090757a6f78 -r 58df4389a192 sys/compat/linux/arch/alpha/linux_syscalls.c
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c Sat Nov 09 23:44:31 2019 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c Sat Nov 09 23:45:07 2019 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.109 2019/03/24 16:39:47 maxv Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.110 2019/11/09 23:45:07 jdolecek Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp
+ * created from NetBSD: syscalls.master,v 1.96 2019/11/09 23:44:31 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.109 2019/03/24 16:39:47 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.110 2019/11/09 23:45:07 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -539,7 +539,7 @@
/* 477 */ "#477 (unimplemented timerfd)",
/* 478 */ "#478 (unimplemented eventfd)",
/* 479 */ "recvmmsg",
- /* 480 */ "#480 (unimplemented fallocate)",
+ /* 480 */ "fallocate",
/* 481 */ "#481 (unimplemented timerfd_create)",
/* 482 */ "#482 (unimplemented timerfd_settime)",
/* 483 */ "#483 (unimplemented timerfd_gettime)",
@@ -1080,7 +1080,7 @@
/* 477 */ NULL, /* unimplemented timerfd */
/* 478 */ NULL, /* unimplemented eventfd */
/* 479 */ NULL, /* recvmmsg */
- /* 480 */ NULL, /* unimplemented fallocate */
+ /* 480 */ NULL, /* fallocate */
/* 481 */ NULL, /* unimplemented timerfd_create */
/* 482 */ NULL, /* unimplemented timerfd_settime */
/* 483 */ NULL, /* unimplemented timerfd_gettime */
diff -r 1090757a6f78 -r 58df4389a192 sys/compat/linux/arch/alpha/linux_sysent.c
--- a/sys/compat/linux/arch/alpha/linux_sysent.c Sat Nov 09 23:44:31 2019 +0000
+++ b/sys/compat/linux/arch/alpha/linux_sysent.c Sat Nov 09 23:45:07 2019 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.108 2019/03/24 16:39:46 maxv Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.109 2019/11/09 23:45:07 jdolecek Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp
+ * created from NetBSD: syscalls.master,v 1.96 2019/11/09 23:44:31 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.108 2019/03/24 16:39:46 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.109 2019/11/09 23:45:07 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sysv.h"
@@ -1904,8 +1904,10 @@
.sy_call = (sy_call_t *)linux_sys_recvmmsg
}, /* 479 = recvmmsg */
{
- .sy_call = linux_sys_nosys,
- }, /* 480 = filler */
+ ns(struct linux_sys_fallocate_args),
+ .sy_flags = SYCALL_NARGS64_VAL(2) | SYCALL_ARG3_64 | SYCALL_ARG2_64,
+ .sy_call = (sy_call_t *)linux_sys_fallocate
+ }, /* 480 = fallocate */
{
.sy_call = linux_sys_nosys,
}, /* 481 = filler */
diff -r 1090757a6f78 -r 58df4389a192 sys/compat/linux/arch/amd64/linux_syscall.h
--- a/sys/compat/linux/arch/amd64/linux_syscall.h Sat Nov 09 23:44:31 2019 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscall.h Sat Nov 09 23:45:07 2019 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.69 2018/08/10 21:47:14 pgoyette Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.70 2019/11/09 23:45:07 jdolecek Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp
+ * created from NetBSD: syscalls.master,v 1.61 2019/11/09 23:44:31 jdolecek Exp
*/
#ifndef _LINUX_SYS_SYSCALL_H_
@@ -645,6 +645,9 @@
/* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */
#define LINUX_SYS_utimensat 280
+/* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */
+#define LINUX_SYS_fallocate 285
+
/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
#define LINUX_SYS_accept4 288
diff -r 1090757a6f78 -r 58df4389a192 sys/compat/linux/arch/amd64/linux_syscallargs.h
--- a/sys/compat/linux/arch/amd64/linux_syscallargs.h Sat Nov 09 23:44:31 2019 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscallargs.h Sat Nov 09 23:45:07 2019 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.69 2018/08/10 21:47:14 pgoyette Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.70 2019/11/09 23:45:07 jdolecek Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp
+ * created from NetBSD: syscalls.master,v 1.61 2019/11/09 23:44:31 jdolecek Exp
*/
#ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -1007,6 +1007,14 @@
};
check_syscall_args(linux_sys_utimensat)
+struct linux_sys_fallocate_args {
+ syscallarg(int) fd;
+ syscallarg(int) mode;
+ syscallarg(off_t) offset;
+ syscallarg(off_t) len;
+};
+check_syscall_args(linux_sys_fallocate)
+
struct linux_sys_accept4_args {
syscallarg(int) s;
syscallarg(struct osockaddr *) name;
@@ -1476,6 +1484,8 @@
int linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *);
+int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *);
+
int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *);
int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *);
diff -r 1090757a6f78 -r 58df4389a192 sys/compat/linux/arch/amd64/linux_syscalls.c
--- a/sys/compat/linux/arch/amd64/linux_syscalls.c Sat Nov 09 23:44:31 2019 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscalls.c Sat Nov 09 23:45:07 2019 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.69 2018/08/10 21:47:14 pgoyette Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.70 2019/11/09 23:45:07 jdolecek Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp
+ * created from NetBSD: syscalls.master,v 1.61 2019/11/09 23:44:31 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.69 2018/08/10 21:47:14 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.70 2019/11/09 23:45:07 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -351,7 +351,7 @@
/* 282 */ "#282 (unimplemented signalfd)",
/* 283 */ "#283 (unimplemented timerfd_create)",
/* 284 */ "#284 (unimplemented eventfd)",
- /* 285 */ "#285 (unimplemented fallocate)",
+ /* 285 */ "fallocate",
/* 286 */ "#286 (unimplemented timerfd_settime)",
/* 287 */ "#287 (unimplemented timerfd_gettime)",
/* 288 */ "accept4",
@@ -895,7 +895,7 @@
/* 282 */ NULL, /* unimplemented signalfd */
/* 283 */ NULL, /* unimplemented timerfd_create */
/* 284 */ NULL, /* unimplemented eventfd */
- /* 285 */ NULL, /* unimplemented fallocate */
+ /* 285 */ NULL, /* fallocate */
/* 286 */ NULL, /* unimplemented timerfd_settime */
/* 287 */ NULL, /* unimplemented timerfd_gettime */
/* 288 */ NULL, /* accept4 */
diff -r 1090757a6f78 -r 58df4389a192 sys/compat/linux/arch/amd64/linux_sysent.c
--- a/sys/compat/linux/arch/amd64/linux_sysent.c Sat Nov 09 23:44:31 2019 +0000
+++ b/sys/compat/linux/arch/amd64/linux_sysent.c Sat Nov 09 23:45:07 2019 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.69 2018/08/10 21:47:14 pgoyette Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.70 2019/11/09 23:45:07 jdolecek Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp
+ * created from NetBSD: syscalls.master,v 1.61 2019/11/09 23:44:31 jdolecek Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.69 2018/08/10 21:47:14 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.70 2019/11/09 23:45:07 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sysv.h"
@@ -1279,8 +1279,10 @@
.sy_call = linux_sys_nosys,
}, /* 284 = filler */
{
- .sy_call = linux_sys_nosys,
- }, /* 285 = filler */
+ ns(struct linux_sys_fallocate_args),
+ .sy_flags = SYCALL_NARGS64_VAL(2) | SYCALL_ARG3_64 | SYCALL_ARG2_64,
+ .sy_call = (sy_call_t *)linux_sys_fallocate
+ }, /* 285 = fallocate */
{
.sy_call = linux_sys_nosys,
}, /* 286 = filler */
diff -r 1090757a6f78 -r 58df4389a192 sys/compat/linux/arch/amd64/linux_systrace_args.c
--- a/sys/compat/linux/arch/amd64/linux_systrace_args.c Sat Nov 09 23:44:31 2019 +0000
+++ b/sys/compat/linux/arch/amd64/linux_systrace_args.c Sat Nov 09 23:45:07 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_systrace_args.c,v 1.13 2018/08/10 21:47:14 pgoyette Exp $ */
+/* $NetBSD: linux_systrace_args.c,v 1.14 2019/11/09 23:45:07 jdolecek Exp $ */
/*
* System call argument to DTrace register array converstion.
@@ -1743,6 +1743,16 @@
*n_args = 4;
break;
}
+ /* linux_sys_fallocate */
+ case 285: {
+ const struct linux_sys_fallocate_args *p = params;
+ iarg[0] = SCARG(p, fd); /* int */
+ iarg[1] = SCARG(p, mode); /* int */
+ iarg[2] = SCARG(p, offset); /* off_t */
+ iarg[3] = SCARG(p, len); /* off_t */
+ *n_args = 4;
+ break;
Home |
Main Index |
Thread Index |
Old Index