Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 Regen for timerfd.



details:   https://anonhg.NetBSD.org/src/rev/bc0a6283e879
branches:  trunk
changeset: 1023649:bc0a6283e879
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Sep 20 01:01:04 2021 +0000

description:
Regen for timerfd.

diffstat:

 sys/compat/netbsd32/netbsd32_syscall.h           |  13 +++-
 sys/compat/netbsd32/netbsd32_syscallargs.h       |  30 +++++++-
 sys/compat/netbsd32/netbsd32_syscalls.c          |  18 ++--
 sys/compat/netbsd32/netbsd32_syscalls_autoload.c |   6 +-
 sys/compat/netbsd32/netbsd32_sysent.c            |  25 +++---
 sys/compat/netbsd32/netbsd32_systrace_args.c     |  88 +++++++++++++++++++++++-
 6 files changed, 152 insertions(+), 28 deletions(-)

diffs (truncated from 319 to 300 lines):

diff -r 14c012d19399 -r bc0a6283e879 sys/compat/netbsd32/netbsd32_syscall.h
--- a/sys/compat/netbsd32/netbsd32_syscall.h    Mon Sep 20 01:00:55 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscall.h    Mon Sep 20 01:01:04 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscall.h,v 1.155 2020/10/10 00:03:52 rin Exp $ */
+/* $NetBSD: netbsd32_syscall.h,v 1.156 2021/09/20 01:01:04 thorpej Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.139 2020/10/10 00:00:54 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp
  */
 
 #ifndef _NETBSD32_SYS_SYSCALL_H_
@@ -499,6 +499,15 @@
 #else
                                /* 176 is excluded ntp_adjtime */
 #endif
+/* syscall: "netbsd32_timerfd_create" ret: "int" args: "netbsd32_clockid_t" "int" */
+#define        NETBSD32_SYS_netbsd32_timerfd_create    177
+
+/* syscall: "netbsd32_timerfd_settime" ret: "int" args: "int" "int" "const netbsd32_itimerspecp_t" "netbsd32_itimerspecp_t" */
+#define        NETBSD32_SYS_netbsd32_timerfd_settime   178
+
+/* syscall: "netbsd32_timerfd_gettime" ret: "int" args: "int" "netbsd32_itimerspecp_t" */
+#define        NETBSD32_SYS_netbsd32_timerfd_gettime   179
+
 /* syscall: "netbsd32_setgid" ret: "int" args: "gid_t" */
 #define        NETBSD32_SYS_netbsd32_setgid    181
 
diff -r 14c012d19399 -r bc0a6283e879 sys/compat/netbsd32/netbsd32_syscallargs.h
--- a/sys/compat/netbsd32/netbsd32_syscallargs.h        Mon Sep 20 01:00:55 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscallargs.h        Mon Sep 20 01:01:04 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscallargs.h,v 1.154 2020/10/10 00:03:52 rin Exp $ */
+/* $NetBSD: netbsd32_syscallargs.h,v 1.155 2021/09/20 01:01:04 thorpej Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.139 2020/10/10 00:00:54 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp
  */
 
 #ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@@ -953,6 +953,26 @@
 #else
 #endif
 
+struct netbsd32_timerfd_create_args {
+       syscallarg(netbsd32_clockid_t) clock_id;
+       syscallarg(int) flags;
+};
+check_syscall_args(netbsd32_timerfd_create)
+
+struct netbsd32_timerfd_settime_args {
+       syscallarg(int) fd;
+       syscallarg(int) flags;
+       syscallarg(const netbsd32_itimerspecp_t) new_value;
+       syscallarg(netbsd32_itimerspecp_t) old_value;
+};
+check_syscall_args(netbsd32_timerfd_settime)
+
+struct netbsd32_timerfd_gettime_args {
+       syscallarg(int) fd;
+       syscallarg(netbsd32_itimerspecp_t) curr_value;
+};
+check_syscall_args(netbsd32_timerfd_gettime)
+
 struct netbsd32_setgid_args {
        syscallarg(gid_t) gid;
 };
