Remove compat code for posix_fadvise

This commit is contained in:
martin 2008-02-24 12:54:15 +00:00
parent 93cbe0f210
commit c84d2ae11b
2 changed files with 2 additions and 67 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.41 2008/01/27 16:16:50 martin Exp $
# $NetBSD: Makefile,v 1.42 2008/02/24 12:54:15 martin Exp $
LIB= compat
NOPIC= # defined
@ -34,7 +34,7 @@ SRCS+= vfs_syscalls_20.c
SRCS+= vfs_syscalls_30.c uipc_syscalls_30.c
# Compatibility code for NetBSD 4.0
SRCS+= uipc_syscalls_40.c kern_descrip_40.c
SRCS+= uipc_syscalls_40.c
# really, all machines where sizeof(int) != sizeof(long) (LP64)
.if (${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "sparc64" \

View File

@ -1,65 +0,0 @@
/* $NetBSD: kern_descrip_40.c,v 1.1 2008/01/27 16:16:50 martin Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Martin Husemann <martin@NetBSD.org>.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_descrip_40.c,v 1.1 2008/01/27 16:16:50 martin Exp $");
#include <sys/param.h>
#include <sys/syscallargs.h>
int do_posix_fadvise(struct lwp *l, int fd, off_t offset,
off_t len, int advice, register_t *retval);
/* ARGSUSED */
int
compat_40_sys_posix_fadvise(struct lwp *l,
const struct compat_40_sys_posix_fadvise_args *uap,
register_t *retval)
{
/* {
syscallarg(int) fd;
syscallarg(off_t) offset;
syscallarg(off_t) len;
syscallarg(int) advice;
} */
return do_posix_fadvise(l, SCARG(uap, fd), SCARG(uap, offset),
SCARG(uap, len), SCARG(uap, advice), retval);
}