Fix AArch64 write return value

This commit is contained in:
2025-04-14 14:01:25 -04:00
parent d37d65b500
commit c2d03d048a
2 changed files with 19 additions and 9 deletions

View File

@@ -3,8 +3,12 @@
int main() {
uint64_t pid = fork();
// Test the write syscall
intptr_t n = write(STDIO, "Hello\n", 6);
if(n != 6) return n;
// Test the fork syscall
uint64_t pid = fork();
// Print the pid in hex
char msg[17] = {' '};
msg[16] = '\n';