xref: /netbsd-src/sys/compat/linux/arch/alpha/linux_mmap.h (revision f3d7a033fe713d0b8732f4d8613069d5a995a5f7)
1*f3d7a033Snjoly /*	$NetBSD: linux_mmap.h,v 1.5 2015/03/14 08:32:07 njoly Exp $	*/
2a919a6b4Serh 
3a919a6b4Serh /*-
4a919a6b4Serh  * Copyright (c) 1998 The NetBSD Foundation, Inc.
5a919a6b4Serh  * All rights reserved.
6a919a6b4Serh  *
7a919a6b4Serh  * This code is derived from software contributed to The NetBSD Foundation
8a919a6b4Serh  * by Eric Haszlakiewicz.
9a919a6b4Serh  *
10a919a6b4Serh  * Redistribution and use in source and binary forms, with or without
11a919a6b4Serh  * modification, are permitted provided that the following conditions
12a919a6b4Serh  * are met:
13a919a6b4Serh  * 1. Redistributions of source code must retain the above copyright
14a919a6b4Serh  *    notice, this list of conditions and the following disclaimer.
15a919a6b4Serh  * 2. Redistributions in binary form must reproduce the above copyright
16a919a6b4Serh  *    notice, this list of conditions and the following disclaimer in the
17a919a6b4Serh  *    documentation and/or other materials provided with the distribution.
18a919a6b4Serh  *
19a919a6b4Serh  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20a919a6b4Serh  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21a919a6b4Serh  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22a919a6b4Serh  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23a919a6b4Serh  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24a919a6b4Serh  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25a919a6b4Serh  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26a919a6b4Serh  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27a919a6b4Serh  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28a919a6b4Serh  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29a919a6b4Serh  * POSSIBILITY OF SUCH DAMAGE.
30a919a6b4Serh  */
31a919a6b4Serh 
32a919a6b4Serh #ifndef _ALPHA_LINUX_MMAP_H
33a919a6b4Serh #define _ALPHA_LINUX_MMAP_H
34a919a6b4Serh 
35a919a6b4Serh /* LINUX_PROT_* defined in common/linux_mmap.h */
36a919a6b4Serh 
37a919a6b4Serh /* LINUX_MAP_SHARED/PRIVATE defined in common/linux_mmap.h */
38a919a6b4Serh 
39*f3d7a033Snjoly #define LINUX_MAP_ANON		0x00010
40*f3d7a033Snjoly #define LINUX_MAP_FIXED		0x00100
41*f3d7a033Snjoly #define LINUX_MAP_LOCKED	0x08000
42a919a6b4Serh 
43a919a6b4Serh /* the following flags are silently ignored */
44a919a6b4Serh 
45a919a6b4Serh #define LINUX_MAP_HASSEMAPHORE	0x00200
46a919a6b4Serh #define LINUX_MAP_INHERIT	0x00400
47a919a6b4Serh #define LINUX_MAP_UNALIGNED	0x00800
48a919a6b4Serh 
49a919a6b4Serh #define LINUX_MAP_GROWSDOWN	0x01000
50a919a6b4Serh #define LINUX_MAP_DENYWRITE	0x02000
51a919a6b4Serh #define	LINUX_MAP_EXECUTABLE	0x04000
52a919a6b4Serh 
53a919a6b4Serh #define LINUX_MAP_NORESERVE	0x10000
54a919a6b4Serh 
55a919a6b4Serh #endif /* !_ALPHA_LINUX_MMAP_H */
56