LibC: implement setenv, unsetenv, putenv

This commit is contained in:
2023-06-05 22:43:26 +03:00
parent 064ce568c2
commit 86f58f60cb
6 changed files with 138 additions and 1 deletions

View File

@@ -389,6 +389,13 @@ namespace Kernel
return ret;
}
BAN::ErrorOr<void> Process::setenvp(char** envp)
{
LockGuard _(m_lock);
m_userspace_info.envp = envp;
return {};
}
void Process::load_elf(LibELF::ELF& elf)
{
ASSERT(elf.is_native());