@@ -3084,6 +3104,12 @@
 
 #else
 #endif
+int    netbsd32_timerfd_create(struct lwp *, const struct netbsd32_timerfd_create_args *, register_t *);
+
+int    netbsd32_timerfd_settime(struct lwp *, const struct netbsd32_timerfd_settime_args *, register_t *);
+
+int    netbsd32_timerfd_gettime(struct lwp *, const struct netbsd32_timerfd_gettime_args *, register_t *);
+
 int    netbsd32_setgid(struct lwp *, const struct netbsd32_setgid_args *, register_t *);
 
 int    netbsd32_setegid(struct lwp *, const struct netbsd32_setegid_args *, register_t *);
diff -r 14c012d19399 -r bc0a6283e879 sys/compat/netbsd32/netbsd32_syscalls.c
--- a/sys/compat/netbsd32/netbsd32_syscalls.c   Mon Sep 20 01:00:55 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls.c   Mon Sep 20 01:01:04 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls.c,v 1.154 2020/10/10 00:03:53 rin Exp $ */
+/* $NetBSD: netbsd32_syscalls.c,v 1.155 2021/09/20 01:01:04 thorpej Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.139 2020/10/10 00:00:54 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.154 2020/10/10 00:03:53 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.155 2021/09/20 01:01:04 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -211,9 +211,9 @@
 #else
        /* 176 */       "#176 (excluded ntp_adjtime)",
 #endif
-       /* 177 */       "#177 (unimplemented)",
-       /* 178 */       "#178 (unimplemented)",
-       /* 179 */       "#179 (unimplemented)",
+       /* 177 */       "netbsd32_timerfd_create",
+       /* 178 */       "netbsd32_timerfd_settime",
+       /* 179 */       "netbsd32_timerfd_gettime",
        /* 180 */       "#180 (unimplemented)",
        /* 181 */       "netbsd32_setgid",
        /* 182 */       "netbsd32_setegid",
@@ -736,9 +736,9 @@
 #else
        /* 176 */       NULL, /* excluded ntp_adjtime */
 #endif
-       /* 177 */       NULL, /* unimplemented */
-       /* 178 */       NULL, /* unimplemented */
-       /* 179 */       NULL, /* unimplemented */
+       /* 177 */       "timerfd_create",
+       /* 178 */       "timerfd_settime",
+       /* 179 */       "timerfd_gettime",
        /* 180 */       NULL, /* unimplemented */
        /* 181 */       "setgid",
        /* 182 */       "setegid",
diff -r 14c012d19399 -r bc0a6283e879 sys/compat/netbsd32/netbsd32_syscalls_autoload.c
--- a/sys/compat/netbsd32/netbsd32_syscalls_autoload.c  Mon Sep 20 01:00:55 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls_autoload.c  Mon Sep 20 01:01:04 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.34 2020/10/10 00:03:53 rin Exp $ */
+/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.35 2021/09/20 01:01:04 thorpej Exp $ */
 
 /*
  * System call autoload table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.139 2020/10/10 00:00:54 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.34 2020/10/10 00:03:53 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.35 2021/09/20 01:01:04 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
diff -r 14c012d19399 -r bc0a6283e879 sys/compat/netbsd32/netbsd32_sysent.c
--- a/sys/compat/netbsd32/netbsd32_sysent.c     Mon Sep 20 01:00:55 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_sysent.c     Mon Sep 20 01:01:04 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_sysent.c,v 1.153 2020/10/10 00:03:53 rin Exp $ */
+/* $NetBSD: netbsd32_sysent.c,v 1.154 2021/09/20 01:01:04 thorpej Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.139 2020/10/10 00:00:54 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.153 2020/10/10 00:03:53 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.154 2021/09/20 01:01:04 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -813,14 +813,17 @@
        },              /* 176 = filler */
 #endif
        {
-               .sy_call = sys_nosys,
-       },              /* 177 = filler */
-       {
-               .sy_call = sys_nosys,
-       },              /* 178 = filler */
-       {
-               .sy_call = sys_nosys,
-       },              /* 179 = filler */
+               ns(struct netbsd32_timerfd_create_args),
+               .sy_call = (sy_call_t *)netbsd32_timerfd_create
+       },              /* 177 = netbsd32_timerfd_create */
+       {
+               ns(struct netbsd32_timerfd_settime_args),
+               .sy_call = (sy_call_t *)netbsd32_timerfd_settime
+       },              /* 178 = netbsd32_timerfd_settime */
+       {
+               ns(struct netbsd32_timerfd_gettime_args),
+               .sy_call = (sy_call_t *)netbsd32_timerfd_gettime
+       },              /* 179 = netbsd32_timerfd_gettime */
        {
                .sy_call = sys_nosys,
        },              /* 180 = filler */
