2021-08-06 01:04:11 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
2022-05-10 00:24:15 +01:00
|
|
|
* Copyright (c) 2022, MacDue <macdue@dueutil.tech>
|
2021-08-06 01:04:11 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/Forward.h>
|
2022-05-10 00:24:15 +01:00
|
|
|
#include <AK/Span.h>
|
2021-08-06 01:04:11 +02:00
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
|
|
|
|
class Process {
|
|
|
|
public:
|
2022-12-04 18:02:33 +00:00
|
|
|
static ErrorOr<pid_t> spawn(StringView path, Span<DeprecatedString const> arguments, DeprecatedString working_directory = {});
|
|
|
|
static ErrorOr<pid_t> spawn(StringView path, Span<StringView const> arguments, DeprecatedString working_directory = {});
|
|
|
|
static ErrorOr<pid_t> spawn(StringView path, Span<char const* const> arguments = {}, DeprecatedString working_directory = {});
|
2021-08-06 01:04:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|