summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-07-27 21:01:59 +0000
committerderaadt <deraadt@openbsd.org>1997-07-27 21:01:59 +0000
commitb1e3be7db5dba36f4e56c0b61f5fbeb0349fc874 (patch)
tree36647384c83a1de584bb2e5f3eea82b2f0cd625e
parentmremap non-emulation; tron@lyssa.owl.de (diff)
downloadwireguard-openbsd-b1e3be7db5dba36f4e56c0b61f5fbeb0349fc874.tar.xz
wireguard-openbsd-b1e3be7db5dba36f4e56c0b61f5fbeb0349fc874.zip
sync
-rw-r--r--sys/compat/linux/linux_syscall.h3
-rw-r--r--sys/compat/linux/linux_syscallargs.h10
-rw-r--r--sys/compat/linux/linux_syscalls.c4
-rw-r--r--sys/compat/linux/linux_sysent.c6
4 files changed, 16 insertions, 7 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h
index 703a9dd490c..be163e5307a 100644
--- a/sys/compat/linux/linux_syscall.h
+++ b/sys/compat/linux/linux_syscall.h
@@ -2,7 +2,7 @@
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.7 1996/05/22 12:01:51 deraadt Exp
+ * created from OpenBSD: syscalls.master,v 1.9 1997/07/27 21:01:37 deraadt Exp
*/
#define LINUX_SYS_syscall 0
@@ -128,4 +128,5 @@
#define LINUX_SYS___sysctl 149
#define LINUX_SYS_mlock 150
#define LINUX_SYS_munlock 151
+#define LINUX_SYS_mremap 163
#define LINUX_SYS_MAXSYSCALL 164
diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h
index 9b1404b16e9..e6dd34ad241 100644
--- a/sys/compat/linux/linux_syscallargs.h
+++ b/sys/compat/linux/linux_syscallargs.h
@@ -2,7 +2,7 @@
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.7 1996/05/22 12:01:51 deraadt Exp
+ * created from OpenBSD: syscalls.master,v 1.9 1997/07/27 21:01:37 deraadt Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
@@ -342,6 +342,13 @@ struct linux_sys___sysctl_args {
syscallarg(struct linux___sysctl *) lsp;
};
+struct mremap_args {
+ syscallarg(void *) old_address;
+ syscallarg(size_t) old_size;
+ syscallarg(size_t) new_size;
+ syscallarg(long) flags;
+};
+
/*
* System call prototypes.
*/
@@ -476,3 +483,4 @@ int linux_sys_fdatasync __P((struct proc *, void *, register_t *));
int linux_sys___sysctl __P((struct proc *, void *, register_t *));
int sys_mlock __P((struct proc *, void *, register_t *));
int sys_munlock __P((struct proc *, void *, register_t *));
+int mremap __P((struct proc *, void *, register_t *));
diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c
index 4c425d33865..a958b3e64bb 100644
--- a/sys/compat/linux/linux_syscalls.c
+++ b/sys/compat/linux/linux_syscalls.c
@@ -2,7 +2,7 @@
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.7 1996/05/22 12:01:51 deraadt Exp
+ * created from OpenBSD: syscalls.master,v 1.9 1997/07/27 21:01:37 deraadt Exp
*/
char *linux_syscallnames[] = {
@@ -181,5 +181,5 @@ char *linux_syscallnames[] = {
"#160 (unimplemented sched_get_priority_min)", /* 160 = unimplemented sched_get_priority_min */
"#161 (unimplemented sched_rr_get_interval)", /* 161 = unimplemented sched_rr_get_interval */
"#162 (unimplemented nanosleep)", /* 162 = unimplemented nanosleep */
- "#163 (unimplemented mremap)", /* 163 = unimplemented mremap */
+ "mremap", /* 163 = mremap */
};
diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c
index d352f4c8d10..bf958a97b2e 100644
--- a/sys/compat/linux/linux_sysent.c
+++ b/sys/compat/linux/linux_sysent.c
@@ -2,7 +2,7 @@
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.7 1996/05/22 12:01:51 deraadt Exp
+ * created from OpenBSD: syscalls.master,v 1.9 1997/07/27 21:01:37 deraadt Exp
*/
#include <sys/param.h>
@@ -359,7 +359,7 @@ struct sysent linux_sysent[] = {
sys_nosys }, /* 161 = unimplemented sched_rr_get_interval */
{ 0, 0,
sys_nosys }, /* 162 = unimplemented nanosleep */
- { 0, 0,
- sys_nosys }, /* 163 = unimplemented mremap */
+ { 4, s(struct mremap_args),
+ mremap }, /* 163 = mremap */
};