MySQL  8.0.19
Source Code Documentation
common.cc File Reference
#include <cassert>
#include <cstring>
#include <fstream>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <system_error>
#include "common.h"
#include "harness_assert.h"
#include <pthread.h>
#include <sys/stat.h>

Namespaces

 mysql_harness
 

Functions

std::string HARNESS_EXPORT mysql_harness::get_strerror (int err)
 Wrapper for thread safe function returning error string. More...
 
void HARNESS_EXPORT mysql_harness::rename_thread (const char thread_name[16])
 Rename a thread (useful for debugging purposes). More...
 
static const std::string & mysql_harness::truncate_string_backend (const std::string &input, std::string &output, size_t max_len)
 
const HARNESS_EXPORT std::string & mysql_harness::truncate_string (const std::string &input, size_t max_len=80)
 Return a truncated version of input string (fast version) More...
 
HARNESS_EXPORT std::string mysql_harness::truncate_string_r (const std::string &input, size_t max_len=80)
 Return a truncated version of input string (reentrant version) More...