Source-Changes-HG archive

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

[src/thorpej-futex]: src/sys Regen for eventfd(2).



details:   https://anonhg.NetBSD.org/src/rev/a94d87163120
branches:  thorpej-futex
changeset: 961122:a94d87163120
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Dec 14 16:01:17 2020 +0000

description:
Regen for eventfd(2).

diffstat:

 sys/kern/init_sysent.c                    |  11 ++++++-----
 sys/kern/syscalls.c                       |  10 +++++-----
 sys/kern/syscalls_autoload.c              |   6 +++---
 sys/kern/systrace_args.c                  |  28 +++++++++++++++++++++++++++-
 sys/rump/include/rump/rump_syscalls.h     |   4 ++--
 sys/rump/librump/rumpkern/rump_syscalls.c |  11 +++++------
 sys/sys/syscall.h                         |   7 +++++--
 sys/sys/syscallargs.h                     |  14 ++++++++++++--
 8 files changed, 65 insertions(+), 26 deletions(-)

diffs (268 lines):

diff -r 541dafed8180 -r a94d87163120 sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c    Mon Dec 14 16:00:51 2020 +0000
+++ b/sys/kern/init_sysent.c    Mon Dec 14 16:01:17 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: init_sysent.c,v 1.336.2.1 2020/12/14 14:38:13 thorpej Exp $ */
+/* $NetBSD: init_sysent.c,v 1.336.2.2 2020/12/14 16:01:17 thorpej Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.336.2.1 2020/12/14 14:38:13 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.336.2.2 2020/12/14 16:01:17 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
@@ -1336,8 +1336,9 @@
                .sy_call = (sy_call_t *)sys_nomodule
        },              /* 266 = compat_50_mq_timedreceive */
        {
-               .sy_call = sys_nosys,
-       },              /* 267 = filler */
+               ns(struct sys_eventfd_args),
+               .sy_call = (sy_call_t *)sys_eventfd
+       },              /* 267 = eventfd */
        {
                .sy_call = sys_nosys,
        },              /* 268 = filler */
diff -r 541dafed8180 -r a94d87163120 sys/kern/syscalls.c
--- a/sys/kern/syscalls.c       Mon Dec 14 16:00:51 2020 +0000
+++ b/sys/kern/syscalls.c       Mon Dec 14 16:01:17 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls.c,v 1.324.2.1 2020/12/14 14:38:14 thorpej Exp $ */
+/* $NetBSD: syscalls.c,v 1.324.2.2 2020/12/14 16:01:17 thorpej Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.324.2.1 2020/12/14 14:38:14 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.324.2.2 2020/12/14 16:01:17 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #ifdef _KERNEL_OPT
@@ -313,7 +313,7 @@
        /* 264 */       "mq_receive",
        /* 265 */       "compat_50_mq_timedsend",
        /* 266 */       "compat_50_mq_timedreceive",
-       /* 267 */       "#267 (unimplemented)",
+       /* 267 */       "eventfd",
        /* 268 */       "#268 (unimplemented)",
        /* 269 */       "#269 (unimplemented)",
        /* 270 */       "__posix_rename",
@@ -850,7 +850,7 @@
        /* 264 */       NULL, /* mq_receive */
        /* 265 */       NULL, /* compat_50_mq_timedsend */
        /* 266 */       NULL, /* compat_50_mq_timedreceive */
-       /* 267 */       NULL, /* unimplemented */
+       /* 267 */       NULL, /* eventfd */
        /* 268 */       NULL, /* unimplemented */
        /* 269 */       NULL, /* unimplemented */
        /* 270 */       NULL, /* __posix_rename */
diff -r 541dafed8180 -r a94d87163120 sys/kern/syscalls_autoload.c
--- a/sys/kern/syscalls_autoload.c      Mon Dec 14 16:00:51 2020 +0000
+++ b/sys/kern/syscalls_autoload.c      Mon Dec 14 16:01:17 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls_autoload.c,v 1.40.2.1 2020/12/14 14:38:14 thorpej Exp $ */
+/* $NetBSD: syscalls_autoload.c,v 1.40.2.2 2020/12/14 16:01:17 thorpej Exp $ */
 
 /*
  * System call autoload table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.40.2.1 2020/12/14 14:38:14 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.40.2.2 2020/12/14 16:01:17 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
diff -r 541dafed8180 -r a94d87163120 sys/kern/systrace_args.c
--- a/sys/kern/systrace_args.c  Mon Dec 14 16:00:51 2020 +0000
+++ b/sys/kern/systrace_args.c  Mon Dec 14 16:01:17 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systrace_args.c,v 1.43.2.1 2020/12/14 14:38:14 thorpej Exp $ */
+/* $NetBSD: systrace_args.c,v 1.43.2.2 2020/12/14 16:01:17 thorpej Exp $ */
 
 /*
  * System call argument to DTrace register array converstion.
@@ -1964,6 +1964,14 @@
                *n_args = 5;
                break;
        }
+       /* sys_eventfd */
+       case 267: {
+               const struct sys_eventfd_args *p = params;
+               uarg[0] = SCARG(p, val); /* unsigned int */
+               iarg[1] = SCARG(p, flags); /* int */
+               *n_args = 2;
+               break;
+       }
        /* sys___posix_rename */
        case 270: {
                const struct sys___posix_rename_args *p = params;
@@ -7091,6 +7099,19 @@
                        break;
                };
                break;
