Luna/libos/include/os/Process.h

16 lines
286 B
C
Raw Normal View History

2023-04-18 16:16:24 +00:00
#pragma once
#include <luna/Result.h>
2023-04-18 16:39:37 +00:00
#include <luna/String.h>
2023-04-18 16:16:24 +00:00
#include <sys/types.h>
namespace os
{
class Process
{
public:
static Result<pid_t> fork();
2023-04-18 16:39:37 +00:00
static Result<void> exec(StringView path, Slice<String> args, bool search_in_path = true);
2023-04-18 16:16:24 +00:00
};
}