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 getrandom(2)



details:   https://anonhg.NetBSD.org/src/rev/6812ed930422
branches:  trunk
changeset: 1014987:6812ed930422
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Oct 10 00:03:52 2020 +0000

description:
regen for getrandom(2)

diffstat:

 sys/compat/netbsd32/netbsd32_syscall.h           |   7 +++-
 sys/compat/netbsd32/netbsd32_syscallargs.h       |  13 ++++++++-
 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     |  32 +++++++++++++++++++++++-
 6 files changed, 61 insertions(+), 18 deletions(-)

diffs (218 lines):

diff -r 6c666e741c6d -r 6812ed930422 sys/compat/netbsd32/netbsd32_syscall.h
--- a/sys/compat/netbsd32/netbsd32_syscall.h    Sat Oct 10 00:00:54 2020 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscall.h    Sat Oct 10 00:03:52 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscall.h,v 1.154 2020/05/16 18:31:48 christos Exp $ */
+/* $NetBSD: netbsd32_syscall.h,v 1.155 2020/10/10 00:03:52 rin Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.137 2020/04/26 19:18:36 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.139 2020/10/10 00:00:54 rin Exp
  */
 
 #ifndef _NETBSD32_SYS_SYSCALL_H_
@@ -271,6 +271,9 @@
 /* syscall: "netbsd32_dup2" ret: "int" args: "int" "int" */
 #define        NETBSD32_SYS_netbsd32_dup2      90
 
+/* syscall: "netbsd32_getrandom" ret: "netbsd32_ssize_t" args: "netbsd32_voidp" "netbsd32_size_t" "unsigned int" */
+#define        NETBSD32_SYS_netbsd32_getrandom 91
+
 /* syscall: "netbsd32_fcntl" ret: "int" args: "int" "int" "..." */
 #define        NETBSD32_SYS_netbsd32_fcntl     92
 
diff -r 6c666e741c6d -r 6812ed930422 sys/compat/netbsd32/netbsd32_syscallargs.h
--- a/sys/compat/netbsd32/netbsd32_syscallargs.h        Sat Oct 10 00:00:54 2020 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscallargs.h        Sat Oct 10 00:03:52 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscallargs.h,v 1.153 2020/05/16 18:31:48 christos Exp $ */
+/* $NetBSD: netbsd32_syscallargs.h,v 1.154 2020/10/10 00:03:52 rin Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.137 2020/04/26 19:18:36 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.139 2020/10/10 00:00:54 rin Exp
  */
 
 #ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@@ -471,6 +471,13 @@
 };
 check_syscall_args(netbsd32_dup2)
 
