Bitcoin ABC
0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
src
common
system.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
// Copyright (c) 2009-2019 The Bitcoin Core developers
3
// Distributed under the MIT software license, see the accompanying
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6
#ifndef BITCOIN_COMMON_SYSTEM_H
7
#define BITCOIN_COMMON_SYSTEM_H
8
9
#if defined(HAVE_CONFIG_H)
10
#include <config/bitcoin-config.h>
11
#endif
12
13
#include <
compat.h
>
14
#include <
compat/assumptions.h
>
15
16
#include <cstdint>
17
#include <set>
18
#include <string>
19
20
// Application startup time (used for uptime calculation)
21
int64_t
GetStartupTime
();
22
23
void
SetupEnvironment
();
24
bool
SetupNetworking
();
25
#ifndef WIN32
26
std::string
ShellEscape
(
const
std::string &
arg
);
27
#endif
28
#if defined(HAVE_SYSTEM)
29
void
runCommand
(
const
std::string &
strCommand
);
30
#endif
31
37
int
GetNumCores
();
38
39
#endif
// BITCOIN_COMMON_SYSTEM_H
assumptions.h
compat.h
GetRand
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition
random.h:85
GetStartupTime
int64_t GetStartupTime()
Definition
system.cpp:116
SetupNetworking
bool SetupNetworking()
Definition
system.cpp:98
SetupEnvironment
void SetupEnvironment()
Definition
system.cpp:70
GetNumCores
int GetNumCores()
Return the number of cores available on the current system.
Definition
system.cpp:111
ShellEscape
std::string ShellEscape(const std::string &arg)
Definition
system.cpp:43
Generated on Thu Dec 26 2024 02:38:01 for Bitcoin ABC by
1.9.8