Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat Regen for timerfd.
details: https://anonhg.NetBSD.org/src/rev/5774bb33bf69
branches: trunk
changeset: 1023645:5774bb33bf69
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Sep 19 23:52:07 2021 +0000
description:
Regen for timerfd.
diffstat:
sys/compat/linux/arch/alpha/linux_syscall.h | 13 ++-
sys/compat/linux/arch/alpha/linux_syscallargs.h | 30 ++++++-
sys/compat/linux/arch/alpha/linux_syscalls.c | 18 +-
sys/compat/linux/arch/alpha/linux_sysent.c | 27 +++--
sys/compat/linux/arch/amd64/linux_syscall.h | 13 ++-
sys/compat/linux/arch/amd64/linux_syscallargs.h | 30 ++++++-
sys/compat/linux/arch/amd64/linux_syscalls.c | 18 +-
sys/compat/linux/arch/amd64/linux_sysent.c | 25 +++--
sys/compat/linux/arch/amd64/linux_systrace_args.c | 88 ++++++++++++++++++-
sys/compat/linux/arch/arm/linux_syscall.h | 13 ++-
sys/compat/linux/arch/arm/linux_syscallargs.h | 30 ++++++-
sys/compat/linux/arch/arm/linux_syscalls.c | 18 +-
sys/compat/linux/arch/arm/linux_sysent.c | 25 +++--
sys/compat/linux/arch/arm/linux_systrace_args.c | 88 ++++++++++++++++++-
sys/compat/linux/arch/i386/linux_syscall.h | 13 ++-
sys/compat/linux/arch/i386/linux_syscallargs.h | 30 ++++++-
sys/compat/linux/arch/i386/linux_syscalls.c | 18 +-
sys/compat/linux/arch/i386/linux_sysent.c | 25 +++--
sys/compat/linux/arch/i386/linux_systrace_args.c | 88 ++++++++++++++++++-
sys/compat/linux/arch/m68k/linux_syscall.h | 13 ++-
sys/compat/linux/arch/m68k/linux_syscallargs.h | 30 ++++++-
sys/compat/linux/arch/m68k/linux_syscalls.c | 18 +-
sys/compat/linux/arch/m68k/linux_sysent.c | 25 +++--
sys/compat/linux/arch/mips/linux_syscall.h | 13 ++-
sys/compat/linux/arch/mips/linux_syscallargs.h | 30 ++++++-
sys/compat/linux/arch/mips/linux_syscalls.c | 18 +-
sys/compat/linux/arch/mips/linux_sysent.c | 27 +++--
sys/compat/linux/arch/powerpc/linux_syscall.h | 13 ++-
sys/compat/linux/arch/powerpc/linux_syscallargs.h | 30 ++++++-
sys/compat/linux/arch/powerpc/linux_syscalls.c | 18 +-
sys/compat/linux/arch/powerpc/linux_sysent.c | 25 +++--
sys/compat/linux32/arch/amd64/linux32_syscall.h | 13 ++-
sys/compat/linux32/arch/amd64/linux32_syscallargs.h | 26 +++++-
sys/compat/linux32/arch/amd64/linux32_syscalls.c | 18 +-
sys/compat/linux32/arch/amd64/linux32_sysent.c | 23 +++-
sys/compat/linux32/arch/amd64/linux32_systrace_args.c | 88 ++++++++++++++++++-
36 files changed, 849 insertions(+), 189 deletions(-)
diffs (truncated from 2137 to 300 lines):
diff -r eb5e4a9cd690 -r 5774bb33bf69 sys/compat/linux/arch/alpha/linux_syscall.h
--- a/sys/compat/linux/arch/alpha/linux_syscall.h Sun Sep 19 23:51:36 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h Sun Sep 19 23:52:07 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.111 2021/09/19 23:02:22 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.112 2021/09/19 23:52:07 thorpej Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.98 2021/09/19 23:01:49 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.99 2021/09/19 23:51:36 thorpej Exp
*/
#ifndef _LINUX_SYS_SYSCALL_H_
@@ -720,6 +720,15 @@
/* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */
#define LINUX_SYS_fallocate 480
+/* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */
+#define LINUX_SYS_timerfd_create 481
+
+/* syscall: "timerfd_settime" ret: "int" args: "int" "int" "const struct linux_itimerspec *" "struct linux_itimerspec *" */
+#define LINUX_SYS_timerfd_settime 482
+
+/* syscall: "timerfd_gettime" ret: "int" args: "int" "struct linux_itimerspec *" */
+#define LINUX_SYS_timerfd_gettime 483
+
/* syscall: "dup3" ret: "int" args: "int" "int" "int" */
#define LINUX_SYS_dup3 487
diff -r eb5e4a9cd690 -r 5774bb33bf69 sys/compat/linux/arch/alpha/linux_syscallargs.h
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h Sun Sep 19 23:51:36 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h Sun Sep 19 23:52:07 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.110 2021/09/19 23:02:22 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.111 2021/09/19 23:52:07 thorpej Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.98 2021/09/19 23:01:49 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.99 2021/09/19 23:51:36 thorpej Exp
*/
#ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -1150,6 +1150,26 @@
};
check_syscall_args(linux_sys_fallocate)
+struct linux_sys_timerfd_create_args {
+ syscallarg(clockid_t) clock_id;
+ syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_timerfd_create)
+
+struct linux_sys_timerfd_settime_args {
+ syscallarg(int) fd;
+ syscallarg(int) flags;
+ syscallarg(const struct linux_itimerspec *) tim;
+ syscallarg(struct linux_itimerspec *) otim;
+};
+check_syscall_args(linux_sys_timerfd_settime)
+
+struct linux_sys_timerfd_gettime_args {
+ syscallarg(int) fd;
+ syscallarg(struct linux_itimerspec *) tim;
+};
+check_syscall_args(linux_sys_timerfd_gettime)
+
struct linux_sys_dup3_args {
syscallarg(int) from;
syscallarg(int) to;
@@ -1659,6 +1679,12 @@
int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *);
+int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *);
+
+int linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *);
+
+int linux_sys_timerfd_gettime(struct lwp *, const struct linux_sys_timerfd_gettime_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 eb5e4a9cd690 -r 5774bb33bf69 sys/compat/linux/arch/alpha/linux_syscalls.c
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c Sun Sep 19 23:51:36 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c Sun Sep 19 23:52:07 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.112 2021/09/19 23:02:22 thorpej Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.113 2021/09/19 23:52:07 thorpej Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.98 2021/09/19 23:01:49 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.99 2021/09/19 23:51:36 thorpej Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.112 2021/09/19 23:02:22 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.113 2021/09/19 23:52:07 thorpej Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -540,9 +540,9 @@
/* 478 */ "#478 (unimplemented eventfd)",
/* 479 */ "recvmmsg",
/* 480 */ "fallocate",
- /* 481 */ "#481 (unimplemented timerfd_create)",
- /* 482 */ "#482 (unimplemented timerfd_settime)",
- /* 483 */ "#483 (unimplemented timerfd_gettime)",
+ /* 481 */ "timerfd_create",
+ /* 482 */ "timerfd_settime",
+ /* 483 */ "timerfd_gettime",
/* 484 */ "#484 (unimplemented signalfd4)",
/* 485 */ "#485 (unimplemented eventfd2)",
/* 486 */ "#486 (unimplemented epoll_create1)",
@@ -1081,9 +1081,9 @@
/* 478 */ NULL, /* unimplemented eventfd */
/* 479 */ NULL, /* recvmmsg */
/* 480 */ NULL, /* fallocate */
- /* 481 */ NULL, /* unimplemented timerfd_create */
- /* 482 */ NULL, /* unimplemented timerfd_settime */
- /* 483 */ NULL, /* unimplemented timerfd_gettime */
+ /* 481 */ NULL, /* timerfd_create */
+ /* 482 */ NULL, /* timerfd_settime */
+ /* 483 */ NULL, /* timerfd_gettime */
/* 484 */ NULL, /* unimplemented signalfd4 */
/* 485 */ NULL, /* unimplemented eventfd2 */
/* 486 */ NULL, /* unimplemented epoll_create1 */
diff -r eb5e4a9cd690 -r 5774bb33bf69 sys/compat/linux/arch/alpha/linux_sysent.c
--- a/sys/compat/linux/arch/alpha/linux_sysent.c Sun Sep 19 23:51:36 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_sysent.c Sun Sep 19 23:52:07 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.111 2021/09/19 23:02:22 thorpej Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.112 2021/09/19 23:52:07 thorpej Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.98 2021/09/19 23:01:49 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.99 2021/09/19 23:51:36 thorpej Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.111 2021/09/19 23:02:22 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.112 2021/09/19 23:52:07 thorpej Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sysv.h"
@@ -1917,14 +1917,19 @@
.sy_call = (sy_call_t *)linux_sys_fallocate
}, /* 480 = fallocate */
{
- .sy_call = linux_sys_nosys,
- }, /* 481 = filler */
- {
- .sy_call = linux_sys_nosys,
- }, /* 482 = filler */
- {
- .sy_call = linux_sys_nosys,
- }, /* 483 = filler */
+ ns(struct linux_sys_timerfd_create_args),
+ .sy_call = (sy_call_t *)linux_sys_timerfd_create
+ }, /* 481 = timerfd_create */
+ {
+ ns(struct linux_sys_timerfd_settime_args),
+ .sy_flags = SYCALL_ARG_PTR,
+ .sy_call = (sy_call_t *)linux_sys_timerfd_settime
+ }, /* 482 = timerfd_settime */
+ {
+ ns(struct linux_sys_timerfd_gettime_args),
+ .sy_flags = SYCALL_ARG_PTR,
+ .sy_call = (sy_call_t *)linux_sys_timerfd_gettime
+ }, /* 483 = timerfd_gettime */
{
.sy_call = linux_sys_nosys,
}, /* 484 = filler */
diff -r eb5e4a9cd690 -r 5774bb33bf69 sys/compat/linux/arch/amd64/linux_syscall.h
--- a/sys/compat/linux/arch/amd64/linux_syscall.h Sun Sep 19 23:51:36 2021 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscall.h Sun Sep 19 23:52:07 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.72 2021/09/19 23:02:22 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.73 2021/09/19 23:52:07 thorpej Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.63 2021/09/19 23:01:49 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.64 2021/09/19 23:51:36 thorpej Exp
*/
#ifndef _LINUX_SYS_SYSCALL_H_
@@ -660,9 +660,18 @@
/* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */
#define LINUX_SYS_utimensat 280
+/* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */
+#define LINUX_SYS_timerfd_create 283
+
/* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */
#define LINUX_SYS_fallocate 285
+/* syscall: "timerfd_settime" ret: "int" args: "int" "int" "const struct linux_itimerspec *" "struct linux_itimerspec *" */
+#define LINUX_SYS_timerfd_settime 286
+
+/* syscall: "timerfd_gettime" ret: "int" args: "int" "struct linux_itimerspec *" */
+#define LINUX_SYS_timerfd_gettime 287
+
/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
#define LINUX_SYS_accept4 288
diff -r eb5e4a9cd690 -r 5774bb33bf69 sys/compat/linux/arch/amd64/linux_syscallargs.h
--- a/sys/compat/linux/arch/amd64/linux_syscallargs.h Sun Sep 19 23:51:36 2021 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscallargs.h Sun Sep 19 23:52:07 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.72 2021/09/19 23:02:22 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.73 2021/09/19 23:52:07 thorpej Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.63 2021/09/19 23:01:49 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.64 2021/09/19 23:51:36 thorpej Exp
*/
#ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -1023,6 +1023,12 @@
};
check_syscall_args(linux_sys_utimensat)
+struct linux_sys_timerfd_create_args {
+ syscallarg(clockid_t) clock_id;
+ syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_timerfd_create)
+
struct linux_sys_fallocate_args {
syscallarg(int) fd;
syscallarg(int) mode;
@@ -1031,6 +1037,20 @@
};
check_syscall_args(linux_sys_fallocate)
+struct linux_sys_timerfd_settime_args {
+ syscallarg(int) fd;
+ syscallarg(int) flags;
+ syscallarg(const struct linux_itimerspec *) tim;
+ syscallarg(struct linux_itimerspec *) otim;
+};
+check_syscall_args(linux_sys_timerfd_settime)
+
+struct linux_sys_timerfd_gettime_args {
+ syscallarg(int) fd;
+ syscallarg(struct linux_itimerspec *) tim;
+};
+check_syscall_args(linux_sys_timerfd_gettime)
+
struct linux_sys_accept4_args {
syscallarg(int) s;
syscallarg(struct osockaddr *) name;
@@ -1510,8 +1530,14 @@
int linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *);
+int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *);
+
int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *);
+int linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *);
+
+int linux_sys_timerfd_gettime(struct lwp *, const struct linux_sys_timerfd_gettime_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 eb5e4a9cd690 -r 5774bb33bf69 sys/compat/linux/arch/amd64/linux_syscalls.c
--- a/sys/compat/linux/arch/amd64/linux_syscalls.c Sun Sep 19 23:51:36 2021 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscalls.c Sun Sep 19 23:52:07 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.72 2021/09/19 23:02:22 thorpej Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.73 2021/09/19 23:52:07 thorpej Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.63 2021/09/19 23:01:49 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.64 2021/09/19 23:51:36 thorpej Exp
*/
#include <sys/cdefs.h>
Home |
Main Index |
Thread Index |
Old Index