Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/thorpej-futex]: src/sys/compat/linux/arch Regen for eventfd, timerfd, PO...
details: https://anonhg.NetBSD.org/src/rev/edc1eec895f6
branches: thorpej-futex
changeset: 947532:edc1eec895f6
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Dec 15 14:07:51 2020 +0000
description:
Regen for eventfd, timerfd, POSIX timers.
diffstat:
sys/compat/linux/arch/alpha/linux_syscall.h | 34 ++-
sys/compat/linux/arch/alpha/linux_syscallargs.h | 80 ++++++-
sys/compat/linux/arch/alpha/linux_syscalls.c | 46 +-
sys/compat/linux/arch/alpha/linux_sysent.c | 73 +++--
sys/compat/linux/arch/amd64/linux_syscall.h | 34 ++-
sys/compat/linux/arch/amd64/linux_syscallargs.h | 80 ++++++-
sys/compat/linux/arch/amd64/linux_syscalls.c | 46 +-
sys/compat/linux/arch/amd64/linux_sysent.c | 73 +++--
sys/compat/linux/arch/amd64/linux_systrace_args.c | 270 +++++++++++++++++++++-
sys/compat/linux/arch/arm/linux_syscall.h | 34 ++-
sys/compat/linux/arch/arm/linux_syscallargs.h | 80 ++++++-
sys/compat/linux/arch/arm/linux_syscalls.c | 46 +-
sys/compat/linux/arch/arm/linux_sysent.c | 73 +++--
sys/compat/linux/arch/arm/linux_systrace_args.c | 270 +++++++++++++++++++++-
sys/compat/linux/arch/i386/linux_syscall.h | 34 ++-
sys/compat/linux/arch/i386/linux_syscallargs.h | 80 ++++++-
sys/compat/linux/arch/i386/linux_syscalls.c | 46 +-
sys/compat/linux/arch/i386/linux_sysent.c | 73 +++--
sys/compat/linux/arch/i386/linux_systrace_args.c | 270 +++++++++++++++++++++-
sys/compat/linux/arch/m68k/linux_syscall.h | 34 ++-
sys/compat/linux/arch/m68k/linux_syscallargs.h | 80 ++++++-
sys/compat/linux/arch/m68k/linux_syscalls.c | 46 +-
sys/compat/linux/arch/m68k/linux_sysent.c | 73 +++--
sys/compat/linux/arch/mips/linux_syscall.h | 34 ++-
sys/compat/linux/arch/mips/linux_syscallargs.h | 80 ++++++-
sys/compat/linux/arch/mips/linux_syscalls.c | 46 +-
sys/compat/linux/arch/mips/linux_sysent.c | 73 +++--
sys/compat/linux/arch/powerpc/linux_syscall.h | 31 ++-
sys/compat/linux/arch/powerpc/linux_syscallargs.h | 72 +++++-
sys/compat/linux/arch/powerpc/linux_syscalls.c | 46 +-
sys/compat/linux/arch/powerpc/linux_sysent.c | 68 +++--
31 files changed, 2032 insertions(+), 393 deletions(-)
diffs (truncated from 3822 to 300 lines):
diff -r c9f6e25d1b81 -r edc1eec895f6 sys/compat/linux/arch/alpha/linux_syscall.h
--- a/sys/compat/linux/arch/alpha/linux_syscall.h Tue Dec 15 14:07:20 2020 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h Tue Dec 15 14:07:51 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.110 2020/04/26 19:20:18 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.110.2.1 2020/12/15 14:07:51 thorpej Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.97 2020/04/26 18:53:32 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.97.2.1 2020/12/15 14:07:20 thorpej Exp
*/
#ifndef _LINUX_SYS_SYSCALL_H_
@@ -624,6 +624,21 @@
/* syscall: "fadvise64" ret: "int" args: "int" "off_t" "size_t" "int" */
#define LINUX_SYS_fadvise64 413
+/* syscall: "timer_create" ret: "int" args: "clockid_t" "struct linux_sigevent *" "timer_t *" */
+#define LINUX_SYS_timer_create 414
+
+/* syscall: "timer_settime" ret: "int" args: "timer_t" "int" "const struct linux_itimerspec *" "struct linux_itimerspec *" */
+#define LINUX_SYS_timer_settime 415
+
+/* syscall: "timer_gettime" ret: "int" args: "timer_t" "struct linux_itimerspec *" */
+#define LINUX_SYS_timer_gettime 416
+
+/* syscall: "timer_getoverrun" ret: "int" args: "timer_t" */
+#define LINUX_SYS_timer_getoverrun 417
+
+/* syscall: "timer_delete" ret: "int" args: "timer_t" */
+#define LINUX_SYS_timer_delete 418
+
/* syscall: "clock_settime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
#define LINUX_SYS_clock_settime 419
@@ -699,12 +714,27 @@
/* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */
#define LINUX_SYS_utimensat 475
+/* syscall: "eventfd" ret: "int" args: "unsigned int" */
+#define LINUX_SYS_eventfd 478
+
/* 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: "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: "eventfd2" ret: "int" args: "unsigned int" "int" */
+#define LINUX_SYS_eventfd2 485
+
/* syscall: "dup3" ret: "int" args: "int" "int" "int" */
#define LINUX_SYS_dup3 487
diff -r c9f6e25d1b81 -r edc1eec895f6 sys/compat/linux/arch/alpha/linux_syscallargs.h
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h Tue Dec 15 14:07:20 2020 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h Tue Dec 15 14:07:51 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.109 2020/04/26 19:20:18 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.109.2.1 2020/12/15 14:07:51 thorpej Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.97 2020/04/26 18:53:32 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.97.2.1 2020/12/15 14:07:20 thorpej Exp
*/
#ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -956,6 +956,31 @@
};
check_syscall_args(linux_sys_fadvise64)
+struct linux_sys_timer_create_args {
+ syscallarg(clockid_t) clockid;
+ syscallarg(struct linux_sigevent *) evp;
+ syscallarg(timer_t *) timerid;
+};
+check_syscall_args(linux_sys_timer_create)
+
+struct linux_sys_timer_settime_args {
+ syscallarg(timer_t) timerid;
+ syscallarg(int) flags;
+ syscallarg(const struct linux_itimerspec *) tim;
+ syscallarg(struct linux_itimerspec *) otim;
+};
+check_syscall_args(linux_sys_timer_settime)
+
+struct linux_sys_timer_gettime_args {
+ syscallarg(timer_t) timerid;
+ syscallarg(struct linux_itimerspec *) tim;
+};
+check_syscall_args(linux_sys_timer_gettime)
+
+struct sys_timer_getoverrun_args;
+
+struct sys_timer_delete_args;
+
struct linux_sys_clock_settime_args {
syscallarg(clockid_t) which;
syscallarg(struct linux_timespec *) tp;
@@ -1108,6 +1133,11 @@
};
check_syscall_args(linux_sys_utimensat)
+struct linux_sys_eventfd_args {
+ syscallarg(unsigned int) initval;
+};
+check_syscall_args(linux_sys_eventfd)
+
struct linux_sys_recvmmsg_args {
syscallarg(int) s;
syscallarg(struct linux_mmsghdr *) msgvec;
@@ -1125,6 +1155,32 @@
};
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 *) new_value;
+ syscallarg(struct linux_itimerspec *) old_value;
+};
+check_syscall_args(linux_sys_timerfd_settime)
+
+struct linux_sys_timerfd_gettime_args {
+ syscallarg(int) fd;
+ syscallarg(struct linux_itimerspec *) curr_value;
+};
+check_syscall_args(linux_sys_timerfd_gettime)
+
+struct linux_sys_eventfd2_args {
+ syscallarg(unsigned int) initval;
+ syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_eventfd2)
+
struct linux_sys_dup3_args {
syscallarg(int) from;
syscallarg(int) to;
@@ -1570,6 +1626,16 @@
int linux_sys_fadvise64(struct lwp *, const struct linux_sys_fadvise64_args *, register_t *);
+int linux_sys_timer_create(struct lwp *, const struct linux_sys_timer_create_args *, register_t *);
+
+int linux_sys_timer_settime(struct lwp *, const struct linux_sys_timer_settime_args *, register_t *);
+
+int linux_sys_timer_gettime(struct lwp *, const struct linux_sys_timer_gettime_args *, register_t *);
+
+int sys_timer_getoverrun(struct lwp *, const struct sys_timer_getoverrun_args *, register_t *);
+
+int sys_timer_delete(struct lwp *, const struct sys_timer_delete_args *, register_t *);
+
int linux_sys_clock_settime(struct lwp *, const struct linux_sys_clock_settime_args *, register_t *);
int linux_sys_clock_gettime(struct lwp *, const struct linux_sys_clock_gettime_args *, register_t *);
@@ -1620,10 +1686,20 @@
int linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *);
+int linux_sys_eventfd(struct lwp *, const struct linux_sys_eventfd_args *, register_t *);
+
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_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_eventfd2(struct lwp *, const struct linux_sys_eventfd2_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 c9f6e25d1b81 -r edc1eec895f6 sys/compat/linux/arch/alpha/linux_syscalls.c
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c Tue Dec 15 14:07:20 2020 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c Tue Dec 15 14:07:51 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.111 2020/04/26 19:20:18 thorpej Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.111.2.1 2020/12/15 14:07:51 thorpej Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.97 2020/04/26 18:53:32 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.97.2.1 2020/12/15 14:07:20 thorpej Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.111 2020/04/26 19:20:18 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.111.2.1 2020/12/15 14:07:51 thorpej Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -473,11 +473,11 @@
/* 411 */ "set_tid_address",
/* 412 */ "#412 (unimplemented restart_syscall)",
/* 413 */ "fadvise64",
- /* 414 */ "#414 (unimplemented timer_create)",
- /* 415 */ "#415 (unimplemented timer_settime)",
- /* 416 */ "#416 (unimplemented timer_gettime)",
- /* 417 */ "#417 (unimplemented timer_getoverrun)",
- /* 418 */ "#418 (unimplemented timer_delete)",
+ /* 414 */ "timer_create",
+ /* 415 */ "timer_settime",
+ /* 416 */ "timer_gettime",
+ /* 417 */ "timer_getoverrun",
+ /* 418 */ "timer_delete",
/* 419 */ "clock_settime",
/* 420 */ "clock_gettime",
/* 421 */ "clock_getres",
@@ -537,14 +537,14 @@
/* 475 */ "utimensat",
/* 476 */ "#476 (unimplemented signalfd)",
/* 477 */ "#477 (unimplemented timerfd)",
- /* 478 */ "#478 (unimplemented eventfd)",
+ /* 478 */ "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)",
+ /* 485 */ "eventfd2",
/* 486 */ "#486 (unimplemented epoll_create1)",
/* 487 */ "dup3",
/* 488 */ "pipe2",
@@ -1014,11 +1014,11 @@
/* 411 */ NULL, /* set_tid_address */
/* 412 */ NULL, /* unimplemented restart_syscall */
/* 413 */ NULL, /* fadvise64 */
- /* 414 */ NULL, /* unimplemented timer_create */
- /* 415 */ NULL, /* unimplemented timer_settime */
- /* 416 */ NULL, /* unimplemented timer_gettime */
- /* 417 */ NULL, /* unimplemented timer_getoverrun */
- /* 418 */ NULL, /* unimplemented timer_delete */
+ /* 414 */ NULL, /* timer_create */
+ /* 415 */ NULL, /* timer_settime */
+ /* 416 */ NULL, /* timer_gettime */
+ /* 417 */ NULL, /* timer_getoverrun */
+ /* 418 */ NULL, /* timer_delete */
/* 419 */ NULL, /* clock_settime */
/* 420 */ NULL, /* clock_gettime */
/* 421 */ NULL, /* clock_getres */
@@ -1078,14 +1078,14 @@
/* 475 */ NULL, /* utimensat */
/* 476 */ NULL, /* unimplemented signalfd */
/* 477 */ NULL, /* unimplemented timerfd */
- /* 478 */ NULL, /* unimplemented eventfd */
+ /* 478 */ NULL, /* 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 */
+ /* 485 */ NULL, /* eventfd2 */
/* 486 */ NULL, /* unimplemented epoll_create1 */
/* 487 */ NULL, /* dup3 */
/* 488 */ NULL, /* pipe2 */
diff -r c9f6e25d1b81 -r edc1eec895f6 sys/compat/linux/arch/alpha/linux_sysent.c
--- a/sys/compat/linux/arch/alpha/linux_sysent.c Tue Dec 15 14:07:20 2020 +0000
+++ b/sys/compat/linux/arch/alpha/linux_sysent.c Tue Dec 15 14:07:51 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.110 2020/04/26 19:20:18 thorpej Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.110.2.1 2020/12/15 14:07:51 thorpej Exp $ */
/*
Home |
Main Index |
Thread Index |
Old Index