diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-02-10 08:05:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-02-10 08:05:22 +0000 |
commit | 46635a71c2421fe5bc67f03ee208a6a43ff7ea17 (patch) | |
tree | eea81eb36c3e3568bf49645f46b97719a1395879 | |
parent | 05534d6c40cbe93cf6f40a3990d45b0ef7cb7488 (diff) |
freebsd madvise() clone, always returns 0 for now
-rw-r--r-- | sys/compat/freebsd/freebsd_misc.c | 14 | ||||
-rw-r--r-- | sys/compat/freebsd/syscalls.master | 4 |
2 files changed, 15 insertions, 3 deletions
diff --git a/sys/compat/freebsd/freebsd_misc.c b/sys/compat/freebsd/freebsd_misc.c index fbf4c0d9414..6b2452d80dc 100644 --- a/sys/compat/freebsd/freebsd_misc.c +++ b/sys/compat/freebsd/freebsd_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: freebsd_misc.c,v 1.5 1997/11/13 18:35:24 deraadt Exp $ */ +/* $OpenBSD: freebsd_misc.c,v 1.6 1999/02/10 08:05:21 deraadt Exp $ */ /* $NetBSD: freebsd_misc.c,v 1.2 1996/05/03 17:03:10 christos Exp $ */ /* @@ -95,3 +95,15 @@ freebsd_sys_poll2(p, v, retval) { return (sys_poll(p, v, retval)); } + +/* + * Our madvise is currently dead (always returns EOPNOTSUPP). + */ +int +freebsd_sys_madvise(p, v, retval) + struct proc *p; + void *v; + register_t *retval; +{ + return (0); +} diff --git a/sys/compat/freebsd/syscalls.master b/sys/compat/freebsd/syscalls.master index 1b3e5f23e34..0c9ddf97465 100644 --- a/sys/compat/freebsd/syscalls.master +++ b/sys/compat/freebsd/syscalls.master @@ -1,4 +1,4 @@ - $OpenBSD: syscalls.master,v 1.8 1997/11/13 18:35:23 deraadt Exp $ + $OpenBSD: syscalls.master,v 1.9 1999/02/10 08:05:08 deraadt Exp $ ; $NetBSD: syscalls.master,v 1.3 1995/10/10 18:28:40 mycroft Exp $ ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -153,7 +153,7 @@ 73 NOARGS { int sys_munmap(caddr_t addr, size_t len); } 74 NOARGS { int sys_mprotect(caddr_t addr, size_t len, \ int prot); } -75 NOARGS { int sys_madvise(caddr_t addr, size_t len, \ +75 STD { int freebsd_sys_madvise(caddr_t addr, size_t len, \ int behav); } 76 OBSOL vhangup 77 OBSOL vlimit |