![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <bitcoin-build-config.h>
#include <clientversion.h>
#include <common/args.h>
#include <util/fs.h>
#include <util/exec.h>
#include <util/strencodings.h>
#include <util/translation.h>
#include <iostream>
#include <string>
#include <tinyformat.h>
#include <vector>
Go to the source code of this file.
Classes | |
struct | CommandLine |
Functions | |
CommandLine | ParseCommandLine (int argc, char *argv[]) |
bool | UseMultiprocess (const CommandLine &cmd) |
static void | ExecCommand (const std::vector< const char * > &args, std::string_view wrapper_argv0) |
Execute the specified bitcoind, bitcoin-qt or other command line in args using src, bin and libexec directory paths relative to this executable, where the path to this executable is specified in wrapper_argv0 . More... | |
int | main (int argc, char *argv[]) |
Variables | |
const TranslateFn | G_TRANSLATION_FUN {nullptr} |
Translate string to current locale using Qt. More... | |
static constexpr auto | HELP_USAGE |
static constexpr auto | HELP_FULL |
static constexpr auto | HELP_SHORT |
|
static |
Execute the specified bitcoind, bitcoin-qt or other command line in args
using src, bin and libexec directory paths relative to this executable, where the path to this executable is specified in wrapper_argv0
.
args | Command line arguments to execute, where first argument should be a relative path to a bitcoind, bitcoin-qt or other executable that will be located on the PATH or relative to wrapper_argv0. |
wrapper_argv0 | String containing first command line argument passed to main() to run the current executable. This is used to help determine the path to the current executable and how to look for new executables. |
strace -e trace=execve -s 10000 build/bin/bitcoin ... dtrace -n 'proc:::exec-success /pid == $target/ { trace(curpsinfo->pr_psargs); }' -c ...
Definition at line 190 of file bitcoin.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
CommandLine ParseCommandLine | ( | int | argc, |
char * | argv[] | ||
) |
bool UseMultiprocess | ( | const CommandLine & | cmd | ) |
Definition at line 148 of file bitcoin.cpp.
const TranslateFn G_TRANSLATION_FUN {nullptr} |
Translate string to current locale using Qt.
Definition at line 19 of file bitcoin.cpp.
|
staticconstexpr |
Definition at line 38 of file bitcoin.cpp.
|
staticconstexpr |
Definition at line 46 of file bitcoin.cpp.
|
staticconstexpr |
Definition at line 21 of file bitcoin.cpp.