00001 /*- 00002 * Copyright (c) 1982, 1986, 1993 00003 * The Regents of the University of California. All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions 00007 * are met: 00008 * 1. Redistributions of source code must retain the above copyright 00009 * notice, this list of conditions and the following disclaimer. 00010 * 2. Redistributions in binary form must reproduce the above copyright 00011 * notice, this list of conditions and the following disclaimer in the 00012 * documentation and/or other materials provided with the distribution. 00013 * 4. Neither the name of the University nor the names of its contributors 00014 * may be used to endorse or promote products derived from this software 00015 * without specific prior written permission. 00016 * 00017 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 00018 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00019 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00020 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 00021 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00022 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00023 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00024 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00025 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00026 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00027 * SUCH DAMAGE. 00028 * 00029 * @(#)mman.h 8.2 (Berkeley) 1/9/95 00030 * $FreeBSD: src/sys/sys/mman.h,v 1.42 2008/03/28 04:29:27 ps Exp $ 00031 */ 00032 00033 #define TARGET_FREEBSD_MAP_RESERVED0080 0x0080 /* previously misimplemented MAP_INHERIT */ 00034 #define TARGET_FREEBSD_MAP_RESERVED0100 0x0100 /* previously unimplemented MAP_NOEXTEND */ 00035 #define TARGET_FREEBSD_MAP_STACK 0x0400 /* region grows down, like a stack */ 00036 #define TARGET_FREEBSD_MAP_NOSYNC 0x0800 /* page to but do not sync underlying file */ 00037 00038 #define TARGET_FREEBSD_MAP_FLAGMASK 0x1ff7 00039 00040 /* $NetBSD: mman.h,v 1.42 2008/11/18 22:13:49 ad Exp $ */ 00041 00042 /*- 00043 * Copyright (c) 1982, 1986, 1993 00044 * The Regents of the University of California. All rights reserved. 00045 * 00046 * Redistribution and use in source and binary forms, with or without 00047 * modification, are permitted provided that the following conditions 00048 * are met: 00049 * 1. Redistributions of source code must retain the above copyright 00050 * notice, this list of conditions and the following disclaimer. 00051 * 2. Redistributions in binary form must reproduce the above copyright 00052 * notice, this list of conditions and the following disclaimer in the 00053 * documentation and/or other materials provided with the distribution. 00054 * 3. Neither the name of the University nor the names of its contributors 00055 * may be used to endorse or promote products derived from this software 00056 * without specific prior written permission. 00057 * 00058 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 00059 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00060 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00061 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 00062 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00063 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00064 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00065 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00066 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00067 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00068 * SUCH DAMAGE. 00069 * 00070 * @(#)mman.h 8.2 (Berkeley) 1/9/95 00071 */ 00072 #define TARGET_NETBSD_MAP_INHERIT 0x0080 /* region is retained after exec */ 00073 #define TARGET_NETBSD_MAP_TRYFIXED 0x0400 /* attempt hint address, even within break */ 00074 #define TARGET_NETBSD_MAP_WIRED 0x0800 /* mlock() mapping when it is established */ 00075 00076 #define TARGET_NETBSD_MAP_STACK 0x2000 /* allocated from memory, swap space (stack) */ 00077 00078 #define TARGET_NETBSD_MAP_FLAGMASK 0x3ff7 00079 00080 /* $OpenBSD: mman.h,v 1.18 2003/07/21 22:52:19 tedu Exp $ */ 00081 /* $NetBSD: mman.h,v 1.11 1995/03/26 20:24:23 jtc Exp $ */ 00082 00083 /*- 00084 * Copyright (c) 1982, 1986, 1993 00085 * The Regents of the University of California. All rights reserved. 00086 * 00087 * Redistribution and use in source and binary forms, with or without 00088 * modification, are permitted provided that the following conditions 00089 * are met: 00090 * 1. Redistributions of source code must retain the above copyright 00091 * notice, this list of conditions and the following disclaimer. 00092 * 2. Redistributions in binary form must reproduce the above copyright 00093 * notice, this list of conditions and the following disclaimer in the 00094 * documentation and/or other materials provided with the distribution. 00095 * 3. Neither the name of the University nor the names of its contributors 00096 * may be used to endorse or promote products derived from this software 00097 * without specific prior written permission. 00098 * 00099 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 00100 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00101 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00102 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 00103 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00104 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00105 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00106 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00107 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00108 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00109 * SUCH DAMAGE. 00110 * 00111 * @(#)mman.h 8.1 (Berkeley) 6/2/93 00112 */ 00113 00114 #define TARGET_OPENBSD_MAP_INHERIT 0x0080 /* region is retained after exec */ 00115 #define TARGET_OPENBSD_MAP_NOEXTEND 0x0100 /* for MAP_FILE, don't change file size */ 00116 #define TARGET_OPENBSD_MAP_TRYFIXED 0x0400 /* attempt hint address, even within heap */ 00117 00118 #define TARGET_OPENBSD_MAP_FLAGMASK 0x17f7 00119 00120 // XXX 00121 #define TARGET_BSD_MAP_FLAGMASK 0x3ff7