Source-Changes-HG archive

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

[src/trunk]: src/sys regen: time/timer related syscalls for rump kernels



details:   https://anonhg.NetBSD.org/src/rev/b7aa74fa6e46
branches:  trunk
changeset: 327682:b7aa74fa6e46
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Mar 14 00:56:37 2014 +0000

description:
regen: time/timer related syscalls for rump kernels

diffstat:

 sys/kern/init_sysent.c                    |    6 +-
 sys/kern/syscalls.c                       |    6 +-
 sys/rump/include/rump/rump_syscalls.h     |   82 +++++-
 sys/rump/librump/rumpkern/rump_syscalls.c |  460 +++++++++++++++++++++++++++--
 sys/sys/syscall.h                         |    4 +-
 sys/sys/syscallargs.h                     |   50 +--
 6 files changed, 525 insertions(+), 83 deletions(-)

diffs (truncated from 1026 to 300 lines):

diff -r 1f9c5505056c -r b7aa74fa6e46 sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c    Fri Mar 14 00:52:08 2014 +0000
+++ b/sys/kern/init_sysent.c    Fri Mar 14 00:56:37 2014 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: init_sysent.c,v 1.280 2013/12/11 09:45:02 pooka Exp $ */
+/* $NetBSD: init_sysent.c,v 1.281 2014/03/14 00:56:37 pooka Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.266 2013/12/11 09:40:56 pooka Exp
+ * created from        NetBSD: syscalls.master,v 1.267 2014/03/14 00:52:08 pooka Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.280 2013/12/11 09:45:02 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.281 2014/03/14 00:56:37 pooka Exp $");
 
 #include "opt_modular.h"
 #include "opt_ntp.h"
diff -r 1f9c5505056c -r b7aa74fa6e46 sys/kern/syscalls.c
--- a/sys/kern/syscalls.c       Fri Mar 14 00:52:08 2014 +0000
+++ b/sys/kern/syscalls.c       Fri Mar 14 00:56:37 2014 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls.c,v 1.271 2013/12/11 09:45:02 pooka Exp $ */
+/* $NetBSD: syscalls.c,v 1.272 2014/03/14 00:56:37 pooka Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.266 2013/12/11 09:40:56 pooka Exp
+ * created from        NetBSD: syscalls.master,v 1.267 2014/03/14 00:52:08 pooka Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.271 2013/12/11 09:45:02 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.272 2014/03/14 00:56:37 pooka Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_modular.h"
diff -r 1f9c5505056c -r b7aa74fa6e46 sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h     Fri Mar 14 00:52:08 2014 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h     Fri Mar 14 00:56:37 2014 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.h,v 1.72 2013/12/11 09:45:02 pooka Exp $ */
+/* $NetBSD: rump_syscalls.h,v 1.73 2014/03/14 00:56:38 pooka Exp $ */
 
 /*
  * System call protos in rump namespace.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.266 2013/12/11 09:40:56 pooka Exp
+ * created from        NetBSD: syscalls.master,v 1.267 2014/03/14 00:52:08 pooka Exp
  */
 
 #ifndef _RUMP_RUMP_SYSCALLS_H_
@@ -84,6 +84,10 @@
 #define RUMP_SYS_RENAME_KQUEUE1 rump___sysimpl_kqueue1
 #endif
 
+#ifndef RUMP_SYS_RENAME_TIMER_CREATE
+#define RUMP_SYS_RENAME_TIMER_CREATE rump___sysimpl_timer_create
+#endif
+
 #ifndef RUMP_SYS_RENAME_FLOCK
 #define RUMP_SYS_RENAME_FLOCK rump___sysimpl_flock
 #endif
@@ -112,6 +116,14 @@
 #define RUMP_SYS_RENAME___GETLOGIN rump___sysimpl___getlogin
 #endif
 
+#ifndef RUMP_SYS_RENAME_CLOCK_SETTIME
+#define RUMP_SYS_RENAME_CLOCK_SETTIME rump___sysimpl_clock_settime50
+#endif
+
+#ifndef RUMP_SYS_RENAME_CLOCK_GETTIME
+#define RUMP_SYS_RENAME_CLOCK_GETTIME rump___sysimpl_clock_gettime50
+#endif
+
 #ifndef RUMP_SYS_RENAME_SETEGID
 #define RUMP_SYS_RENAME_SETEGID rump___sysimpl_setegid
 #endif