diff -r 14c012d19399 -r bc0a6283e879 sys/compat/netbsd32/netbsd32_systrace_args.c
--- a/sys/compat/netbsd32/netbsd32_systrace_args.c      Mon Sep 20 01:00:55 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_systrace_args.c      Mon Sep 20 01:01:04 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_systrace_args.c,v 1.47 2021/04/14 02:48:00 christos Exp $ */
+/* $NetBSD: netbsd32_systrace_args.c,v 1.48 2021/09/20 01:01:05 thorpej Exp $ */
 
 /*
  * System call argument to DTrace register array conversion.
@@ -1297,6 +1297,32 @@
        }
 #else
 #endif
+       /* netbsd32_timerfd_create */
+       case 177: {
+               const struct netbsd32_timerfd_create_args *p = params;
+               iarg[0] = SCARG(p, clock_id); /* netbsd32_clockid_t */
+               iarg[1] = SCARG(p, flags); /* int */
+               *n_args = 2;
+               break;
+       }
+       /* netbsd32_timerfd_settime */
+       case 178: {
+               const struct netbsd32_timerfd_settime_args *p = params;
+               iarg[0] = SCARG(p, fd); /* int */
+               iarg[1] = SCARG(p, flags); /* int */
+               uarg[2] = (intptr_t) SCARG(p, new_value).i32; /* const netbsd32_itimerspecp_t */
+               uarg[3] = (intptr_t) SCARG(p, old_value).i32; /* netbsd32_itimerspecp_t */
+               *n_args = 4;
+               break;
+       }
+       /* netbsd32_timerfd_gettime */
+       case 179: {
+               const struct netbsd32_timerfd_gettime_args *p = params;
+               iarg[0] = SCARG(p, fd); /* int */
+               uarg[1] = (intptr_t) SCARG(p, curr_value).i32; /* netbsd32_itimerspecp_t */
+               *n_args = 2;
+               break;
+       }
        /* netbsd32_setgid */
        case 181: {
                const struct netbsd32_setgid_args *p = params;
@@ -5785,6 +5811,51 @@
                break;
 #else
 #endif
+       /* netbsd32_timerfd_create */
+       case 177:
+               switch(ndx) {
+               case 0:
+                       p = "netbsd32_clockid_t";
+                       break;
+               case 1:
+                       p = "int";
+                       break;
+               default:
+                       break;
+               };
+               break;
+       /* netbsd32_timerfd_settime */
+       case 178:
+               switch(ndx) {
+               case 0:
+                       p = "int";
+                       break;
+               case 1:
+                       p = "int";
+                       break;
+               case 2:
+                       p = "const netbsd32_itimerspecp_t";
+                       break;
+               case 3:
+                       p = "netbsd32_itimerspecp_t";
+                       break;
+               default:
+                       break;
+               };
+               break;
+       /* netbsd32_timerfd_gettime */
+       case 179:
+               switch(ndx) {
+               case 0:
+                       p = "int";
+                       break;
+               case 1:
+                       p = "netbsd32_itimerspecp_t";
+                       break;
+               default:
+                       break;
+               };
+               break;
        /* netbsd32_setgid */
        case 181:
                switch(ndx) {
@@ -10679,6 +10750,21 @@
                break;
 #else



Home | Main Index | Thread Index | Old Index