refactor: restructure the user space stuff.
[lunaix-os.git] / lunaix-os / usr / libc / arch / i386 / mann.c
diff --git a/lunaix-os/usr/libc/arch/i386/mann.c b/lunaix-os/usr/libc/arch/i386/mann.c
new file mode 100644 (file)
index 0000000..b21ea3f
--- /dev/null
@@ -0,0 +1,12 @@
+#include "syscall.h"
+#include <lunaix/types.h>
+
+__LXSYSCALL2_VARG(void*, sys_mmap, void*, addr, size_t, length);
+
+void*
+mmap(void* addr, size_t length, int proct, int flags, int fd, off_t offset)
+{
+    return sys_mmap(addr, length, proct, fd, offset, flags);
+}
+
+__LXSYSCALL2(void, munmap, void*, addr, size_t, length)