aboutsummaryrefslogtreecommitdiff
path: root/core/sys/linux
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2023-11-08 00:37:32 +0100
committerGitHub <noreply@github.com>2023-11-08 00:37:32 +0100
commit9834ceed429e5e682e9411fd5cf202bccc31c665 (patch)
treec715506262b80d6d145ad3e791a605eb2a91b308 /core/sys/linux
parent639cc9faa80ca95a26829685f45c34e23d753c8a (diff)
parent4266a7c1664d1f736d270b5eb0c7a9bc31cfe700 (diff)
Merge pull request #2933 from flga/master
sys/linux: munmap was not using the correct syscall
Diffstat (limited to 'core/sys/linux')
-rw-r--r--core/sys/linux/sys.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin
index dfb25e5dd..314591d06 100644
--- a/core/sys/linux/sys.odin
+++ b/core/sys/linux/sys.odin
@@ -161,7 +161,7 @@ mprotect :: proc "contextless" (addr: rawptr, size: uint, prot: Mem_Protection)
/// Unmap memory
/// Available since Linux 1.0
munmap :: proc "contextless" (addr: rawptr, size: uint) -> (Errno) {
- ret := syscall(SYS_mmap, addr, size)
+ ret := syscall(SYS_munmap, addr, size)
return Errno(-ret)
}