diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2011-02-10 12:00:02 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2011-02-10 12:00:02 +0000 |
commit | a4931f7ac763e87e1eefeff7256f35802f3cffa2 (patch) | |
tree | 5cc8437a8592cc86f6b98360c605651f713817b7 | |
parent | 4521f131ed044a211de3cd530b55258e4e3adbeb (diff) |
Regenerate.
-rw-r--r-- | sys/compat/linux/linux_syscall.h | 8 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscallargs.h | 14 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscalls.c | 6 | ||||
-rw-r--r-- | sys/compat/linux/linux_sysent.c | 10 |
4 files changed, 28 insertions, 10 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h index f7ecc0b2d1f..11b170eb2ae 100644 --- a/sys/compat/linux/linux_syscall.h +++ b/sys/compat/linux/linux_syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_syscall.h,v 1.54 2010/06/30 21:54:35 guenther Exp $ */ +/* $OpenBSD: linux_syscall.h,v 1.55 2011/02/10 12:00:01 pirofti Exp $ */ /* * System call numbers. @@ -724,4 +724,10 @@ /* syscall: "linux_exit_group" ret: "int" args: "int" */ #define LINUX_SYS_linux_exit_group 252 +/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct l_timespec *" */ +#define LINUX_SYS_clock_gettime 265 + +/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct l_timespec *" */ +#define LINUX_SYS_clock_getres 266 + #define LINUX_SYS_MAXSYSCALL 268 diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index 2a1fecb3f2e..5dd5140c6b9 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_syscallargs.h,v 1.56 2010/06/30 21:54:35 guenther Exp $ */ +/* $OpenBSD: linux_syscallargs.h,v 1.57 2011/02/10 12:00:01 pirofti Exp $ */ /* * System call argument lists. @@ -538,6 +538,16 @@ struct linux_sys_fcntl64_args { syscallarg(void *) arg; }; +struct linux_sys_clock_gettime_args { + syscallarg(clockid_t) which; + syscallarg(struct l_timespec *) tp; +}; + +struct linux_sys_clock_getres_args { + syscallarg(clockid_t) which; + syscallarg(struct l_timespec *) tp; +}; + /* * System call prototypes. */ @@ -796,3 +806,5 @@ int linux_sys_lremovexattr(struct proc *, void *, register_t *); int linux_sys_fremovexattr(struct proc *, void *, register_t *); int linux_sys_fadvise64(struct proc *, void *, register_t *); int sys_exit(struct proc *, void *, register_t *); +int linux_sys_clock_gettime(struct proc *, void *, register_t *); +int linux_sys_clock_getres(struct proc *, void *, register_t *); diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c index e845708f293..f97f0cf04c9 100644 --- a/sys/compat/linux/linux_syscalls.c +++ b/sys/compat/linux/linux_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_syscalls.c,v 1.54 2010/06/30 21:54:35 guenther Exp $ */ +/* $OpenBSD: linux_syscalls.c,v 1.55 2011/02/10 12:00:01 pirofti Exp $ */ /* * System call names. @@ -293,7 +293,7 @@ char *linux_syscallnames[] = { "#262 (unimplemented linux_sys_timer_getoverrun)", /* 262 = unimplemented linux_sys_timer_getoverrun */ "#263 (unimplemented linux_sys_timer_delete)", /* 263 = unimplemented linux_sys_timer_delete */ "#264 (unimplemented linux_sys_clock_settime)", /* 264 = unimplemented linux_sys_clock_settime */ - "#265 (unimplemented linux_sys_clock_gettime)", /* 265 = unimplemented linux_sys_clock_gettime */ - "#266 (unimplemented linux_sys_clock_getres)", /* 266 = unimplemented linux_sys_clock_getres */ + "clock_gettime", /* 265 = clock_gettime */ + "clock_getres", /* 266 = clock_getres */ "#267 (unimplemented linux_sys_clock_nanosleep)", /* 267 = unimplemented linux_sys_clock_nanosleep */ }; diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c index 732be44fe7f..8b587cf04ba 100644 --- a/sys/compat/linux/linux_sysent.c +++ b/sys/compat/linux/linux_sysent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_sysent.c,v 1.55 2010/06/30 21:54:35 guenther Exp $ */ +/* $OpenBSD: linux_sysent.c,v 1.56 2011/02/10 12:00:01 pirofti Exp $ */ /* * System call switch table. @@ -576,10 +576,10 @@ struct sysent linux_sysent[] = { sys_nosys }, /* 263 = unimplemented linux_sys_timer_delete */ { 0, 0, 0, sys_nosys }, /* 264 = unimplemented linux_sys_clock_settime */ - { 0, 0, 0, - sys_nosys }, /* 265 = unimplemented linux_sys_clock_gettime */ - { 0, 0, 0, - sys_nosys }, /* 266 = unimplemented linux_sys_clock_getres */ + { 2, s(struct linux_sys_clock_gettime_args), 0, + linux_sys_clock_gettime }, /* 265 = clock_gettime */ + { 2, s(struct linux_sys_clock_getres_args), 0, + linux_sys_clock_getres }, /* 266 = clock_getres */ { 0, 0, 0, sys_nosys }, /* 267 = unimplemented linux_sys_clock_nanosleep */ }; |