Statistics
| Branch: | Revision:

root / bsd-user / bsd-mman.h @ e7b43f7e

History | View | Annotate | Download (6.3 kB)

1 6c173b3c blueswir1
/*-
2 6c173b3c blueswir1
 * Copyright (c) 1982, 1986, 1993
3 6c173b3c blueswir1
 *      The Regents of the University of California.  All rights reserved.
4 6c173b3c blueswir1
 *
5 6c173b3c blueswir1
 * Redistribution and use in source and binary forms, with or without
6 6c173b3c blueswir1
 * modification, are permitted provided that the following conditions
7 6c173b3c blueswir1
 * are met:
8 6c173b3c blueswir1
 * 1. Redistributions of source code must retain the above copyright
9 6c173b3c blueswir1
 *    notice, this list of conditions and the following disclaimer.
10 6c173b3c blueswir1
 * 2. Redistributions in binary form must reproduce the above copyright
11 6c173b3c blueswir1
 *    notice, this list of conditions and the following disclaimer in the
12 6c173b3c blueswir1
 *    documentation and/or other materials provided with the distribution.
13 6c173b3c blueswir1
 * 4. Neither the name of the University nor the names of its contributors
14 6c173b3c blueswir1
 *    may be used to endorse or promote products derived from this software
15 6c173b3c blueswir1
 *    without specific prior written permission.
16 6c173b3c blueswir1
 *
17 6c173b3c blueswir1
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18 6c173b3c blueswir1
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 6c173b3c blueswir1
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 6c173b3c blueswir1
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21 6c173b3c blueswir1
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 6c173b3c blueswir1
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 6c173b3c blueswir1
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 6c173b3c blueswir1
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 6c173b3c blueswir1
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 6c173b3c blueswir1
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 6c173b3c blueswir1
 * SUCH DAMAGE.
28 6c173b3c blueswir1
 *
29 6c173b3c blueswir1
 *      @(#)mman.h      8.2 (Berkeley) 1/9/95
30 6c173b3c blueswir1
 * $FreeBSD: src/sys/sys/mman.h,v 1.42 2008/03/28 04:29:27 ps Exp $
31 6c173b3c blueswir1
 */
32 6c173b3c blueswir1
33 6c173b3c blueswir1
#define TARGET_FREEBSD_MAP_RESERVED0080 0x0080  /* previously misimplemented MAP_INHERIT */
34 6c173b3c blueswir1
#define TARGET_FREEBSD_MAP_RESERVED0100 0x0100  /* previously unimplemented MAP_NOEXTEND */
35 6c173b3c blueswir1
#define TARGET_FREEBSD_MAP_STACK        0x0400  /* region grows down, like a stack */
36 6c173b3c blueswir1
#define TARGET_FREEBSD_MAP_NOSYNC       0x0800  /* page to but do not sync underlying file */
37 6c173b3c blueswir1
38 6c173b3c blueswir1
#define TARGET_FREEBSD_MAP_FLAGMASK     0x1ff7
39 6c173b3c blueswir1
40 6c173b3c blueswir1
/*      $NetBSD: mman.h,v 1.42 2008/11/18 22:13:49 ad Exp $     */
41 6c173b3c blueswir1
42 6c173b3c blueswir1
/*-
43 6c173b3c blueswir1
 * Copyright (c) 1982, 1986, 1993
44 6c173b3c blueswir1
 *      The Regents of the University of California.  All rights reserved.
45 6c173b3c blueswir1
 *
46 6c173b3c blueswir1
 * Redistribution and use in source and binary forms, with or without
47 6c173b3c blueswir1
 * modification, are permitted provided that the following conditions
48 6c173b3c blueswir1
 * are met:
49 6c173b3c blueswir1
 * 1. Redistributions of source code must retain the above copyright
50 6c173b3c blueswir1
 *    notice, this list of conditions and the following disclaimer.
51 6c173b3c blueswir1
 * 2. Redistributions in binary form must reproduce the above copyright
52 6c173b3c blueswir1
 *    notice, this list of conditions and the following disclaimer in the
53 6c173b3c blueswir1
 *    documentation and/or other materials provided with the distribution.
54 6c173b3c blueswir1
 * 3. Neither the name of the University nor the names of its contributors
55 6c173b3c blueswir1
 *    may be used to endorse or promote products derived from this software
56 6c173b3c blueswir1
 *    without specific prior written permission.
57 6c173b3c blueswir1
 *
58 6c173b3c blueswir1
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
59 6c173b3c blueswir1
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
60 6c173b3c blueswir1
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
61 6c173b3c blueswir1
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
62 6c173b3c blueswir1
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
63 6c173b3c blueswir1
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
64 6c173b3c blueswir1
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
65 6c173b3c blueswir1
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
66 6c173b3c blueswir1
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
67 6c173b3c blueswir1
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
68 6c173b3c blueswir1
 * SUCH DAMAGE.
69 6c173b3c blueswir1
 *
70 6c173b3c blueswir1
 *      @(#)mman.h      8.2 (Berkeley) 1/9/95
71 6c173b3c blueswir1
 */