+       /* sys_eventfd */
+       case 267:
+               switch(ndx) {
+               case 0:
+                       p = "unsigned int";
+                       break;
+               case 1:
+                       p = "int";
+                       break;
+               default:
+                       break;
+               };
+               break;
        /* sys___posix_rename */
        case 270:
                switch(ndx) {
@@ -11541,6 +11562,11 @@
                if (ndx == 0 || ndx == 1)
                        p = "ssize_t";
                break;
+       /* sys_eventfd */
+       case 267:
+               if (ndx == 0 || ndx == 1)
+                       p = "int";
+               break;
        /* sys___posix_rename */
        case 270:
                if (ndx == 0 || ndx == 1)
diff -r 541dafed8180 -r a94d87163120 sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h     Mon Dec 14 16:00:51 2020 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h     Mon Dec 14 16:01:17 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.h,v 1.123.2.1 2020/12/14 14:38:15 thorpej Exp $ */
+/* $NetBSD: rump_syscalls.h,v 1.123.2.2 2020/12/14 16:01:17 thorpej Exp $ */
 
 /*
  * System call protos in rump namespace.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
  */
 
 #ifndef _RUMP_RUMP_SYSCALLS_H_
diff -r 541dafed8180 -r a94d87163120 sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Mon Dec 14 16:00:51 2020 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Mon Dec 14 16:01:17 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.c,v 1.154.2.1 2020/12/14 14:38:16 thorpej Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.154.2.2 2020/12/14 16:01:17 thorpej Exp $ */
 
 /*
  * System call vector and marshalling for rump.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
  */
 
 #ifdef RUMP_CLIENT
@@ -15,7 +15,7 @@
 
 #ifdef __NetBSD__
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.154.2.1 2020/12/14 14:38:16 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.154.2.2 2020/12/14 16:01:17 thorpej Exp $");
 
 #include <sys/fstypes.h>
 #include <sys/proc.h>
@@ -7699,9 +7699,8 @@
                .sy_call = (sy_call_t *)(void *)rumpns_sys_nomodule,
 },             /* 266 = mq_timedreceive */
        {
-               .sy_flags = SYCALL_NOSYS,
-               .sy_call = (sy_call_t *)(void *)rumpns_enosys,
-       },              /* 267 = filler */
+               .sy_call = (sy_call_t *)(void *)rumpns_enosys,
+},             /* 267 = eventfd */
        {
                .sy_flags = SYCALL_NOSYS,
                .sy_call = (sy_call_t *)(void *)rumpns_enosys,
diff -r 541dafed8180 -r a94d87163120 sys/sys/syscall.h
--- a/sys/sys/syscall.h Mon Dec 14 16:00:51 2020 +0000
+++ b/sys/sys/syscall.h Mon Dec 14 16:01:17 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: syscall.h,v 1.318.2.1 2020/12/14 14:38:17 thorpej Exp $ */
+/* $NetBSD: syscall.h,v 1.318.2.2 2020/12/14 16:01:17 thorpej Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
  */
 
 #ifndef _SYS_SYSCALL_H_
@@ -744,6 +744,9 @@
 /* syscall: "compat_50_mq_timedreceive" ret: "ssize_t" args: "mqd_t" "char *" "size_t" "unsigned *" "const struct timespec50 *" */
 #define        SYS_compat_50_mq_timedreceive   266
 
+/* syscall: "eventfd" ret: "int" args: "unsigned int" "int" */
+#define        SYS_eventfd     267
+
 /* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
 #define        SYS___posix_rename      270
 
diff -r 541dafed8180 -r a94d87163120 sys/sys/syscallargs.h
--- a/sys/sys/syscallargs.h     Mon Dec 14 16:00:51 2020 +0000
+++ b/sys/sys/syscallargs.h     Mon Dec 14 16:01:17 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: syscallargs.h,v 1.302.2.1 2020/12/14 14:38:17 thorpej Exp $ */
+/* $NetBSD: syscallargs.h,v 1.302.2.2 2020/12/14 16:01:17 thorpej Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
  */
 
 #ifndef _SYS_SYSCALLARGS_H_
@@ -1710,6 +1710,14 @@
 check_syscall_args(compat_50_sys_mq_timedreceive)
 #endif /* !RUMP_CLIENT */
 
+#ifndef RUMP_CLIENT
+struct sys_eventfd_args {
+       syscallarg(unsigned int) val;
+       syscallarg(int) flags;
+};
+check_syscall_args(sys_eventfd)
+#endif /* !RUMP_CLIENT */
+
 struct sys___posix_rename_args {
        syscallarg(const char *) from;
        syscallarg(const char *) to;
@@ -3809,6 +3817,8 @@
 
 int    compat_50_sys_mq_timedreceive(struct lwp *, const struct compat_50_sys_mq_timedreceive_args *, register_t *);
 
+int    sys_eventfd(struct lwp *, const struct sys_eventfd_args *, register_t *);
+
 int    sys___posix_rename(struct lwp *, const struct sys___posix_rename_args *, register_t *);
 
 int    sys_swapctl(struct lwp *, const struct sys_swapctl_args *, register_t *);



Home | Main Index | Thread Index | Old Index