aboutsummaryrefslogtreecommitdiff
path: root/sys/libn/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libn/mmap.c')
-rw-r--r--sys/libn/mmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/libn/mmap.c b/sys/libn/mmap.c
index d8b2a61..89b7519 100644
--- a/sys/libn/mmap.c
+++ b/sys/libn/mmap.c
@@ -19,6 +19,7 @@ mmap·open(byte *filename)
errorf("file stat: error code %d", err);
goto ERROR;
}
+
buf = mmap(nil, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
if (!buf) {
errorf("mmap: failed");