@@ -140,6 +152,10 @@
 #define RUMP_SYS_RENAME_MKFIFOAT rump___sysimpl_mkfifoat
 #endif
 
+#ifndef RUMP_SYS_RENAME_CLOCK_GETRES
+#define RUMP_SYS_RENAME_CLOCK_GETRES rump___sysimpl_clock_getres50
+#endif
+
 #ifndef RUMP_SYS_RENAME_REBOOT
 #define RUMP_SYS_RENAME_REBOOT rump___sysimpl_reboot
 #endif
@@ -164,6 +180,10 @@
 #define RUMP_SYS_RENAME_DUP2 rump___sysimpl_dup2
 #endif
 
+#ifndef RUMP_SYS_RENAME_CLOCK_NANOSLEEP
+#define RUMP_SYS_RENAME_CLOCK_NANOSLEEP rump___sysimpl_clock_nanosleep
+#endif
+
 #ifndef RUMP_SYS_RENAME_FCHMODAT
 #define RUMP_SYS_RENAME_FCHMODAT rump___sysimpl_fchmodat
 #endif
@@ -196,6 +216,10 @@
 #define RUMP_SYS_RENAME_FDATASYNC rump___sysimpl_fdatasync
 #endif
 
+#ifndef RUMP_SYS_RENAME_SETITIMER
+#define RUMP_SYS_RENAME_SETITIMER rump___sysimpl_setitimer50
+#endif
+
 #ifndef RUMP_SYS_RENAME_PATHCONF
 #define RUMP_SYS_RENAME_PATHCONF rump___sysimpl_pathconf
 #endif
@@ -240,6 +264,10 @@
 #define RUMP_SYS_RENAME_SOCKET rump___sysimpl_socket30
 #endif
 
+#ifndef RUMP_SYS_RENAME_TIMER_GETOVERRUN
+#define RUMP_SYS_RENAME_TIMER_GETOVERRUN rump___sysimpl_timer_getoverrun
+#endif
+
 #ifndef RUMP_SYS_RENAME_RMDIR
 #define RUMP_SYS_RENAME_RMDIR rump___sysimpl_rmdir
 #endif
@@ -352,6 +380,10 @@
 #define RUMP_SYS_RENAME_REVOKE rump___sysimpl_revoke
 #endif
 
+#ifndef RUMP_SYS_RENAME_GETITIMER
+#define RUMP_SYS_RENAME_GETITIMER rump___sysimpl_getitimer50
+#endif
+
 #ifndef RUMP_SYS_RENAME_SETXATTR
 #define RUMP_SYS_RENAME_SETXATTR rump___sysimpl_setxattr
 #endif
@@ -404,6 +436,10 @@
 #define RUMP_SYS_RENAME_UTIMENSAT rump___sysimpl_utimensat
 #endif
 
+#ifndef RUMP_SYS_RENAME_ADJTIME
+#define RUMP_SYS_RENAME_ADJTIME rump___sysimpl_adjtime50
+#endif
+
 #ifndef RUMP_SYS_RENAME_PIPE2
 #define RUMP_SYS_RENAME_PIPE2 rump___sysimpl_pipe2
 #endif
@@ -436,6 +472,10 @@
 #define RUMP_SYS_RENAME_LREMOVEXATTR rump___sysimpl_lremovexattr
 #endif
 
+#ifndef RUMP_SYS_RENAME_TIMER_DELETE
+#define RUMP_SYS_RENAME_TIMER_DELETE rump___sysimpl_timer_delete
+#endif
+
 #ifndef RUMP_SYS_RENAME_CHROOT
 #define RUMP_SYS_RENAME_CHROOT rump___sysimpl_chroot
 #endif
@@ -464,6 +504,10 @@
 #define RUMP_SYS_RENAME_LSEEK rump___sysimpl_lseek
 #endif
 
