From 46635a71c2421fe5bc67f03ee208a6a43ff7ea17 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 10 Feb 1999 08:05:22 +0000 Subject: freebsd madvise() clone, always returns 0 for now --- sys/compat/freebsd/freebsd_misc.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'sys/compat/freebsd/freebsd_misc.c') 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); +} -- cgit v1.2.3