Luna/libos/include/os/Process.h
apio 00832163d4
All checks were successful
continuous-integration/drone/push Build is passing
libos: Add Process::exec
2023-04-18 18:39:37 +02:00

16 lines
286 B
C++

#pragma once
#include <luna/Result.h>
#include <luna/String.h>
#include <sys/types.h>
namespace os
{
class Process
{
public:
static Result<pid_t> fork();
static Result<void> exec(StringView path, Slice<String> args, bool search_in_path = true);
};
}