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 eventfd(2).



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

description:
Regen for eventfd(2).

diffstat:

 sys/compat/netbsd32/netbsd32_syscall.h           |   7 ++++-
 sys/compat/netbsd32/netbsd32_syscallargs.h       |  12 ++++++++-
 sys/compat/netbsd32/netbsd32_syscalls.c          |  10 ++++----
 sys/compat/netbsd32/netbsd32_syscalls_autoload.c |   6 ++--
 sys/compat/netbsd32/netbsd32_sysent.c            |  11 +++++----
 sys/compat/netbsd32/netbsd32_systrace_args.c     |  28 +++++++++++++++++++++++-
 6 files changed, 56 insertions(+), 18 deletions(-)

diffs (213 lines):

diff -r 50a720a31f99 -r bd096e1b981b sys/compat/netbsd32/netbsd32_syscall.h
--- a/sys/compat/netbsd32/netbsd32_syscall.h    Mon Sep 20 01:07:45 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscall.h    Mon Sep 20 01:07:56 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscall.h,v 1.156 2021/09/20 01:01:04 thorpej Exp $ */
+/* $NetBSD: netbsd32_syscall.h,v 1.157 2021/09/20 01:07:56 thorpej Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej Exp
  */
 
 #ifndef _NETBSD32_SYS_SYSCALL_H_
@@ -728,6 +728,9 @@
 /* syscall: "compat_50_netbsd32_mq_timedreceive" ret: "netbsd32_ssize_t" args: "mqd_t" "netbsd32_charp" "netbsd32_size_t" "netbsd32_uintp" "const netbsd32_timespec50p_t" */
 #define        NETBSD32_SYS_compat_50_netbsd32_mq_timedreceive 266
 
+/* syscall: "netbsd32_eventfd" ret: "int" args: "unsigned int" "int" */
+#define        NETBSD32_SYS_netbsd32_eventfd   267
+
 /* syscall: "netbsd32___posix_rename" ret: "int" args: "netbsd32_charp" "netbsd32_charp" */
 #define        NETBSD32_SYS_netbsd32___posix_rename    270
 
diff -r 50a720a31f99 -r bd096e1b981b sys/compat/netbsd32/netbsd32_syscallargs.h
--- a/sys/compat/netbsd32/netbsd32_syscallargs.h        Mon Sep 20 01:07:45 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscallargs.h        Mon Sep 20 01:07:56 2021 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscallargs.h,v 1.155 2021/09/20 01:01:04 thorpej Exp $ */
+/* $NetBSD: netbsd32_syscallargs.h,v 1.156 2021/09/20 01:07:56 thorpej Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej Exp
  */
 
 #ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@@ -1431,6 +1431,12 @@
 };
 check_syscall_args(compat_50_netbsd32_mq_timedreceive)
 
