summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-13 06:37:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-13 06:37:50 +0000
commit0e9bf0f6c22f9ef41adb7026b704a2b3cd4f82fe (patch)
tree05d98d10e3960ebf901c30f0bc34484901dfd42d /sys/compat/linux
parent4f7a8c5ede325229049538ea3a14069a96b1fb1c (diff)
put mremap() in linux_misc.c
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_file.c22
-rw-r--r--sys/compat/linux/linux_misc.c19
2 files changed, 19 insertions, 22 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index f9cd60daa09..355e1265e89 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_file.c,v 1.8 1997/09/05 04:35:14 deraadt Exp $ */
+/* $OpenBSD: linux_file.c,v 1.9 1997/11/13 06:37:48 deraadt Exp $ */
/* $NetBSD: linux_file.c,v 1.15 1996/05/20 01:59:09 fvdl Exp $ */
/*
@@ -827,23 +827,3 @@ linux_sys_fdatasync(p, v, retval)
} */ *uap = v;
return sys_fsync(p, uap, retval);
}
-
-/*
- * mremap() dummy
-*/
-int
-linux_sys_mremap(p, v, retval)
- struct proc *p;
- void *v;
- register_t *retval;
-{
-#ifdef notdef
- struct linux_sys_mremap_args /* {
- syscallarg(void *) old_address;
- syscallarg(size_t) old_size;
- syscallarg(size_t) new_size;
- syscallarg(unsigned long) flags;
- } */ *uap = v;
-#endif
- return ENOMEM;
-}
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 79ebbb06371..bace5aa9cd3 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.c,v 1.10 1997/11/06 05:58:04 csapuntz Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.11 1997/11/13 06:37:49 deraadt Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*
@@ -513,6 +513,23 @@ linux_sys_mmap(p, v, retval)
}
int
+linux_sys_mremap(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+#ifdef notyet
+ struct linux_sys_mremap_args /* {
+ syscallarg(void *) old_address;
+ syscallarg(size_t) old_size;
+ syscallarg(size_t) new_size;
+ syscallarg(u_long) flags;
+ } */ *uap = v;
+#endif
+ return (ENOMEM);
+}
+
+int
linux_sys_msync(p, v, retval)
struct proc *p;
void *v;