* 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.
- *
- * $Id$
*/
#include "defs.h"
-
#include <asm/mman.h>
#include <sys/mman.h>
-
#if defined(I386)
# include <asm/ldt.h>
# ifdef HAVE_STRUCT_USER_DESC
/*
* Ugly hacks for systems that have a long long off_t
*/
-#define sys_mmap64 sys_mmap
+# define sys_mmap64 sys_mmap
#endif
int
{ MAP_EXECUTABLE,"MAP_EXECUTABLE"},
#endif
#ifdef MAP_INHERIT
- { MAP_INHERIT,"MAP_INHERIT" },
+ { MAP_INHERIT, "MAP_INHERIT" },
#endif
#ifdef MAP_FILE
- { MAP_FILE,"MAP_FILE"},
+ { MAP_FILE, "MAP_FILE" },
#endif
#ifdef MAP_LOCKED
- { MAP_LOCKED,"MAP_LOCKED"},
+ { MAP_LOCKED, "MAP_LOCKED" },
#endif
/* FreeBSD ones */
-#ifdef MAP_ANON
- { MAP_ANON, "MAP_ANON" },
+#if defined(MAP_ANON) && (!defined(MAP_ANONYMOUS) || MAP_ANON != MAP_ANONYMOUS)
+ { MAP_ANON, "MAP_ANON" },
#endif
#ifdef MAP_HASSEMAPHORE
- { MAP_HASSEMAPHORE, "MAP_HASSEMAPHORE" },
+ { MAP_HASSEMAPHORE,"MAP_HASSEMAPHORE"},
#endif
#ifdef MAP_STACK
- { MAP_STACK, "MAP_STACK" },
+ { MAP_STACK, "MAP_STACK" },
#endif
#ifdef MAP_NOSYNC
- { MAP_NOSYNC, "MAP_NOSYNC" },
+ { MAP_NOSYNC, "MAP_NOSYNC" },
#endif
#ifdef MAP_NOCORE
- { MAP_NOCORE, "MAP_NOCORE" },
+ { MAP_NOCORE, "MAP_NOCORE" },
#endif
#ifdef TILE
{ MAP_CACHE_NO_LOCAL, "MAP_CACHE_NO_LOCAL" },