+#ifndef RUMP_SYS_RENAME_SETTIMEOFDAY
+#define RUMP_SYS_RENAME_SETTIMEOFDAY rump___sysimpl_settimeofday50
+#endif
+
 #ifndef RUMP_SYS_RENAME_FHSTATVFS1
 #define RUMP_SYS_RENAME_FHSTATVFS1 rump___sysimpl_fhstatvfs140
 #endif
@@ -540,6 +584,10 @@
 #define RUMP_SYS_RENAME_GETPID_WITH_PPID rump___sysimpl_getpid
 #endif
 
+#ifndef RUMP_SYS_RENAME_NANOSLEEP
+#define RUMP_SYS_RENAME_NANOSLEEP rump___sysimpl_nanosleep50
+#endif
+
 #ifndef RUMP_SYS_RENAME_FUTIMES
 #define RUMP_SYS_RENAME_FUTIMES rump___sysimpl_futimes50
 #endif
@@ -548,6 +596,14 @@
 #define RUMP_SYS_RENAME_RENAMEAT rump___sysimpl_renameat
 #endif
 
+#ifndef RUMP_SYS_RENAME_TIMER_GETTIME
+#define RUMP_SYS_RENAME_TIMER_GETTIME rump___sysimpl_timer_gettime50
+#endif
+
+#ifndef RUMP_SYS_RENAME_TIMER_SETTIME
+#define RUMP_SYS_RENAME_TIMER_SETTIME rump___sysimpl_timer_settime50
+#endif
+
 #ifndef RUMP_SYS_RENAME_LSETXATTR
 #define RUMP_SYS_RENAME_LSETXATTR rump___sysimpl_lsetxattr
 #endif
@@ -592,6 +648,10 @@
 #define RUMP_SYS_RENAME_SYNC rump___sysimpl_sync
 #endif
 
+#ifndef RUMP_SYS_RENAME_GETTIMEOFDAY
+#define RUMP_SYS_RENAME_GETTIMEOFDAY rump___sysimpl_gettimeofday50
+#endif
+
 #ifndef RUMP_SYS_RENAME_SELECT
 #define RUMP_SYS_RENAME_SELECT rump___sysimpl_select50
 #endif
@@ -726,10 +786,13 @@
 struct iovec;
 struct rlimit;
 struct pollfd;
+struct sigevent;
 struct timespec;
 struct kevent;
 struct statvfs;
 struct stat;
+struct itimerval;
+struct itimerspec;
 struct quotactl_args;
 struct mmsghdr;
 
@@ -819,6 +882,9 @@
 pid_t rump_sys_getpgid(pid_t) __RENAME(RUMP_SYS_RENAME_GETPGID);
 int rump_sys_reboot(int, char *) __RENAME(RUMP_SYS_RENAME_REBOOT);
 int rump_sys_poll(struct pollfd *, u_int, int) __RENAME(RUMP_SYS_RENAME_POLL);
+int rump_sys_timer_create(clockid_t, struct sigevent *, timer_t *) __RENAME(RUMP_SYS_RENAME_TIMER_CREATE);
+int rump_sys_timer_delete(timer_t) __RENAME(RUMP_SYS_RENAME_TIMER_DELETE);
+int rump_sys_timer_getoverrun(timer_t) __RENAME(RUMP_SYS_RENAME_TIMER_GETOVERRUN);
 int rump_sys_fdatasync(int) __RENAME(RUMP_SYS_RENAME_FDATASYNC);
 int rump_sys_modctl(int, void *) __RENAME(RUMP_SYS_RENAME_MODCTL);
 int rump_sys__ksem_init(unsigned int, intptr_t *) __RENAME(RUMP_SYS_RENAME__KSEM_INIT);
@@ -887,6 +953,17 @@
 int rump_sys_fhstat(const void *, size_t, struct stat *) __RENAME(RUMP_SYS_RENAME_FHSTAT);
 int rump_sys_mount(const char *, const char *, int, void *, size_t) __RENAME(RUMP_SYS_RENAME_MOUNT);
 int rump_sys_posix_fadvise(int, off_t, off_t, int) __RENAME(RUMP_SYS_RENAME_POSIX_FADVISE);
