Files
ladybird/LibC/process.cpp
Andreas Kling dd060d0fa8 Share code between spawn() and exec() implementations.
Okay, now there's only one ELF loading client in the process launch code.
2018-11-03 10:55:02 +01:00

15 lines
279 B
C++

#include "process.h"
#include "errno.h"
#include <Kernel/Syscall.h>
extern "C" {
int spawn(const char* path, const char** args, const char** envp)
{
int rc = Syscall::invoke(Syscall::Spawn, (dword)path, (dword)args, (dword)envp);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}