Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 COMPANT_NETBSD32: Regen for syscalls.mas...



details:   https://anonhg.NetBSD.org/src/rev/d6c2f1bd41a9
branches:  trunk
changeset: 378339:d6c2f1bd41a9
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Jul 30 05:31:30 2023 +0000

description:
COMPANT_NETBSD32: Regen for syscalls.master,v 1.143

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 c24e139d5461 -r d6c2f1bd41a9 sys/compat/netbsd32/netbsd32_syscall.h
--- a/sys/compat/netbsd32/netbsd32_syscall.h    Sun Jul 30 05:30:45 2023 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscall.h    Sun Jul 30 05:31:30 2023 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscall.h,v 1.158 2023/07/29 12:39:20 rin Exp $ */
+/* $NetBSD: netbsd32_syscall.h,v 1.159 2023/07/30 05:31:30 rin Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.142 2023/07/29 12:38:25 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.143 2023/07/30 05:30:45 rin Exp
  */
 
 #ifndef _NETBSD32_SYS_SYSCALL_H_
@@ -1338,6 +1338,9 @@
 /* syscall: "netbsd32_lpathconf" ret: "long" args: "const netbsd32_charp" "int" */
 #define        NETBSD32_SYS_netbsd32_lpathconf 499
 
+/* syscall: "netbsd32_memfd_create" ret: "int" args: "const netbsd32_charp" "unsigned int" */
+#define        NETBSD32_SYS_netbsd32_memfd_create      500
+
 /* syscall: "netbsd32___kevent100" ret: "int" args: "int" "const netbsd32_keventp_t" "netbsd32_size_t" "netbsd32_keventp_t" "netbsd32_size_t" "const netbsd32_timespecp_t" */
 #define        NETBSD32_SYS_netbsd32___kevent100       501
 
diff -r c24e139d5461 -r d6c2f1bd41a9 sys/compat/netbsd32/netbsd32_syscallargs.h
--- a/sys/compat/netbsd32/netbsd32_syscallargs.h        Sun Jul 30 05:30:45 2023 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscallargs.h        Sun Jul 30 05:31:30 2023 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscallargs.h,v 1.157 2023/07/29 12:39:20 rin Exp $ */
+/* $NetBSD: netbsd32_syscallargs.h,v 1.158 2023/07/30 05:31:30 rin Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.142 2023/07/29 12:38:25 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.143 2023/07/30 05:30:45 rin Exp
  */
 
 #ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@@ -2789,6 +2789,12 @@ struct netbsd32_lpathconf_args {
 };
 check_syscall_args(netbsd32_lpathconf)
 
