/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v31.0rc2
src/util/exec.h
23 строки
842 B
MarcoFalke
scripted-diff: [doc] Unify stale copyright headers
17 дек 2025, 00:21
17 дек 2025, 00:21
fa5f297
Код
Авторство
О чём код?
// 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