+struct netbsd32_eventfd_args {
+       syscallarg(unsigned int) val;
+       syscallarg(int) flags;
+};
+check_syscall_args(netbsd32_eventfd)
+
 struct netbsd32___posix_rename_args {
        syscallarg(netbsd32_charp) from;
        syscallarg(netbsd32_charp) to;
@@ -3254,6 +3260,8 @@
 
 int    compat_50_netbsd32_mq_timedreceive(struct lwp *, const struct compat_50_netbsd32_mq_timedreceive_args *, register_t *);
 
+int    netbsd32_eventfd(struct lwp *, const struct netbsd32_eventfd_args *, register_t *);
+
 int    netbsd32___posix_rename(struct lwp *, const struct netbsd32___posix_rename_args *, register_t *);
 
 int    netbsd32_swapctl(struct lwp *, const struct netbsd32_swapctl_args *, register_t *);
diff -r 50a720a31f99 -r bd096e1b981b sys/compat/netbsd32/netbsd32_syscalls.c
--- a/sys/compat/netbsd32/netbsd32_syscalls.c   Mon Sep 20 01:07:45 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls.c   Mon Sep 20 01:07:56 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls.c,v 1.155 2021/09/20 01:01:04 thorpej Exp $ */
+/* $NetBSD: netbsd32_syscalls.c,v 1.156 2021/09/20 01:07:56 thorpej Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.155 2021/09/20 01:01:04 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.156 2021/09/20 01:07:56 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -301,7 +301,7 @@
        /* 264 */       "netbsd32_mq_receive",
        /* 265 */       "compat_50_netbsd32_mq_timedsend",
        /* 266 */       "compat_50_netbsd32_mq_timedreceive",
-       /* 267 */       "#267 (unimplemented)",
+       /* 267 */       "netbsd32_eventfd",
        /* 268 */       "#268 (unimplemented)",
        /* 269 */       "#269 (unimplemented)",
        /* 270 */       "netbsd32___posix_rename",
@@ -826,7 +826,7 @@
        /* 264 */       "mq_receive",
        /* 265 */       NULL, /* compat_50_netbsd32_mq_timedsend */
        /* 266 */       NULL, /* compat_50_netbsd32_mq_timedreceive */
-       /* 267 */       NULL, /* unimplemented */
+       /* 267 */       "eventfd",
        /* 268 */       NULL, /* unimplemented */
        /* 269 */       NULL, /* unimplemented */
        /* 270 */       "__posix_rename",
diff -r 50a720a31f99 -r bd096e1b981b sys/compat/netbsd32/netbsd32_syscalls_autoload.c
--- a/sys/compat/netbsd32/netbsd32_syscalls_autoload.c  Mon Sep 20 01:07:45 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls_autoload.c  Mon Sep 20 01:07:56 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.35 2021/09/20 01:01:04 thorpej Exp $ */
+/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.36 2021/09/20 01:07:56 thorpej Exp $ */
 
 /*
  * System call autoload table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.35 2021/09/20 01:01:04 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.36 2021/09/20 01:07:56 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
diff -r 50a720a31f99 -r bd096e1b981b sys/compat/netbsd32/netbsd32_sysent.c
--- a/sys/compat/netbsd32/netbsd32_sysent.c     Mon Sep 20 01:07:45 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_sysent.c     Mon Sep 20 01:07:56 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_sysent.c,v 1.154 2021/09/20 01:01:04 thorpej Exp $ */
+/* $NetBSD: netbsd32_sysent.c,v 1.155 2021/09/20 01:07:56 thorpej Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.140 2021/09/20 01:00:55 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.141 2021/09/20 01:07:45 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.154 2021/09/20 01:01:04 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.155 2021/09/20 01:07:56 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -1162,8 +1162,9 @@
                .sy_call = (sy_call_t *)sys_nomodule
        },              /* 266 = compat_50_netbsd32_mq_timedreceive */
        {
-               .sy_call = sys_nosys,
-       },              /* 267 = filler */
+               ns(struct netbsd32_eventfd_args),
+               .sy_call = (sy_call_t *)netbsd32_eventfd
+       },              /* 267 = netbsd32_eventfd */
        {
                .sy_call = sys_nosys,
        },              /* 268 = filler */
diff -r 50a720a31f99 -r bd096e1b981b sys/compat/netbsd32/netbsd32_systrace_args.c
--- a/sys/compat/netbsd32/netbsd32_systrace_args.c      Mon Sep 20 01:07:45 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_systrace_args.c      Mon Sep 20 01:07:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_systrace_args.c,v 1.48 2021/09/20 01:01:05 thorpej Exp $ */
+/* $NetBSD: netbsd32_systrace_args.c,v 1.49 2021/09/20 01:07:56 thorpej Exp $ */
 
 /*
  * System call argument to DTrace register array conversion.
@@ -1929,6 +1929,14 @@
                *n_args = 5;
                break;
        }
+       /* netbsd32_eventfd */
+       case 267: {
+               const struct netbsd32_eventfd_args *p = params;
+               uarg[0] = SCARG(p, val); /* unsigned int */
+               iarg[1] = SCARG(p, flags); /* int */
+               *n_args = 2;
+               break;
+       }
        /* netbsd32___posix_rename */
        case 270: {
                const struct netbsd32___posix_rename_args *p = params;
@@ -6881,6 +6889,19 @@
                        break;
                };
                break;
+       /* netbsd32_eventfd */
+       case 267:
+               switch(ndx) {
+               case 0:
+                       p = "unsigned int";
+                       break;
+               case 1:
+                       p = "int";
+                       break;
+               default:
+                       break;
+               };
+               break;
        /* netbsd32___posix_rename */
        case 270:
                switch(ndx) {
@@ -11122,6 +11143,11 @@
                if (ndx == 0 || ndx == 1)
                        p = "netbsd32_ssize_t";
                break;
+       /* netbsd32_eventfd */
+       case 267:
+               if (ndx == 0 || ndx == 1)
+                       p = "int";
+               break;
        /* netbsd32___posix_rename */
        case 270:
                if (ndx == 0 || ndx == 1)



Home | Main Index | Thread Index | Old Index