mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-08 22:57:56 +02:00
-BEGIN VERIFY SCRIPT- sed --in-place --regexp-extended \ 's;( 20[0-2][0-9])(-20[0-2][0-9])? The Bitcoin Core developers;\1-present The Bitcoin Core developers;g' \ $( git grep -l 'The Bitcoin Core developers' -- ':(exclude)COPYING' ':(exclude)src/ipc/libmultiprocess' ':(exclude)src/minisketch' ) -END VERIFY SCRIPT-
24 lines
842 B
C++
24 lines
842 B
C++
// Copyright (c) 2025-present The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_UTIL_EXEC_H
|
|
#define BITCOIN_UTIL_EXEC_H
|
|
|
|
#include <util/fs.h>
|
|
|
|
#include <string_view>
|
|
|
|
namespace util {
|
|
//! Cross-platform wrapper for POSIX execvp function.
|
|
//! Arguments and return value are the same as for POSIX execvp, and the argv
|
|
//! array should consist of null terminated strings and be null terminated
|
|
//! itself, like the POSIX function.
|
|
int ExecVp(const char* file, char* const argv[]);
|
|
//! Return path to current executable assuming it was invoked with argv0.
|
|
//! If path could not be determined, returns an empty path.
|
|
fs::path GetExePath(std::string_view argv0);
|
|
} // namespace util
|
|
|
|
#endif // BITCOIN_UTIL_EXEC_H
|