Handbook
Glossary
mmap-open ( path length prot flags open-mode -- alien fd )
Vocabulary
io
.
mmap
.
unix
Inputs
path
an
object
length
an
object
prot
an
object
flags
an
object
open-mode
an
object
Outputs
alien
an
object
fd
an
object
Definition
USING:
destructors
io.backend.unix
kernel
libc
unix
unix.ffi
;
IN:
io.mmap.unix
::
mmap-open
( path length prot flags open-mode -- alien fd )
[
f
length prot flags path open-mode
file-mode
open-file
[
<fd>
|dispose
drop
]
keep
[
0
mmap
dup
MAP_FAILED
=
[
throw-errno
]
when
]
keep
]
with-destructors
;