summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-03-09 15:12:52 +0000
committerart <art@openbsd.org>2001-03-09 15:12:52 +0000
commit818eee66a878bcffc728a482fd6c52a94e64ff8b (patch)
tree215accc5d6c77fdb0bee7f8b64a48500a3604aa7
parentAdd mlockall and munlockall (dummy for the old vm system). (diff)
downloadwireguard-openbsd-818eee66a878bcffc728a482fd6c52a94e64ff8b.tar.xz
wireguard-openbsd-818eee66a878bcffc728a482fd6c52a94e64ff8b.zip
regen
-rw-r--r--sys/kern/init_sysent.c8
-rw-r--r--sys/kern/syscalls.c6
-rw-r--r--sys/sys/syscall.h12
-rw-r--r--sys/sys/syscallargs.h10
4 files changed, 27 insertions, 9 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index 3ca7923843f..3d35692a03e 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: init_sysent.c,v 1.48 2000/11/16 20:04:09 provos Exp $ */
+/* $OpenBSD: init_sysent.c,v 1.49 2001/03/09 15:12:52 art Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.43 2000/11/16 20:02:17 provos Exp
+ * created from; OpenBSD: syscalls.master,v 1.44 2001/03/09 15:11:47 art Exp
*/
#include <sys/param.h>
@@ -691,5 +691,9 @@ struct sysent sysent[] = {
sys_kqueue }, /* 269 = kqueue */
{ 6, s(struct sys_kevent_args),
sys_kevent }, /* 270 = kevent */
+ { 1, s(struct sys_mlockall_args),
+ sys_mlockall }, /* 271 = mlockall */
+ { 0, 0,
+ sys_munlockall }, /* 272 = munlockall */
};
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c
index 185fa791b76..de384bf0a0d 100644
--- a/sys/kern/syscalls.c
+++ b/sys/kern/syscalls.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscalls.c,v 1.48 2000/11/16 20:04:09 provos Exp $ */
+/* $OpenBSD: syscalls.c,v 1.49 2001/03/09 15:12:52 art Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.43 2000/11/16 20:02:17 provos Exp
+ * created from; OpenBSD: syscalls.master,v 1.44 2001/03/09 15:11:47 art Exp
*/
char *syscallnames[] = {
@@ -357,4 +357,6 @@ char *syscallnames[] = {
"pwritev", /* 268 = pwritev */
"kqueue", /* 269 = kqueue */
"kevent", /* 270 = kevent */
+ "mlockall", /* 271 = mlockall */
+ "munlockall", /* 272 = munlockall */
};
diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h
index 9e1415d4921..a775dabbedf 100644
--- a/sys/sys/syscall.h
+++ b/sys/sys/syscall.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscall.h,v 1.47 2000/11/16 20:04:09 provos Exp $ */
+/* $OpenBSD: syscall.h,v 1.48 2001/03/09 15:12:53 art Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.43 2000/11/16 20:02:17 provos Exp
+ * created from; OpenBSD: syscalls.master,v 1.44 2001/03/09 15:11:47 art Exp
*/
/* syscall: "syscall" ret: "int" args: "int" "..." */
@@ -636,4 +636,10 @@
/* syscall: "kevent" ret: "int" args: "int" "const struct kevent *" "int" "struct kevent *" "int" "const struct timespec *" */
#define SYS_kevent 270
-#define SYS_MAXSYSCALL 271
+/* syscall: "mlockall" ret: "int" args: "int" */
+#define SYS_mlockall 271
+
+/* syscall: "munlockall" ret: "int" args: */
+#define SYS_munlockall 272
+
+#define SYS_MAXSYSCALL 273
diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h
index 578ca50a08a..d5a65dc5cb7 100644
--- a/sys/sys/syscallargs.h
+++ b/sys/sys/syscallargs.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscallargs.h,v 1.48 2000/11/16 20:04:09 provos Exp $ */
+/* $OpenBSD: syscallargs.h,v 1.49 2001/03/09 15:12:53 art Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.43 2000/11/16 20:02:17 provos Exp
+ * created from; OpenBSD: syscalls.master,v 1.44 2001/03/09 15:11:47 art Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
@@ -1111,6 +1111,10 @@ struct sys_kevent_args {
syscallarg(const struct timespec *) timeout;
};
+struct sys_mlockall_args {
+ syscallarg(int) flags;
+};
+
/*
* System call prototypes.
*/
@@ -1385,3 +1389,5 @@ int sys_preadv __P((struct proc *, void *, register_t *));
int sys_pwritev __P((struct proc *, void *, register_t *));
int sys_kqueue __P((struct proc *, void *, register_t *));
int sys_kevent __P((struct proc *, void *, register_t *));
+int sys_mlockall __P((struct proc *, void *, register_t *));
+int sys_munlockall __P((struct proc *, void *, register_t *));