diff options
author | 2011-04-05 15:46:10 +0000 | |
---|---|---|
committer | 2011-04-05 15:46:10 +0000 | |
commit | cd152769d19a46917c038157d971e46a039d829e (patch) | |
tree | 0791cc2932cf6482fbac2a198fec9eeded9ee95b | |
parent | Add set_tid_address() syscall. Lots of help from and okay guenther@. (diff) | |
download | wireguard-openbsd-cd152769d19a46917c038157d971e46a039d829e.tar.xz wireguard-openbsd-cd152769d19a46917c038157d971e46a039d829e.zip |
Regenerate -- linux_sys_set_tid_address().
-rw-r--r-- | sys/compat/linux/linux_syscall.h | 9 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscallargs.h | 12 | ||||
-rw-r--r-- | sys/compat/linux/linux_syscalls.c | 6 | ||||
-rw-r--r-- | sys/compat/linux/linux_sysent.c | 10 |
4 files changed, 24 insertions, 13 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h index 0412ef59654..b457aecd41b 100644 --- a/sys/compat/linux/linux_syscall.h +++ b/sys/compat/linux/linux_syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscall.h,v 1.57 2011/04/04 21:53:50 pirofti Exp $ */ +/* $OpenBSD: linux_syscall.h,v 1.58 2011/04/05 15:46:10 pirofti Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.53 2011/02/11 21:40:04 pirofti Exp + * created from OpenBSD: syscalls.master,v 1.54 2011/04/04 21:50:41 pirofti Exp */ /* syscall: "syscall" ret: "int" args: */ @@ -373,7 +373,7 @@ /* syscall: "sigreturn" ret: "int" args: "struct linux_sigcontext *" */ #define LINUX_SYS_sigreturn 119 -/* syscall: "clone" ret: "int" args: "int" "void *" */ +/* syscall: "clone" ret: "int" args: "int" "void *" "void *" "void *" "void *" */ #define LINUX_SYS_clone 120 /* syscall: "setdomainname" ret: "int" args: "char *" "int" */ @@ -730,6 +730,9 @@ /* syscall: "linux_exit_group" ret: "int" args: "int" */ #define LINUX_SYS_linux_exit_group 252 +/* syscall: "set_tid_address" ret: "int" args: "void *" */ +#define LINUX_SYS_set_tid_address 258 + /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct l_timespec *" */ #define LINUX_SYS_clock_gettime 265 diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index c8b7a16f4f9..6c63dbadc24 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscallargs.h,v 1.59 2011/04/04 21:53:50 pirofti Exp $ */ +/* $OpenBSD: linux_syscallargs.h,v 1.60 2011/04/05 15:46:10 pirofti Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.53 2011/02/11 21:40:04 pirofti Exp + * created from OpenBSD: syscalls.master,v 1.54 2011/04/04 21:50:41 pirofti Exp */ #ifdef syscallarg @@ -315,6 +315,9 @@ struct linux_sys_sigreturn_args { struct linux_sys_clone_args { syscallarg(int) flags; syscallarg(void *) stack; + syscallarg(void *) parent_tidptr; + syscallarg(void *) tls; + syscallarg(void *) child_tidptr; }; struct linux_sys_uname_args { @@ -552,6 +555,10 @@ struct linux_sys_get_thread_area_args { syscallarg(struct l_segment_descriptor *) desc; }; +struct linux_sys_set_tid_address_args { + syscallarg(void *) tidptr; +}; + struct linux_sys_clock_gettime_args { syscallarg(clockid_t) which; syscallarg(struct l_timespec *) tp; @@ -822,5 +829,6 @@ int linux_sys_set_thread_area(struct proc *, void *, register_t *); int linux_sys_get_thread_area(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_set_tid_address(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 2796049e33c..0f4cca41282 100644 --- a/sys/compat/linux/linux_syscalls.c +++ b/sys/compat/linux/linux_syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_syscalls.c,v 1.57 2011/04/04 21:53:50 pirofti Exp $ */ +/* $OpenBSD: linux_syscalls.c,v 1.58 2011/04/05 15:46:10 pirofti Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.53 2011/02/11 21:40:04 pirofti Exp + * created from OpenBSD: syscalls.master,v 1.54 2011/04/04 21:50:41 pirofti Exp */ char *linux_syscallnames[] = { @@ -286,7 +286,7 @@ char *linux_syscallnames[] = { "#255 (unimplemented linux_sys_epoll_ctl)", /* 255 = unimplemented linux_sys_epoll_ctl */ "#256 (unimplemented linux_sys_epoll_wait)", /* 256 = unimplemented linux_sys_epoll_wait */ "#257 (unimplemented linux_sys_remap_file_pages)", /* 257 = unimplemented linux_sys_remap_file_pages */ - "#258 (unimplemented linux_sys_set_tid_address)", /* 258 = unimplemented linux_sys_set_tid_address */ + "set_tid_address", /* 258 = set_tid_address */ "#259 (unimplemented linux_sys_timer_create)", /* 259 = unimplemented linux_sys_timer_create */ "#260 (unimplemented linux_sys_timer_settime)", /* 260 = unimplemented linux_sys_timer_settime */ "#261 (unimplemented linux_sys_timer_gettime)", /* 261 = unimplemented linux_sys_timer_gettime */ diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c index e5b8a2371f6..0474613e5ab 100644 --- a/sys/compat/linux/linux_sysent.c +++ b/sys/compat/linux/linux_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: linux_sysent.c,v 1.58 2011/04/04 21:53:50 pirofti Exp $ */ +/* $OpenBSD: linux_sysent.c,v 1.59 2011/04/05 15:46:10 pirofti Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.53 2011/02/11 21:40:04 pirofti Exp + * created from OpenBSD: syscalls.master,v 1.54 2011/04/04 21:50:41 pirofti Exp */ #include <sys/param.h> @@ -281,7 +281,7 @@ struct sysent linux_sysent[] = { sys_fsync }, /* 118 = fsync */ { 1, s(struct linux_sys_sigreturn_args), 0, linux_sys_sigreturn }, /* 119 = sigreturn */ - { 2, s(struct linux_sys_clone_args), 0, + { 5, s(struct linux_sys_clone_args), 0, linux_sys_clone }, /* 120 = clone */ { 2, s(struct compat_09_sys_setdomainname_args), 0, compat_09_sys_setdomainname }, /* 121 = setdomainname */ @@ -562,8 +562,8 @@ struct sysent linux_sysent[] = { sys_nosys }, /* 256 = unimplemented linux_sys_epoll_wait */ { 0, 0, 0, sys_nosys }, /* 257 = unimplemented linux_sys_remap_file_pages */ - { 0, 0, 0, - sys_nosys }, /* 258 = unimplemented linux_sys_set_tid_address */ + { 1, s(struct linux_sys_set_tid_address_args), 0, + linux_sys_set_tid_address }, /* 258 = set_tid_address */ { 0, 0, 0, sys_nosys }, /* 259 = unimplemented linux_sys_timer_create */ { 0, 0, 0, |