blob: eb3040b80ef95f7473620f2c703512d8bc954614 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "process.h"
#include "errno.h"
#include <Kernel/Syscall.h>
extern "C" {
int spawn(const char* path, const char** args)
{
int rc = Syscall::invoke(Syscall::Spawn, (dword)path, (dword)args);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}
|