summaryrefslogtreecommitdiff
path: root/userland/libc/sys/mman
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/sys/mman')
-rw-r--r--userland/libc/sys/mman/mmap.c4
-rw-r--r--userland/libc/sys/mman/munmap.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/userland/libc/sys/mman/mmap.c b/userland/libc/sys/mman/mmap.c
index b9ad3a2..53c6f77 100644
--- a/userland/libc/sys/mman/mmap.c
+++ b/userland/libc/sys/mman/mmap.c
@@ -1,6 +1,6 @@
-#include <syscall.h>
#include <errno.h>
#include <sys/mman.h>
+#include <syscall.h>
extern int errno;
@@ -14,6 +14,6 @@ void *mmap(void *addr, size_t length, int prot, int flags, int fd,
.fd = fd,
.offset = offset,
};
-// return (void*)syscall(SYS_MMAP, &args, 0, 0, 0, 0);
+ // return (void*)syscall(SYS_MMAP, &args, 0, 0, 0, 0);
RC_ERRNO(syscall(SYS_MMAP, &args, 0, 0, 0, 0));
}
diff --git a/userland/libc/sys/mman/munmap.c b/userland/libc/sys/mman/munmap.c
index 940ea46..5750cb4 100644
--- a/userland/libc/sys/mman/munmap.c
+++ b/userland/libc/sys/mman/munmap.c
@@ -2,5 +2,5 @@
#include <syscall.h>
int munmap(void *addr, size_t length) {
- RC_ERRNO(syscall(SYS_MUNMAP, addr, length,0, 0, 0));
+ RC_ERRNO(syscall(SYS_MUNMAP, addr, length, 0, 0, 0));
}