+struct netbsd32_memfd_create_args {
+       syscallarg(const netbsd32_charp) name;
+       syscallarg(unsigned int) flags;
+};
+check_syscall_args(netbsd32_memfd_create)
+
 struct netbsd32___kevent100_args {
        syscallarg(int) fd;
        syscallarg(const netbsd32_keventp_t) changelist;
@@ -3669,6 +3675,8 @@ int       netbsd32___acl_aclcheck_fd(struct lw
 
 int    netbsd32_lpathconf(struct lwp *, const struct netbsd32_lpathconf_args *, register_t *);
 
+int    netbsd32_memfd_create(struct lwp *, const struct netbsd32_memfd_create_args *, register_t *);
+
 int    netbsd32___kevent100(struct lwp *, const struct netbsd32___kevent100_args *, register_t *);
 
 #endif /* _NETBSD32_SYS_SYSCALLARGS_H_ */
diff -r c24e139d5461 -r d6c2f1bd41a9 sys/compat/netbsd32/netbsd32_syscalls.c
--- a/sys/compat/netbsd32/netbsd32_syscalls.c   Sun Jul 30 05:30:45 2023 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls.c   Sun Jul 30 05:31:30 2023 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls.c,v 1.157 2023/07/29 12:39:20 rin Exp $ */
+/* $NetBSD: netbsd32_syscalls.c,v 1.158 2023/07/30 05:31:30 rin Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.142 2023/07/29 12:38:25 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.143 2023/07/30 05:30:45 rin Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.157 2023/07/29 12:39:20 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.158 2023/07/30 05:31:30 rin Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -538,7 +538,7 @@ const char *const netbsd32_syscallnames[
        /* 497 */       "netbsd32___acl_aclcheck_file",
        /* 498 */       "netbsd32___acl_aclcheck_fd",
        /* 499 */       "netbsd32_lpathconf",
-       /* 500 */       "#500 (unimplemented memfd_create)",
+       /* 500 */       "netbsd32_memfd_create",
        /* 501 */       "netbsd32___kevent100",
        /* 502 */       "#502 (unimplemented epoll_create1)",
        /* 503 */       "#503 (unimplemented epoll_ctl)",
@@ -1063,7 +1063,7 @@ const char *const altnetbsd32_syscallnam
        /* 497 */       "__acl_aclcheck_file",
        /* 498 */       "__acl_aclcheck_fd",
        /* 499 */       "lpathconf",
-       /* 500 */       NULL, /* unimplemented memfd_create */
+       /* 500 */       "memfd_create",
        /* 501 */       "kevent",
        /* 502 */       NULL, /* unimplemented epoll_create1 */
        /* 503 */       NULL, /* unimplemented epoll_ctl */
diff -r c24e139d5461 -r d6c2f1bd41a9 sys/compat/netbsd32/netbsd32_syscalls_autoload.c
--- a/sys/compat/netbsd32/netbsd32_syscalls_autoload.c  Sun Jul 30 05:30:45 2023 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls_autoload.c  Sun Jul 30 05:31:30 2023 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.37 2023/07/29 12:39:20 rin Exp $ */
+/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.38 2023/07/30 05:31:30 rin Exp $ */
 
 /*
  * System call autoload table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.142 2023/07/29 12:38:25 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.143 2023/07/30 05:30:45 rin Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.37 2023/07/29 12:39:20 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.38 2023/07/30 05:31:30 rin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
diff -r c24e139d5461 -r d6c2f1bd41a9 sys/compat/netbsd32/netbsd32_sysent.c
--- a/sys/compat/netbsd32/netbsd32_sysent.c     Sun Jul 30 05:30:45 2023 +0000
+++ b/sys/compat/netbsd32/netbsd32_sysent.c     Sun Jul 30 05:31:30 2023 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_sysent.c,v 1.156 2023/07/29 12:39:20 rin Exp $ */
+/* $NetBSD: netbsd32_sysent.c,v 1.157 2023/07/30 05:31:30 rin Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.142 2023/07/29 12:38:25 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.143 2023/07/30 05:30:45 rin Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.156 2023/07/29 12:39:20 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.157 2023/07/30 05:31:30 rin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -2072,8 +2072,9 @@ struct sysent netbsd32_sysent[] = {
                .sy_call = (sy_call_t *)netbsd32_lpathconf
        },              /* 499 = netbsd32_lpathconf */
        {
-               .sy_call = sys_nosys,
-       },              /* 500 = filler */
+               ns(struct netbsd32_memfd_create_args),
+               .sy_call = (sy_call_t *)netbsd32_memfd_create
+       },              /* 500 = netbsd32_memfd_create */
        {
                ns(struct netbsd32___kevent100_args),
                .sy_call = (sy_call_t *)netbsd32___kevent100
diff -r c24e139d5461 -r d6c2f1bd41a9 sys/compat/netbsd32/netbsd32_systrace_args.c
--- a/sys/compat/netbsd32/netbsd32_systrace_args.c      Sun Jul 30 05:30:45 2023 +0000
+++ b/sys/compat/netbsd32/netbsd32_systrace_args.c      Sun Jul 30 05:31:30 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_systrace_args.c,v 1.50 2023/07/29 12:39:20 rin Exp $ */
+/* $NetBSD: netbsd32_systrace_args.c,v 1.51 2023/07/30 05:31:30 rin Exp $ */
 
 /*
  * System call argument to DTrace register array conversion.
@@ -3704,6 +3704,14 @@ systrace_args(register_t sysnum, const v
                *n_args = 2;
                break;
        }
+       /* netbsd32_memfd_create */
+       case 500: {
+               const struct netbsd32_memfd_create_args *p = params;
+               uarg[0] = (intptr_t) SCARG(p, name).i32; /* const netbsd32_charp */
+               uarg[1] = SCARG(p, flags); /* unsigned int */
+               *n_args = 2;
+               break;
+       }
        /* netbsd32___kevent100 */
        case 501: {
                const struct netbsd32___kevent100_args *p = params;
@@ -10035,6 +10043,19 @@ systrace_entry_setargdesc(int sysnum, in
                        break;
                };
                break;
+       /* netbsd32_memfd_create */
+       case 500:
+               switch(ndx) {
+               case 0:
+                       p = "const netbsd32_charp";
+                       break;
+               case 1:
+                       p = "unsigned int";
+                       break;
+               default:
+                       break;
+               };
+               break;
        /* netbsd32___kevent100 */
        case 501:
                switch(ndx) {
@@ -12152,6 +12173,11 @@ systrace_return_setargdesc(int sysnum, i
                if (ndx == 0 || ndx == 1)
                        p = "long";
                break;
+       /* netbsd32_memfd_create */
+       case 500:
+               if (ndx == 0 || ndx == 1)
+                       p = "int";
+               break;
        /* netbsd32___kevent100 */
        case 501:
                if (ndx == 0 || ndx == 1)



Home | Main Index | Thread Index | Old Index