commit fb9fa98670cc9e6c8278da8e708404b5441caf39
parent 26f865e29ba17223d71143db62395cceaf3a9aa9
Author: Drew DeVault <sir@cmpwn.com>
Date: Wed, 30 Dec 2020 14:20:36 -0500
rt: fix some v1-isms
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha
@@ -66,7 +66,7 @@ export def PROT_GROWSUP: uint = 0x02000000;
export fn getpid int = syscall0(SYS_getpid): int;
-export fn exit @noreturn(status: int) void = syscall1(SYS_exit, status: u64);
+export @noreturn fn exit(status: int) void = syscall1(SYS_exit, status: u64);
export fn kill(pid: int, signal: int) int =
syscall2(SYS_kill, pid: u64, signal: u64): int;
diff --git a/rt/malloc.ha b/rt/malloc.ha
@@ -13,7 +13,7 @@ export fn must_malloc(n: size) *void = {
return p: *void;
};
-export @symbol("sys.free") fn _free() void = {
+export @symbol("rt.free") fn _free() void = {
// no-op
return;
};