Commit b158e0c4 authored by simonmar's avatar simonmar
Browse files

[project @ 2001-01-16 11:54:25 by simonmar]

add MaxOSX version of mmap.
parent 11313835
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* $Id: MBlock.c,v 1.20 2000/12/16 15:20:30 panne Exp $ * $Id: MBlock.c,v 1.21 2001/01/16 11:54:25 simonmar Exp $
* *
* (c) The GHC Team 1998-1999 * (c) The GHC Team 1998-1999
* *
...@@ -65,6 +65,9 @@ getMBlocks(nat n) ...@@ -65,6 +65,9 @@ getMBlocks(nat n)
#elif hpux_TARGET_OS #elif hpux_TARGET_OS
ret = mmap(next_request, size, PROT_READ | PROT_WRITE, ret = mmap(next_request, size, PROT_READ | PROT_WRITE,
MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
#elif macosx_TARGET_OS
ret = mmap(next_request, size, PROT_READ | PROT_WRITE,
MAP_FIXED | MAP_ANON | MAP_PRIVATE, -1, 0);
#else #else
ret = mmap(next_request, size, PROT_READ | PROT_WRITE, ret = mmap(next_request, size, PROT_READ | PROT_WRITE,
MAP_ANON | MAP_PRIVATE, -1, 0); MAP_ANON | MAP_PRIVATE, -1, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment