harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f3a64fdf31987686aeaac5411273d9fa1aa27031
parent 533ba755deb3a724908edcbd2dd01af2c86e6654
Author: Ajay R <ar324@protonmail.com>
Date:   Thu, 10 Mar 2022 10:04:31 +0000

fix errors after disallowing assignment of non-void types to void

Signed-off-by: Ajay R <ar324@protonmail.com>

Diffstat:
Mrt/+linux/syscalls.ha | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha @@ -19,7 +19,7 @@ export fn dup2(old: int, new: int) int = export fn getpid() int = syscall0(SYS_getpid): int; -export @noreturn fn exit(status: int) void = syscall1(SYS_exit, status: u64); +export @noreturn fn exit(status: int) void = { syscall1(SYS_exit, status: u64); }; export fn fork() int = syscall2(SYS_clone, SIGCHLD: u64, 0u64): int; @@ -32,9 +32,10 @@ export fn execve( argv: uintptr: u64, envp: uintptr: u64): int; -export fn wait4(pid: int, status: *int, options: int, rusage: nullable *void) void = +export fn wait4(pid: int, status: *int, options: int, rusage: nullable *void) void = { syscall4(SYS_wait4, pid: u64, status: uintptr: u64, options: u64, rusage: uintptr: u64); +}; export fn wifexited(status: int) bool = wtermsig(status) == 0; export fn wexitstatus(status: int) int = (status & 0xff00) >> 8;