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 POSIX timer syscalls.
details: https://anonhg.NetBSD.org/src/rev/baf9688390ef
branches: trunk
changeset: 1023643:baf9688390ef
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Sep 19 23:02:22 2021 +0000
description:
Regen for POSIX timer syscalls.
diffstat:
sys/compat/linux/arch/alpha/linux_syscall.h | 19 ++-
sys/compat/linux/arch/alpha/linux_syscallargs.h | 39 ++++-
sys/compat/linux/arch/alpha/linux_syscalls.c | 26 +-
sys/compat/linux/arch/alpha/linux_sysent.c | 42 +++--
sys/compat/linux/arch/amd64/linux_syscall.h | 19 ++-
sys/compat/linux/arch/amd64/linux_syscallargs.h | 39 ++++-
sys/compat/linux/arch/amd64/linux_syscalls.c | 26 +-
sys/compat/linux/arch/amd64/linux_sysent.c | 42 +++--
sys/compat/linux/arch/amd64/linux_systrace_args.c | 138 +++++++++++++++++-
sys/compat/linux/arch/arm/linux_syscall.h | 19 ++-
sys/compat/linux/arch/arm/linux_syscallargs.h | 39 ++++-
sys/compat/linux/arch/arm/linux_syscalls.c | 26 +-
sys/compat/linux/arch/arm/linux_sysent.c | 42 +++--
sys/compat/linux/arch/arm/linux_systrace_args.c | 138 +++++++++++++++++-
sys/compat/linux/arch/i386/linux_syscall.h | 19 ++-
sys/compat/linux/arch/i386/linux_syscallargs.h | 39 ++++-
sys/compat/linux/arch/i386/linux_syscalls.c | 26 +-
sys/compat/linux/arch/i386/linux_sysent.c | 42 +++--
sys/compat/linux/arch/i386/linux_systrace_args.c | 138 +++++++++++++++++-
sys/compat/linux/arch/m68k/linux_syscall.h | 19 ++-
sys/compat/linux/arch/m68k/linux_syscallargs.h | 39 ++++-
sys/compat/linux/arch/m68k/linux_syscalls.c | 26 +-
sys/compat/linux/arch/m68k/linux_sysent.c | 42 +++--
sys/compat/linux/arch/mips/linux_syscall.h | 19 ++-
sys/compat/linux/arch/mips/linux_syscallargs.h | 39 ++++-
sys/compat/linux/arch/mips/linux_syscalls.c | 26 +-
sys/compat/linux/arch/mips/linux_sysent.c | 42 +++--
sys/compat/linux/arch/powerpc/linux_syscall.h | 19 ++-
sys/compat/linux/arch/powerpc/linux_syscallargs.h | 39 ++++-
sys/compat/linux/arch/powerpc/linux_syscalls.c | 26 +-
sys/compat/linux/arch/powerpc/linux_sysent.c | 42 +++--
sys/compat/linux32/arch/amd64/linux32_syscall.h | 19 ++-
sys/compat/linux32/arch/amd64/linux32_syscallargs.h | 39 ++++-
sys/compat/linux32/arch/amd64/linux32_syscalls.c | 26 +-
sys/compat/linux32/arch/amd64/linux32_sysent.c | 34 ++-
sys/compat/linux32/arch/amd64/linux32_systrace_args.c | 138 +++++++++++++++++-
36 files changed, 1276 insertions(+), 276 deletions(-)
diffs (truncated from 2444 to 300 lines):
diff -r 561b90a6d7ff -r baf9688390ef sys/compat/linux/arch/alpha/linux_syscall.h
--- a/sys/compat/linux/arch/alpha/linux_syscall.h Sun Sep 19 23:01:49 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h Sun Sep 19 23:02:22 2021 +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.111 2021/09/19 23:02:22 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.98 2021/09/19 23:01:49 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
diff -r 561b90a6d7ff -r baf9688390ef sys/compat/linux/arch/alpha/linux_syscallargs.h
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h Sun Sep 19 23:01:49 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h Sun Sep 19 23:02:22 2021 +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.110 2021/09/19 23:02:22 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.98 2021/09/19 23:01:49 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;
@@ -1570,6 +1595,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 *);
diff -r 561b90a6d7ff -r baf9688390ef sys/compat/linux/arch/alpha/linux_syscalls.c
--- a/sys/compat/linux/arch/alpha/linux_syscalls.c Sun Sep 19 23:01:49 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscalls.c Sun Sep 19 23:02:22 2021 +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.112 2021/09/19 23:02:22 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.98 2021/09/19 23:01:49 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.112 2021/09/19 23:02:22 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",
@@ -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 */
diff -r 561b90a6d7ff -r baf9688390ef sys/compat/linux/arch/alpha/linux_sysent.c
--- a/sys/compat/linux/arch/alpha/linux_sysent.c Sun Sep 19 23:01:49 2021 +0000
+++ b/sys/compat/linux/arch/alpha/linux_sysent.c Sun Sep 19 23:02:22 2021 +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.111 2021/09/19 23:02:22 thorpej Exp $ */
/*
* System call switch table.
*
* 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.98 2021/09/19 23:01:49 thorpej Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.110 2020/04/26 19:20:18 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.111 2021/09/19 23:02:22 thorpej Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sysv.h"
@@ -1655,20 +1655,28 @@
.sy_call = (sy_call_t *)linux_sys_fadvise64
}, /* 413 = fadvise64 */
{
- .sy_call = linux_sys_nosys,
- }, /* 414 = filler */
- {
- .sy_call = linux_sys_nosys,
- }, /* 415 = filler */
- {
- .sy_call = linux_sys_nosys,
- }, /* 416 = filler */
- {
- .sy_call = linux_sys_nosys,
- }, /* 417 = filler */
- {
- .sy_call = linux_sys_nosys,
- }, /* 418 = filler */
+ ns(struct linux_sys_timer_create_args),
+ .sy_flags = SYCALL_ARG_PTR,
+ .sy_call = (sy_call_t *)linux_sys_timer_create
+ }, /* 414 = timer_create */
+ {
+ ns(struct linux_sys_timer_settime_args),
+ .sy_flags = SYCALL_ARG_PTR,
+ .sy_call = (sy_call_t *)linux_sys_timer_settime
+ }, /* 415 = timer_settime */
+ {
+ ns(struct linux_sys_timer_gettime_args),
+ .sy_flags = SYCALL_ARG_PTR,
+ .sy_call = (sy_call_t *)linux_sys_timer_gettime
+ }, /* 416 = timer_gettime */
+ {
+ ns(struct sys_timer_getoverrun_args),
+ .sy_call = (sy_call_t *)sys_timer_getoverrun
+ }, /* 417 = timer_getoverrun */
+ {
+ ns(struct sys_timer_delete_args),
+ .sy_call = (sy_call_t *)sys_timer_delete
+ }, /* 418 = timer_delete */
{
ns(struct linux_sys_clock_settime_args),
.sy_flags = SYCALL_ARG_PTR,
diff -r 561b90a6d7ff -r baf9688390ef sys/compat/linux/arch/amd64/linux_syscall.h
--- a/sys/compat/linux/arch/amd64/linux_syscall.h Sun Sep 19 23:01:49 2021 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscall.h Sun Sep 19 23:02:22 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.71 2020/04/26 19:20:18 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.72 2021/09/19 23:02:22 thorpej Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.62 2020/04/26 18:53:32 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.63 2021/09/19 23:01:49 thorpej Exp
*/
#ifndef _LINUX_SYS_SYSCALL_H_
@@ -573,6 +573,21 @@
/* syscall: "fadvise64" ret: "int" args: "int" "off_t" "size_t" "int" */
#define LINUX_SYS_fadvise64 221
+/* syscall: "timer_create" ret: "int" args: "clockid_t" "struct linux_sigevent *" "timer_t *" */
+#define LINUX_SYS_timer_create 222
+
+/* syscall: "timer_settime" ret: "int" args: "timer_t" "int" "const struct linux_itimerspec *" "struct linux_itimerspec *" */
+#define LINUX_SYS_timer_settime 223
+
+/* syscall: "timer_gettime" ret: "int" args: "timer_t" "struct linux_itimerspec *" */
+#define LINUX_SYS_timer_gettime 224
+
+/* syscall: "timer_getoverrun" ret: "int" args: "timer_t" */
+#define LINUX_SYS_timer_getoverrun 225
+
+/* syscall: "timer_delete" ret: "int" args: "timer_t" */
+#define LINUX_SYS_timer_delete 226
+
/* syscall: "clock_settime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
#define LINUX_SYS_clock_settime 227
diff -r 561b90a6d7ff -r baf9688390ef sys/compat/linux/arch/amd64/linux_syscallargs.h
--- a/sys/compat/linux/arch/amd64/linux_syscallargs.h Sun Sep 19 23:01:49 2021 +0000
+++ b/sys/compat/linux/arch/amd64/linux_syscallargs.h Sun Sep 19 23:02:22 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.71 2020/04/26 19:20:18 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.72 2021/09/19 23:02:22 thorpej Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.62 2020/04/26 18:53:32 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.63 2021/09/19 23:01:49 thorpej Exp
*/
#ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -857,6 +857,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)
Home |
Main Index |
Thread Index |
Old Index