Source-Changes-HG archive

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

[src/trunk]: src/sys regen



details:   https://anonhg.NetBSD.org/src/rev/f25a5197b1e6
branches:  trunk
changeset: 977837:f25a5197b1e6
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 02 18:56:15 2020 +0000

description:
regen

diffstat:

 sys/kern/init_sysent.c                    |   6 ++--
 sys/kern/syscalls.c                       |   6 ++--
 sys/kern/syscalls_autoload.c              |   6 ++--
 sys/kern/systrace_args.c                  |   2 +-
 sys/rump/include/rump/rump_syscalls.h     |   9 +++++-
 sys/rump/librump/rumpkern/rump_syscalls.c |  41 +++++++++++++++++++++++++++---
 sys/rump/rump.sysmap                      |   1 +
 sys/sys/syscall.h                         |   4 +-
 sys/sys/syscallargs.h                     |   6 +---
 9 files changed, 58 insertions(+), 23 deletions(-)

diffs (239 lines):

diff -r 00ec0271fa0d -r f25a5197b1e6 sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c    Mon Nov 02 18:55:12 2020 +0000
+++ b/sys/kern/init_sysent.c    Mon Nov 02 18:56:15 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: init_sysent.c,v 1.336 2020/08/14 00:55:02 riastradh Exp $ */
+/* $NetBSD: init_sysent.c,v 1.337 2020/11/02 18:56:16 christos Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.306 2020/08/14 00:53:16 riastradh Exp
+ * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.336 2020/08/14 00:55:02 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.337 2020/11/02 18:56:16 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
diff -r 00ec0271fa0d -r f25a5197b1e6 sys/kern/syscalls.c
--- a/sys/kern/syscalls.c       Mon Nov 02 18:55:12 2020 +0000
+++ b/sys/kern/syscalls.c       Mon Nov 02 18:56:15 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls.c,v 1.324 2020/08/14 00:55:02 riastradh Exp $ */
+/* $NetBSD: syscalls.c,v 1.325 2020/11/02 18:56:16 christos Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.306 2020/08/14 00:53:16 riastradh Exp
+ * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.324 2020/08/14 00:55:02 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.325 2020/11/02 18:56:16 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #ifdef _KERNEL_OPT
diff -r 00ec0271fa0d -r f25a5197b1e6 sys/kern/syscalls_autoload.c
--- a/sys/kern/syscalls_autoload.c      Mon Nov 02 18:55:12 2020 +0000
+++ b/sys/kern/syscalls_autoload.c      Mon Nov 02 18:56:15 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls_autoload.c,v 1.40 2020/06/11 03:45:30 dholland Exp $ */
+/* $NetBSD: syscalls_autoload.c,v 1.41 2020/11/02 18:56:16 christos Exp $ */
 
 /*
  * System call autoload table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.305 2020/05/16 18:31:50 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.40 2020/06/11 03:45:30 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.41 2020/11/02 18:56:16 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
diff -r 00ec0271fa0d -r f25a5197b1e6 sys/kern/systrace_args.c
--- a/sys/kern/systrace_args.c  Mon Nov 02 18:55:12 2020 +0000
+++ b/sys/kern/systrace_args.c  Mon Nov 02 18:56:15 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systrace_args.c,v 1.43 2020/08/14 00:55:02 riastradh Exp $ */
+/* $NetBSD: systrace_args.c,v 1.44 2020/11/02 18:56:16 christos Exp $ */
 
 /*
  * System call argument to DTrace register array converstion.
diff -r 00ec0271fa0d -r f25a5197b1e6 sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h     Mon Nov 02 18:55:12 2020 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h     Mon Nov 02 18:56:15 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.h,v 1.123 2020/08/14 00:55:03 riastradh Exp $ */
+/* $NetBSD: rump_syscalls.h,v 1.124 2020/11/02 18:56:16 christos Exp $ */
 
 /*
  * System call protos in rump namespace.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.306 2020/08/14 00:53:16 riastradh Exp
+ * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
  */
 
 #ifndef _RUMP_RUMP_SYSCALLS_H_
