bare minimum implementation of getpid/getppid (#3641)

This commit is contained in:
nattthebear 2023-04-19 21:29:45 -04:00 committed by GitHub
parent a9dc924c11
commit 281e3be4a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -432,6 +432,8 @@ extern "sysv64" fn syscall(
// so don't need to examine the arguments here and can just treat this as another yield
h.threads.yield_any(&mut h.context)
},
NR_GETPID => syscall_ok(1),
NR_GETPPID => syscall_ok(1),
_ => syscall_ret(unimp(nr)),
}
}