+int rump_sys_gettimeofday(struct timeval *, void *) __RENAME(RUMP_SYS_RENAME_GETTIMEOFDAY);
+int rump_sys_settimeofday(const struct timeval *, const void *) __RENAME(RUMP_SYS_RENAME_SETTIMEOFDAY);
+int rump_sys_adjtime(const struct timeval *, struct timeval *) __RENAME(RUMP_SYS_RENAME_ADJTIME);
+int rump_sys_setitimer(int, const struct itimerval *, struct itimerval *) __RENAME(RUMP_SYS_RENAME_SETITIMER);
+int rump_sys_getitimer(int, struct itimerval *) __RENAME(RUMP_SYS_RENAME_GETITIMER);
+int rump_sys_clock_gettime(clockid_t, struct timespec *) __RENAME(RUMP_SYS_RENAME_CLOCK_GETTIME);
+int rump_sys_clock_settime(clockid_t, const struct timespec *) __RENAME(RUMP_SYS_RENAME_CLOCK_SETTIME);
+int rump_sys_clock_getres(clockid_t, struct timespec *) __RENAME(RUMP_SYS_RENAME_CLOCK_GETRES);
+int rump_sys_nanosleep(const struct timespec *, struct timespec *) __RENAME(RUMP_SYS_RENAME_NANOSLEEP);
+int rump_sys_timer_settime(timer_t, int, const struct itimerspec *, struct itimerspec *) __RENAME(RUMP_SYS_RENAME_TIMER_SETTIME);
+int rump_sys_timer_gettime(timer_t, struct itimerspec *) __RENAME(RUMP_SYS_RENAME_TIMER_GETTIME);
 int rump_sys_pipe2(int *, int) __RENAME(RUMP_SYS_RENAME_PIPE2);
 int rump_sys_dup3(int, int, int) __RENAME(RUMP_SYS_RENAME_DUP3);
 int rump_sys_kqueue1(int) __RENAME(RUMP_SYS_RENAME_KQUEUE1);
@@ -909,6 +986,7 @@
 int rump_sys___quotactl(const char *, struct quotactl_args *) __RENAME(RUMP_SYS_RENAME___QUOTACTL);
 int rump_sys_recvmmsg(int, struct mmsghdr *, unsigned int, unsigned int, struct timespec *) __RENAME(RUMP_SYS_RENAME_RECVMMSG);
 int rump_sys_sendmmsg(int, struct mmsghdr *, unsigned int, unsigned int) __RENAME(RUMP_SYS_RENAME_SENDMMSG);
+int rump_sys_clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *) __RENAME(RUMP_SYS_RENAME_CLOCK_NANOSLEEP);
 int rump_sys_pipe(int *);
 
 #endif /* _RUMP_RUMP_SYSCALLS_H_ */
diff -r 1f9c5505056c -r b7aa74fa6e46 sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Fri Mar 14 00:52:08 2014 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Fri Mar 14 00:56:37 2014 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.c,v 1.97 2013/12/11 09:45:02 pooka Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.98 2014/03/14 00:56:37 pooka Exp $ */
 
 /*
  * System call vector and marshalling for rump.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.266 2013/12/11 09:40:56 pooka Exp
+ * created from        NetBSD: syscalls.master,v 1.267 2014/03/14 00:52:08 pooka Exp
  */
 
 #ifdef RUMP_CLIENT
@@ -15,7 +15,7 @@
 
 #ifdef __NetBSD__
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.97 2013/12/11 09:45:02 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.98 2014/03/14 00:56:37 pooka Exp $");
 
 #include <sys/fstypes.h>
 #include <sys/proc.h>
@@ -2275,6 +2275,83 @@
 rsys_define(rumpns_sys_poll);
 rsys_aliases(poll,rump___sysimpl_poll);
 
+int rump___sysimpl_timer_create(clockid_t, struct sigevent *, timer_t *);
+int
+rump___sysimpl_timer_create(clockid_t clock_id, struct sigevent * evp, timer_t * timerid)
+{
+       register_t retval[2];
+       int error = 0;
+       int rv = -1;
+       struct sys_timer_create_args callarg;
+
+       memset(&callarg, 0, sizeof(callarg));
+       SPARG(&callarg, clock_id) = clock_id;
+       SPARG(&callarg, evp) = evp;



Home | Main Index | Thread Index | Old Index