Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
util.cpp File Reference
#include <mp/config.h>
#include <mp/util.h>
#include <cerrno>
#include <cstdio>
#include <filesystem>
#include <iostream>
#include <kj/common.h>
#include <kj/string-tree.h>
#include <pthread.h>
#include <sstream>
#include <string>
#include <sys/types.h>
#include <sys/resource.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <system_error>
#include <thread>
#include <unistd.h>
#include <utility>
#include <vector>
Include dependency graph for util.cpp:

Go to the source code of this file.

Namespaces

namespace  mp
 Functions to serialize / deserialize common bitcoin types.

Functions

std::string mp::ThreadName (const char *exe_name)
 Format current thread name as "{exe_name}-{$pid}/{thread_name}-{$tid}".
std::string mp::LogEscape (const kj::StringTree &string, size_t max_size)
int mp::SpawnProcess (int &pid, FdToArgsFn &&fd_to_args)
void mp::ExecProcess (const std::vector< std::string > &args)
int mp::WaitProcess (int pid)
 Wait for a process to exit and return its exit code.