diff options
author | 2014-08-31 01:47:17 +0000 | |
---|---|---|
committer | 2014-08-31 01:47:17 +0000 | |
commit | ece0e365f6897bb8ff242d84c359f738b0b98f74 (patch) | |
tree | b6a9fe17da041fb2bdcd8b1d5b8c5c3b400b938e | |
parent | Add additional kernel interfaces for setting close-on-exec on fds (diff) | |
download | wireguard-openbsd-ece0e365f6897bb8ff242d84c359f738b0b98f74.tar.xz wireguard-openbsd-ece0e365f6897bb8ff242d84c359f738b0b98f74.zip |
regen
-rw-r--r-- | sys/kern/init_sysent.c | 16 | ||||
-rw-r--r-- | sys/kern/syscalls.c | 10 | ||||
-rw-r--r-- | sys/sys/syscall.h | 16 | ||||
-rw-r--r-- | sys/sys/syscallargs.h | 25 |
4 files changed, 47 insertions, 20 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index b23becbdc1c..7b047b5a432 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -1,10 +1,10 @@ -/* $OpenBSD: init_sysent.c,v 1.155 2014/07/10 08:58:30 deraadt Exp $ */ +/* $OpenBSD: init_sysent.c,v 1.156 2014/08/31 01:47:17 guenther Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.143 2014/07/10 08:55:35 deraadt Exp + * created from; OpenBSD: syscalls.master,v 1.144 2014/08/31 01:42:36 guenther Exp */ #include <sys/param.h> @@ -219,8 +219,8 @@ struct sysent sysent[] = { sys_nanosleep }, /* 91 = nanosleep */ { 3, s(struct sys_fcntl_args), 0, sys_fcntl }, /* 92 = fcntl */ - { 0, 0, 0, - sys_nosys }, /* 93 = obsolete t32_select */ + { 4, s(struct sys_accept4_args), 0, + sys_accept4 }, /* 93 = accept4 */ { 5, s(struct sys___thrsleep_args), 0, sys___thrsleep }, /* 94 = __thrsleep */ { 1, s(struct sys_fsync_args), 0, @@ -235,10 +235,10 @@ struct sysent sysent[] = { sys_getdents }, /* 99 = getdents */ { 2, s(struct sys_getpriority_args), 0, sys_getpriority }, /* 100 = getpriority */ - { 0, 0, 0, - sys_nosys }, /* 101 = obsolete osend */ - { 0, 0, 0, - sys_nosys }, /* 102 = obsolete orecv */ + { 2, s(struct sys_pipe2_args), 0, + sys_pipe2 }, /* 101 = pipe2 */ + { 3, s(struct sys_dup3_args), 0, + sys_dup3 }, /* 102 = dup3 */ { 1, s(struct sys_sigreturn_args), 0, sys_sigreturn }, /* 103 = sigreturn */ { 3, s(struct sys_bind_args), 0, diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index d030db6bec1..b01a7342bf5 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -1,10 +1,10 @@ -/* $OpenBSD: syscalls.c,v 1.156 2014/07/10 08:58:30 deraadt Exp $ */ +/* $OpenBSD: syscalls.c,v 1.157 2014/08/31 01:47:17 guenther Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.143 2014/07/10 08:55:35 deraadt Exp + * created from; OpenBSD: syscalls.master,v 1.144 2014/08/31 01:42:36 guenther Exp */ char *syscallnames[] = { @@ -113,7 +113,7 @@ char *syscallnames[] = { "dup2", /* 90 = dup2 */ "nanosleep", /* 91 = nanosleep */ "fcntl", /* 92 = fcntl */ - "#93 (obsolete t32_select)", /* 93 = obsolete t32_select */ + "accept4", /* 93 = accept4 */ "__thrsleep", /* 94 = __thrsleep */ "fsync", /* 95 = fsync */ "setpriority", /* 96 = setpriority */ @@ -121,8 +121,8 @@ char *syscallnames[] = { "connect", /* 98 = connect */ "getdents", /* 99 = getdents */ "getpriority", /* 100 = getpriority */ - "#101 (obsolete osend)", /* 101 = obsolete osend */ - "#102 (obsolete orecv)", /* 102 = obsolete orecv */ + "pipe2", /* 101 = pipe2 */ + "dup3", /* 102 = dup3 */ "sigreturn", /* 103 = sigreturn */ "bind", /* 104 = bind */ "setsockopt", /* 105 = setsockopt */ diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index bccc36cf263..9a9b2ae816b 100644 --- a/sys/sys/syscall.h +++ b/sys/sys/syscall.h @@ -1,10 +1,10 @@ -/* $OpenBSD: syscall.h,v 1.155 2014/07/10 08:58:30 deraadt Exp $ */ +/* $OpenBSD: syscall.h,v 1.156 2014/08/31 01:47:17 guenther Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.143 2014/07/10 08:55:35 deraadt Exp + * created from; OpenBSD: syscalls.master,v 1.144 2014/08/31 01:42:36 guenther Exp */ /* syscall: "syscall" ret: "int" args: "int" "..." */ @@ -284,7 +284,9 @@ /* syscall: "fcntl" ret: "int" args: "int" "int" "..." */ #define SYS_fcntl 92 - /* 93 is obsolete t32_select */ +/* syscall: "accept4" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" "int" */ +#define SYS_accept4 93 + /* syscall: "__thrsleep" ret: "int" args: "const volatile void *" "clockid_t" "const struct timespec *" "void *" "const int *" */ #define SYS___thrsleep 94 @@ -306,8 +308,12 @@ /* syscall: "getpriority" ret: "int" args: "int" "id_t" */ #define SYS_getpriority 100 - /* 101 is obsolete osend */ - /* 102 is obsolete orecv */ +/* syscall: "pipe2" ret: "int" args: "int *" "int" */ +#define SYS_pipe2 101 + +/* syscall: "dup3" ret: "int" args: "int" "int" "int" */ +#define SYS_dup3 102 + /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */ #define SYS_sigreturn 103 diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h index 68a079a3d25..7130df17cb4 100644 --- a/sys/sys/syscallargs.h +++ b/sys/sys/syscallargs.h @@ -1,10 +1,10 @@ -/* $OpenBSD: syscallargs.h,v 1.157 2014/07/10 08:58:30 deraadt Exp $ */ +/* $OpenBSD: syscallargs.h,v 1.158 2014/08/31 01:47:17 guenther Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from; OpenBSD: syscalls.master,v 1.143 2014/07/10 08:55:35 deraadt Exp + * created from; OpenBSD: syscalls.master,v 1.144 2014/08/31 01:42:36 guenther Exp */ #ifdef syscallarg @@ -449,6 +449,13 @@ struct sys_fcntl_args { syscallarg(void *) arg; }; +struct sys_accept4_args { + syscallarg(int) s; + syscallarg(struct sockaddr *) name; + syscallarg(socklen_t *) anamelen; + syscallarg(int) flags; +}; + struct sys___thrsleep_args { syscallarg(const volatile void *) ident; syscallarg(clockid_t) clock_id; @@ -490,6 +497,17 @@ struct sys_getpriority_args { syscallarg(id_t) who; }; +struct sys_pipe2_args { + syscallarg(int *) fdp; + syscallarg(int) flags; +}; + +struct sys_dup3_args { + syscallarg(int) from; + syscallarg(int) to; + syscallarg(int) flags; +}; + struct sys_sigreturn_args { syscallarg(struct sigcontext *) sigcntxp; }; @@ -1149,6 +1167,7 @@ int sys_clock_getres(struct proc *, void *, register_t *); int sys_dup2(struct proc *, void *, register_t *); int sys_nanosleep(struct proc *, void *, register_t *); int sys_fcntl(struct proc *, void *, register_t *); +int sys_accept4(struct proc *, void *, register_t *); int sys___thrsleep(struct proc *, void *, register_t *); int sys_fsync(struct proc *, void *, register_t *); int sys_setpriority(struct proc *, void *, register_t *); @@ -1156,6 +1175,8 @@ int sys_socket(struct proc *, void *, register_t *); int sys_connect(struct proc *, void *, register_t *); int sys_getdents(struct proc *, void *, register_t *); int sys_getpriority(struct proc *, void *, register_t *); +int sys_pipe2(struct proc *, void *, register_t *); +int sys_dup3(struct proc *, void *, register_t *); int sys_sigreturn(struct proc *, void *, register_t *); int sys_bind(struct proc *, void *, register_t *); int sys_setsockopt(struct proc *, void *, register_t *); |