+struct netbsd32_getrandom_args {
+       syscallarg(netbsd32_voidp) buf;
+       syscallarg(netbsd32_size_t) buflen;
+       syscallarg(unsigned int) flags;
+};
+check_syscall_args(netbsd32_getrandom)
+
 struct netbsd32_fcntl_args {
        syscallarg(int) fd;
        syscallarg(int) cmd;
@@ -2928,6 +2935,8 @@
 
 int    netbsd32_dup2(struct lwp *, const struct netbsd32_dup2_args *, register_t *);
 
+int    netbsd32_getrandom(struct lwp *, const struct netbsd32_getrandom_args *, register_t *);
+
 int    netbsd32_fcntl(struct lwp *, const struct netbsd32_fcntl_args *, register_t *);
 
 int    compat_50_netbsd32_select(struct lwp *, const struct compat_50_netbsd32_select_args *, register_t *);
diff -r 6c666e741c6d -r 6812ed930422 sys/compat/netbsd32/netbsd32_syscalls.c
--- a/sys/compat/netbsd32/netbsd32_syscalls.c   Sat Oct 10 00:00:54 2020 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls.c   Sat Oct 10 00:03:52 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls.c,v 1.153 2020/05/16 18:31:48 christos Exp $ */
+/* $NetBSD: netbsd32_syscalls.c,v 1.154 2020/10/10 00:03:53 rin Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.137 2020/04/26 19:18:36 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.139 2020/10/10 00:00:54 rin Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.153 2020/05/16 18:31:48 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.154 2020/10/10 00:03:53 rin Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -121,7 +121,7 @@
        /*  88 */       "compat_43_netbsd32_osethostname",
        /*  89 */       "compat_43_ogetdtablesize",
        /*  90 */       "netbsd32_dup2",
-       /*  91 */       "#91 (unimplemented getdopt)",
+       /*  91 */       "netbsd32_getrandom",
        /*  92 */       "netbsd32_fcntl",
        /*  93 */       "compat_50_netbsd32_select",
        /*  94 */       "#94 (unimplemented setdopt)",
@@ -646,7 +646,7 @@
        /*  88 */       NULL, /* compat_43_netbsd32_osethostname */
        /*  89 */       NULL, /* compat_43_ogetdtablesize */
        /*  90 */       "dup2",
-       /*  91 */       NULL, /* unimplemented getdopt */
+       /*  91 */       "getrandom",
        /*  92 */       "fcntl",
        /*  93 */       NULL, /* compat_50_netbsd32_select */
        /*  94 */       NULL, /* unimplemented setdopt */
diff -r 6c666e741c6d -r 6812ed930422 sys/compat/netbsd32/netbsd32_syscalls_autoload.c
--- a/sys/compat/netbsd32/netbsd32_syscalls_autoload.c  Sat Oct 10 00:00:54 2020 +0000
+++ b/sys/compat/netbsd32/netbsd32_syscalls_autoload.c  Sat Oct 10 00:03:52 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.33 2020/05/16 18:31:48 christos Exp $ */
+/* $NetBSD: netbsd32_syscalls_autoload.c,v 1.34 2020/10/10 00:03:53 rin Exp $ */
 
 /*
  * System call autoload table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.137 2020/04/26 19:18:36 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.139 2020/10/10 00:00:54 rin Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.33 2020/05/16 18:31:48 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls_autoload.c,v 1.34 2020/10/10 00:03:53 rin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
diff -r 6c666e741c6d -r 6812ed930422 sys/compat/netbsd32/netbsd32_sysent.c
--- a/sys/compat/netbsd32/netbsd32_sysent.c     Sat Oct 10 00:00:54 2020 +0000
+++ b/sys/compat/netbsd32/netbsd32_sysent.c     Sat Oct 10 00:03:52 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: netbsd32_sysent.c,v 1.152 2020/05/16 18:31:48 christos Exp $ */
+/* $NetBSD: netbsd32_sysent.c,v 1.153 2020/10/10 00:03:53 rin Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.137 2020/04/26 19:18:36 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.139 2020/10/10 00:00:54 rin Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.152 2020/05/16 18:31:48 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.153 2020/10/10 00:03:53 rin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -476,8 +476,9 @@
                .sy_call = (sy_call_t *)netbsd32_dup2
        },              /* 90 = netbsd32_dup2 */
        {
-               .sy_call = sys_nosys,
-       },              /* 91 = filler */
+               ns(struct netbsd32_getrandom_args),
+               .sy_call = (sy_call_t *)netbsd32_getrandom
+       },              /* 91 = netbsd32_getrandom */
        {
                ns(struct netbsd32_fcntl_args),
                .sy_call = (sy_call_t *)netbsd32_fcntl
diff -r 6c666e741c6d -r 6812ed930422 sys/compat/netbsd32/netbsd32_systrace_args.c
--- a/sys/compat/netbsd32/netbsd32_systrace_args.c      Sat Oct 10 00:00:54 2020 +0000
+++ b/sys/compat/netbsd32/netbsd32_systrace_args.c      Sat Oct 10 00:03:52 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_systrace_args.c,v 1.44 2020/05/16 18:31:48 christos Exp $ */
+/* $NetBSD: netbsd32_systrace_args.c,v 1.45 2020/10/10 00:03:53 rin Exp $ */
 
 /*
  * System call argument to DTrace register array converstion.
@@ -663,6 +663,15 @@
                *n_args = 2;
                break;
        }
+       /* netbsd32_getrandom */
+       case 91: {
+               const struct netbsd32_getrandom_args *p = params;
+               uarg[0] = (intptr_t) SCARG(p, buf).i32; /* netbsd32_voidp */
+               iarg[1] = SCARG(p, buflen); /* netbsd32_size_t */
+               uarg[2] = SCARG(p, flags); /* unsigned int */
+               *n_args = 3;
+               break;
+       }
        /* netbsd32_fcntl */
        case 92: {
                const struct netbsd32_fcntl_args *p = params;
@@ -4685,6 +4694,22 @@
                        break;
                };
                break;
+       /* netbsd32_getrandom */
+       case 91:
+               switch(ndx) {
+               case 0:
+                       p = "netbsd32_voidp";
+                       break;
+               case 1:
+                       p = "netbsd32_size_t";
+                       break;
+               case 2:
+                       p = "unsigned int";
+                       break;
+               default:
+                       break;
+               };
+               break;
        /* netbsd32_fcntl */
        case 92:
                switch(ndx) {
@@ -10292,6 +10317,11 @@
                if (ndx == 0 || ndx == 1)
                        p = "int";
                break;
+       /* netbsd32_getrandom */
+       case 91:
+               if (ndx == 0 || ndx == 1)
+                       p = "netbsd32_ssize_t";
+               break;
        /* netbsd32_fcntl */
        case 92:
                if (ndx == 0 || ndx == 1)



Home | Main Index | Thread Index | Old Index