Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
b158e0c4
Commit
b158e0c4
authored
Jan 16, 2001
by
simonmar
Browse files
[project @ 2001-01-16 11:54:25 by simonmar]
add MaxOSX version of mmap.
parent
11313835
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/MBlock.c
View file @
b158e0c4
/* -----------------------------------------------------------------------------
* $Id: MBlock.c,v 1.2
0
200
0/12
/16 1
5:20:30 panne
Exp $
* $Id: MBlock.c,v 1.2
1
200
1/01
/16 1
1:54:25 simonmar
Exp $
*
* (c) The GHC Team 1998-1999
*
...
...
@@ -65,6 +65,9 @@ getMBlocks(nat n)
#elif hpux_TARGET_OS
ret
=
mmap
(
next_request
,
size
,
PROT_READ
|
PROT_WRITE
,
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
ret
=
mmap
(
next_request
,
size
,
PROT_READ
|
PROT_WRITE
,
MAP_ANON
|
MAP_PRIVATE
,
-
1
,
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment