mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 16:05:08 +00:00

This also meant I had to implement BSS (SHT_NOBITS) sections in ELFLoader. I also added an strerror() so we can print out what the errors are.
14 lines
215 B
C++
14 lines
215 B
C++
#include "process.h"
|
|
#include "errno.h"
|
|
#include <Kernel/Syscall.h>
|
|
|
|
extern "C" {
|
|
|
|
int spawn(const char* path)
|
|
{
|
|
int rc = Syscall::invoke(Syscall::Spawn, (dword)path);
|
|
__RETURN_WITH_ERRNO(rc, rc, -1);
|
|
}
|
|
|
|
}
|
|
|