blob: 89f349d92207d8836f5a01f06f60fc4c66b4560c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2022, MacDue <macdue@dueutil.tech>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Forward.h>
#include <AK/Span.h>
namespace Core {
class Process {
public:
static ErrorOr<pid_t> spawn(StringView path, Span<String const> arguments);
static ErrorOr<pid_t> spawn(StringView path, Span<StringView const> arguments);
static ErrorOr<pid_t> spawn(StringView path, Span<char const* const> arguments = {});
};
}
|