72 6c173b3c blueswir1
#define TARGET_NETBSD_MAP_INHERIT       0x0080  /* region is retained after exec */
73 6c173b3c blueswir1
#define TARGET_NETBSD_MAP_TRYFIXED      0x0400 /* attempt hint address, even within break */
74 6c173b3c blueswir1
#define TARGET_NETBSD_MAP_WIRED         0x0800  /* mlock() mapping when it is established */
75 6c173b3c blueswir1
76 6c173b3c blueswir1
#define TARGET_NETBSD_MAP_STACK         0x2000  /* allocated from memory, swap space (stack) */
77 6c173b3c blueswir1
78 6c173b3c blueswir1
#define TARGET_NETBSD_MAP_FLAGMASK      0x3ff7
79 6c173b3c blueswir1
80 6c173b3c blueswir1
/*      $OpenBSD: mman.h,v 1.18 2003/07/21 22:52:19 tedu Exp $  */
81 6c173b3c blueswir1
/*      $NetBSD: mman.h,v 1.11 1995/03/26 20:24:23 jtc Exp $    */
82 6c173b3c blueswir1
83 6c173b3c blueswir1
/*-
84 6c173b3c blueswir1
 * Copyright (c) 1982, 1986, 1993
85 6c173b3c blueswir1
 *      The Regents of the University of California.  All rights reserved.
86 6c173b3c blueswir1
 *
87 6c173b3c blueswir1
 * Redistribution and use in source and binary forms, with or without
88 6c173b3c blueswir1
 * modification, are permitted provided that the following conditions
89 6c173b3c blueswir1
 * are met:
90 6c173b3c blueswir1
 * 1. Redistributions of source code must retain the above copyright
91 6c173b3c blueswir1
 *    notice, this list of conditions and the following disclaimer.
92 6c173b3c blueswir1
 * 2. Redistributions in binary form must reproduce the above copyright
93 6c173b3c blueswir1
 *    notice, this list of conditions and the following disclaimer in the
94 6c173b3c blueswir1
 *    documentation and/or other materials provided with the distribution.
95 6c173b3c blueswir1
 * 3. Neither the name of the University nor the names of its contributors
96 6c173b3c blueswir1
 *    may be used to endorse or promote products derived from this software
97 6c173b3c blueswir1
 *    without specific prior written permission.
98 6c173b3c blueswir1
 *
99 6c173b3c blueswir1
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
100 6c173b3c blueswir1
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
101 6c173b3c blueswir1
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
102 6c173b3c blueswir1
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
103 6c173b3c blueswir1
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
104 6c173b3c blueswir1
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
105 6c173b3c blueswir1
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
106 6c173b3c blueswir1
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
107 6c173b3c blueswir1
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
108 6c173b3c blueswir1
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
109 6c173b3c blueswir1
 * SUCH DAMAGE.
110 6c173b3c blueswir1
 *
111 6c173b3c blueswir1
 *      @(#)mman.h      8.1 (Berkeley) 6/2/93
112 6c173b3c blueswir1
 */
113 6c173b3c blueswir1
114 6c173b3c blueswir1
#define TARGET_OPENBSD_MAP_INHERIT      0x0080  /* region is retained after exec */
115 6c173b3c blueswir1
#define TARGET_OPENBSD_MAP_NOEXTEND     0x0100  /* for MAP_FILE, don't change file size */
116 6c173b3c blueswir1
#define TARGET_OPENBSD_MAP_TRYFIXED     0x0400  /* attempt hint address, even within heap */
117 6c173b3c blueswir1
118 6c173b3c blueswir1
#define TARGET_OPENBSD_MAP_FLAGMASK     0x17f7
119 6c173b3c blueswir1
120 6c173b3c blueswir1
// XXX
121 6c173b3c blueswir1
#define TARGET_BSD_MAP_FLAGMASK         0x3ff7