33#include <boost/thread/locks.hpp>
34#include <boost/thread/mutex.hpp>
35#include <boost/optional.hpp>
36#include <system_error>
70 void copy_file(
const std::string& from,
const std::string& to);
74 std::unique_ptr<std::FILE, close_file>
m_handle;
136 std::string get_special_folder_path(
int nfolder,
bool iscreate);
155 std::error_code
replace_file(
const std::string& old_name,
const std::string& new_name);
173 bool r = TRUE == ::SetConsoleCtrlHandler(&win_handler, TRUE);
180 static struct sigaction sa;
181 memset(&sa, 0,
sizeof(
struct sigaction));
185 sigaction(SIGINT, &sa, NULL);
187 signal(SIGPIPE, SIG_IGN);
196 static BOOL WINAPI win_handler(DWORD type)
198 if (CTRL_C_EVENT == type || CTRL_BREAK_EVENT == type)
204 MGINFO_RED(
"Got control signal " << type <<
". Exiting without saving...");
220 static boost::mutex m_mutex;
221 boost::unique_lock<boost::mutex> lock(m_mutex);
263 boost::optional<bool>
is_hdd(
const char *path);
269 std::string input_line_win();
#define s(x, c)
Definition aesb.c:47
#define v0(p)
Definition aesb.c:116
#define fd(x)
Definition aesb.c:127
#define v1(p)
Definition aesb.c:117
uint64_t num_blocks(const std::vector< test_event_entry > &events)
Definition chaingen.cpp:1220
#define HANDLE
Definition mdb.c:459
#define const
Definition ipfrdr.c:80
uint32_t address
Definition getifaddr.c:269
POD_CLASS hash
Definition hash.h:49
network_type
Definition cryptonote_config.h:302
const char *const str
Definition portlistingparse.c:23
#define ts
Definition skein.c:522
unsigned int uint32_t
Definition stdint.h:126
unsigned char uint8_t
Definition stdint.h:124
unsigned __int64 uint64_t
Definition stdint.h:136
std::string data
Definition base58.cpp:37