Serenity Operating System
at master 18 lines 538 B view raw
1/* 2 * Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#define AK_DONT_REPLACE_STD 10 11#include <AK/Error.h> 12#include <AK/Optional.h> 13#include <AK/Span.h> 14#include <AK/StringView.h> 15#include <LibCore/System.h> 16 17ErrorOr<void> spawn_helper_process(StringView process_name, ReadonlySpan<StringView> arguments, Core::System::SearchInPath, Optional<ReadonlySpan<StringView>> environment = {}); 18ErrorOr<Vector<String>> get_paths_for_helper_process(StringView process_name);