summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-05-18 08:54:15 +0000
committerderaadt <deraadt@openbsd.org>1996-05-18 08:54:15 +0000
commit805cf25dc9637c14fd280b1ff9da28631d429e5f (patch)
tree6097f5ee33d385f13205abc578606e811e189450 /sys
parentpoll() as a system call (diff)
downloadwireguard-openbsd-805cf25dc9637c14fd280b1ff9da28631d429e5f.tar.xz
wireguard-openbsd-805cf25dc9637c14fd280b1ff9da28631d429e5f.zip
sync to syscalls.master
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/init_sysent.c5
-rw-r--r--sys/kern/syscalls.c3
-rw-r--r--sys/sys/syscall.h5
-rw-r--r--sys/sys/syscallargs.h9
4 files changed, 17 insertions, 5 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index 04c53519fb4..56b4a703284 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -2,7 +2,7 @@
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD
+ * created from OpenBSD: syscalls.master,v 1.9 1996/05/18 08:53:10 deraadt Exp
*/
#include <sys/param.h>
@@ -10,6 +10,7 @@
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
+#include <sys/poll.h>
#ifdef COMPAT_43
#define compat_43(func) __CONCAT(compat_43_,func)
@@ -645,5 +646,7 @@ struct sysent sysent[] = {
sys_minherit }, /* 250 = minherit */
{ 1, s(struct sys_rfork_args),
sys_rfork }, /* 251 = rfork */
+ { 3, s(struct sys_poll_args),
+ sys_poll }, /* 252 = poll */
};
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c
index 27d064051ed..9e3fb6bc9e3 100644
--- a/sys/kern/syscalls.c
+++ b/sys/kern/syscalls.c
@@ -2,7 +2,7 @@
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD
+ * created from OpenBSD: syscalls.master,v 1.9 1996/05/18 08:53:10 deraadt Exp
*/
char *syscallnames[] = {
@@ -332,4 +332,5 @@ char *syscallnames[] = {
"#249 (unimplemented)", /* 249 = unimplemented */
"minherit", /* 250 = minherit */
"rfork", /* 251 = rfork */
+ "poll", /* 252 = poll */
};
diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h
index 352df46fa1f..28d5124c914 100644
--- a/sys/sys/syscall.h
+++ b/sys/sys/syscall.h
@@ -2,7 +2,7 @@
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD
+ * created from OpenBSD: syscalls.master,v 1.9 1996/05/18 08:53:10 deraadt Exp
*/
#define SYS_syscall 0
@@ -208,4 +208,5 @@
#define SYS_shmget 231
#define SYS_minherit 250
#define SYS_rfork 251
-#define SYS_MAXSYSCALL 252
+#define SYS_poll 252
+#define SYS_MAXSYSCALL 253
diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h
index b49020dc494..679cd4bc7cc 100644
--- a/sys/sys/syscallargs.h
+++ b/sys/sys/syscallargs.h
@@ -2,7 +2,7 @@
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD
+ * created from OpenBSD: syscalls.master,v 1.9 1996/05/18 08:53:10 deraadt Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
@@ -963,6 +963,12 @@ struct sys_rfork_args {
syscallarg(int) flags;
};
+struct sys_poll_args {
+ syscallarg(struct pollfd *) fds;
+ syscallarg(unsigned long) nfds;
+ syscallarg(int) timeout;
+};
+
/*
* System call prototypes.
*/
@@ -1210,3 +1216,4 @@ int sys_shmget __P((struct proc *, void *, register_t *));
#endif
int sys_minherit __P((struct proc *, void *, register_t *));
int sys_rfork __P((struct proc *, void *, register_t *));
+int sys_poll __P((struct proc *, void *, register_t *));