Kernel: exec now has better posix errors

This commit is contained in:
Bananymous
2023-06-05 21:08:34 +03:00
parent 357081346e
commit c6b5cc1e07
2 changed files with 32 additions and 26 deletions

View File

@@ -49,6 +49,8 @@ namespace Kernel
pid_t pid() const { return m_pid; }
static BAN::ErrorOr<LibELF::ELF*> load_elf_for_exec(BAN::StringView);
BAN::ErrorOr<Process*> fork(uintptr_t rsp, uintptr_t rip);
BAN::ErrorOr<void> exec(BAN::StringView path, const char* const* argv, const char* const* envp);