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