xref: /netbsd-src/lib/libc/sys/vadvise.c (revision 09f3fd36e97aa1195df8010460819d00e95cbf6e)
1*09f3fd36Schristos /*	$NetBSD: vadvise.c,v 1.3 2017/12/26 17:09:20 christos Exp $	*/
2daf24478Skamil 
3daf24478Skamil /*-
4daf24478Skamil  * Copyright (c) 2017 The NetBSD Foundation, Inc.
5daf24478Skamil  * All rights reserved.
6daf24478Skamil  *
7daf24478Skamil  * Redistribution and use in source and binary forms, with or without
8daf24478Skamil  * modification, are permitted provided that the following conditions
9daf24478Skamil  * are met:
10daf24478Skamil  * 1. Redistributions of source code must retain the above copyright
11daf24478Skamil  *    notice, this list of conditions and the following disclaimer.
12daf24478Skamil  * 2. Redistributions in binary form must reproduce the above copyright
13daf24478Skamil  *    notice, this list of conditions and the following disclaimer in the
14daf24478Skamil  *    documentation and/or other materials provided with the distribution.
15daf24478Skamil  *
16daf24478Skamil  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17daf24478Skamil  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18daf24478Skamil  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19daf24478Skamil  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20daf24478Skamil  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21daf24478Skamil  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22daf24478Skamil  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23daf24478Skamil  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24daf24478Skamil  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25daf24478Skamil  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26daf24478Skamil  * POSSIBILITY OF SUCH DAMAGE.
27daf24478Skamil  */
28daf24478Skamil 
29daf24478Skamil #include <sys/cdefs.h>
307587a6b7Smaya #if defined(LIBC_SCCS) && !defined(lint)
31*09f3fd36Schristos __RCSID("$NetBSD: vadvise.c,v 1.3 2017/12/26 17:09:20 christos Exp $");
327587a6b7Smaya #endif
33daf24478Skamil 
347587a6b7Smaya #include <errno.h>
35daf24478Skamil int vadvise(int va);
36daf24478Skamil 
37daf24478Skamil int
vadvise(int va)38daf24478Skamil vadvise(int va)
39daf24478Skamil {
40*09f3fd36Schristos 	__USE(va);
41daf24478Skamil 
427587a6b7Smaya 	errno = EINVAL;
437587a6b7Smaya 	return -1;
44daf24478Skamil }
45