@@ -156,6 +156,10 @@
 #define RUMP_SYS_RENAME_CHROOT rump___sysimpl_chroot
 #endif
 
+#ifndef RUMP_SYS_RENAME_CLOCK_GETCPUCLOCKID2
+#define RUMP_SYS_RENAME_CLOCK_GETCPUCLOCKID2 rump___sysimpl_clock_getcpuclockid2
+#endif
+
 #ifndef RUMP_SYS_RENAME_CLOCK_GETRES
 #define RUMP_SYS_RENAME_CLOCK_GETRES rump___sysimpl_clock_getres50
 #endif
@@ -1068,6 +1072,7 @@
 int rump_sys_clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *) __RENAME(RUMP_SYS_RENAME_CLOCK_NANOSLEEP);
 int rump_sys_posix_fallocate(int, off_t, off_t) __RENAME(RUMP_SYS_RENAME_POSIX_FALLOCATE);
 int rump_sys_fdiscard(int, off_t, off_t) __RENAME(RUMP_SYS_RENAME_FDISCARD);
+int rump_sys_clock_getcpuclockid2(idtype_t, id_t, clockid_t *) __RENAME(RUMP_SYS_RENAME_CLOCK_GETCPUCLOCKID2);
 int rump_sys_getvfsstat(struct statvfs *, size_t, int) __RENAME(RUMP_SYS_RENAME_GETVFSSTAT);
 int rump_sys_statvfs1(const char *, struct statvfs *, int) __RENAME(RUMP_SYS_RENAME_STATVFS1);
 int rump_sys_fstatvfs1(int, struct statvfs *, int) __RENAME(RUMP_SYS_RENAME_FSTATVFS1);
diff -r 00ec0271fa0d -r f25a5197b1e6 sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Mon Nov 02 18:55:12 2020 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Mon Nov 02 18:56:15 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.c,v 1.154 2020/08/14 00:55:03 riastradh Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.155 2020/11/02 18:56:16 christos Exp $ */
 
 /*
  * System call vector and marshalling for rump.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.306 2020/08/14 00:53:16 riastradh Exp
+ * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
  */
 
 #ifdef RUMP_CLIENT
@@ -15,7 +15,7 @@
 
 #ifdef __NetBSD__
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.154 2020/08/14 00:55:03 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.155 2020/11/02 18:56:16 christos Exp $");
 
 #include <sys/fstypes.h>
 #include <sys/proc.h>
@@ -6428,6 +6428,36 @@
 __strong_alias(_sys_fdiscard,rump___sysimpl_fdiscard);
 #endif /* RUMP_KERNEL_IS_LIBC */
 
+int rump___sysimpl_clock_getcpuclockid2(idtype_t, id_t, clockid_t *);
+int
+rump___sysimpl_clock_getcpuclockid2(idtype_t idtype, id_t id, clockid_t * clock_id)
+{
+       register_t retval[2];
+       int error = 0;
+       int rv = -1;
+       struct sys_clock_getcpuclockid2_args callarg;
+
+       memset(&callarg, 0, sizeof(callarg));
+       SPARG(&callarg, idtype) = idtype;
+       SPARG(&callarg, id) = id;
+       SPARG(&callarg, clock_id) = clock_id;
+
+       error = rsys_syscall(SYS_clock_getcpuclockid2, &callarg, sizeof(callarg), retval);
+       rsys_seterrno(error);
+       if (error == 0) {
+               if (sizeof(int) > sizeof(register_t))
+                       rv = *(int *)retval;
+               else
+                       rv = *retval;
+       }
+       return rv;
+}
+#ifdef RUMP_KERNEL_IS_LIBC
+__weak_alias(clock_getcpuclockid2,rump___sysimpl_clock_getcpuclockid2);
+__weak_alias(_clock_getcpuclockid2,rump___sysimpl_clock_getcpuclockid2);
+__strong_alias(_sys_clock_getcpuclockid2,rump___sysimpl_clock_getcpuclockid2);
+#endif /* RUMP_KERNEL_IS_LIBC */
+
 int rump___sysimpl_getvfsstat90(struct statvfs *, size_t, int);
 int
 rump___sysimpl_getvfsstat90(struct statvfs * buf, size_t bufsize, int flags)
