#include "util/posix/symbolic_constants_posix.h"
#include <signal.h>
#include <string.h>
#include <sys/types.h>
#include <iterator>
#include <string_view>
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "util/misc/implicit_cast.h"
#include "util/stdlib/string_number_conversion.h"
namespace {
constexpr const char* kSignalNames[] = …;
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
static_assert …;
#else
static_assert(std::size(kSignalNames) == NSIG, "kSignalNames length");
#endif
constexpr char kSigPrefix[] = …;
}
namespace crashpad {
std::string SignalToString(int signal,
SymbolicConstantToStringOptions options) { … }
bool StringToSignal(std::string_view string,
StringToSymbolicConstantOptions options,
int* signal) { … }
}