Changeset View
Changeset View
Standalone View
Standalone View
src/util.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include "config/bitcoin-config.h" | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include "util.h" | #include <util.h> | ||||
#include "chainparamsbase.h" | #include <chainparamsbase.h> | ||||
#include "fs.h" | #include <fs.h> | ||||
#include "random.h" | #include <random.h> | ||||
#include "serialize.h" | #include <serialize.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include "utiltime.h" | #include <utiltime.h> | ||||
#include <boost/interprocess/sync/file_lock.hpp> | |||||
#include <boost/program_options/detail/config_file.hpp> | |||||
#include <boost/thread.hpp> | |||||
#include <openssl/conf.h> | |||||
#include <openssl/rand.h> | |||||
#include <cstdarg> | #include <cstdarg> | ||||
#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)) | #if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)) | ||||
#include <pthread.h> | #include <pthread.h> | ||||
#include <pthread_np.h> | #include <pthread_np.h> | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
#ifdef HAVE_SYS_PRCTL_H | #ifdef HAVE_SYS_PRCTL_H | ||||
#include <sys/prctl.h> | #include <sys/prctl.h> | ||||
#endif | #endif | ||||
#ifdef HAVE_MALLOPT_ARENA_MAX | #ifdef HAVE_MALLOPT_ARENA_MAX | ||||
#include <malloc.h> | #include <malloc.h> | ||||
#endif | #endif | ||||
#include <boost/interprocess/sync/file_lock.hpp> | |||||
#include <boost/program_options/detail/config_file.hpp> | |||||
#include <boost/thread.hpp> | |||||
#include <openssl/conf.h> | |||||
#include <openssl/rand.h> | |||||
// Application startup time (used for uptime calculation) | // Application startup time (used for uptime calculation) | ||||
const int64_t nStartupTime = GetTime(); | const int64_t nStartupTime = GetTime(); | ||||
const char *const BITCOIN_CONF_FILENAME = "bitcoin.conf"; | const char *const BITCOIN_CONF_FILENAME = "bitcoin.conf"; | ||||
const char *const BITCOIN_PID_FILENAME = "bitcoind.pid"; | const char *const BITCOIN_PID_FILENAME = "bitcoind.pid"; | ||||
ArgsManager gArgs; | ArgsManager gArgs; | ||||
▲ Show 20 Lines • Show All 945 Lines • Show Last 20 Lines |