@@ -8485,8 +8515,9 @@
                .sy_call = (sy_call_t *)(void *)rumpns_enosys,
 },             /* 481 = wait6 */
        {
-               .sy_call = (sy_call_t *)(void *)rumpns_enosys,
-},             /* 482 = clock_getcpuclockid2 */
+               ns(struct sys_clock_getcpuclockid2_args),
+               .sy_call = (sy_call_t *)(void *)rumpns_enosys,
+       },              /* 482 = clock_getcpuclockid2 */
        {
                ns(struct sys___getvfsstat90_args),
                .sy_call = (sy_call_t *)(void *)rumpns_enosys,
diff -r 00ec0271fa0d -r f25a5197b1e6 sys/rump/rump.sysmap
--- a/sys/rump/rump.sysmap      Mon Nov 02 18:55:12 2020 +0000
+++ b/sys/rump/rump.sysmap      Mon Nov 02 18:56:15 2020 +0000
@@ -214,6 +214,7 @@
 477  sys_clock_nanosleep    clock_nanosleep    rump___sysimpl_clock_nanosleep
 479  sys_posix_fallocate    posix_fallocate    rump___sysimpl_posix_fallocate
 480  sys_fdiscard           fdiscard           rump___sysimpl_fdiscard
+482  sys_clock_getcpuclockid2 clock_getcpuclockid2 rump___sysimpl_clock_getcpuclockid2
 483  sys___getvfsstat90     __getvfsstat90     rump___sysimpl_getvfsstat90
 484  sys___statvfs190       __statvfs190       rump___sysimpl_statvfs190
 485  sys___fstatvfs190      __fstatvfs190      rump___sysimpl_fstatvfs190
diff -r 00ec0271fa0d -r f25a5197b1e6 sys/sys/syscall.h
--- a/sys/sys/syscall.h Mon Nov 02 18:55:12 2020 +0000
+++ b/sys/sys/syscall.h Mon Nov 02 18:56:15 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: syscall.h,v 1.318 2020/08/14 00:55:03 riastradh Exp $ */
+/* $NetBSD: syscall.h,v 1.319 2020/11/02 18:56:15 christos Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.306 2020/08/14 00:53:16 riastradh Exp
+ * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
  */
 
 #ifndef _SYS_SYSCALL_H_
diff -r 00ec0271fa0d -r f25a5197b1e6 sys/sys/syscallargs.h
--- a/sys/sys/syscallargs.h     Mon Nov 02 18:55:12 2020 +0000
+++ b/sys/sys/syscallargs.h     Mon Nov 02 18:56:15 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: syscallargs.h,v 1.302 2020/08/14 00:55:03 riastradh Exp $ */
+/* $NetBSD: syscallargs.h,v 1.303 2020/11/02 18:56:15 christos Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.306 2020/08/14 00:53:16 riastradh Exp
+ * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
  */
 
 #ifndef _SYS_SYSCALLARGS_H_
@@ -3175,14 +3175,12 @@
 check_syscall_args(sys_wait6)
 #endif /* !RUMP_CLIENT */
 
-#ifndef RUMP_CLIENT
 struct sys_clock_getcpuclockid2_args {
        syscallarg(idtype_t) idtype;
        syscallarg(id_t) id;
        syscallarg(clockid_t *) clock_id;
 };
 check_syscall_args(sys_clock_getcpuclockid2)
-#endif /* !RUMP_CLIENT */
 
 struct sys___getvfsstat90_args {
        syscallarg(struct statvfs *) buf;



Home | Main Index | Thread Index | Old Index