summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-13 12:02:20 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-13 12:02:20 -0400
commite60d499c51d033447f21bb110c899cd2e578d065 (patch)
treee58096b5f7b7c877ed1616218b6d629e33f1c998 /src
parentea6629608487ef59074636ca32bd80bcd40368ff (diff)
implement as syscall
Diffstat (limited to 'src')
-rw-r--r--src/sys/mman/mmap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sys/mman/mmap.c b/src/sys/mman/mmap.c
index 412c67db..e76e2439 100644
--- a/src/sys/mman/mmap.c
+++ b/src/sys/mman/mmap.c
@@ -1,8 +1,14 @@
+#include "sys/types.h"
#include <sys/mman.h>
+#include "../../_syscall.h"
+
+#ifndef MAP_FAILED
+#include "MAP_FAILED.c"
+#endif
void *mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off)
{
- return addr;
+ SYSCALL(mmap, void*, MAP_FAILED, addr, len, prot, flags, fildes, off);
}
/*