//===-- Map from signal numbers to strings in posix -------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_LIBC_SRC_SUPPORT_STRING_UTIL_TABLES_POSIX_SIGNAL_TABLE_H #define LLVM_LIBC_SRC_SUPPORT_STRING_UTIL_TABLES_POSIX_SIGNAL_TABLE_H #include #include "src/__support/CPP/array.h" #include "src/__support/StringUtil/message_mapper.h" namespace __llvm_libc::internal { inline constexpr MsgTable<22> POSIX_SIGNALS = { MsgMapping(SIGHUP, "Hangup"), MsgMapping(SIGQUIT, "Quit"), MsgMapping(SIGTRAP, "Trace/breakpoint trap"), MsgMapping(SIGBUS, "Bus error"), MsgMapping(SIGKILL, "Killed"), MsgMapping(SIGUSR1, "User defined signal 1"), MsgMapping(SIGUSR2, "User defined signal 2"), MsgMapping(SIGPIPE, "Broken pipe"), MsgMapping(SIGALRM, "Alarm clock"), MsgMapping(SIGCHLD, "Child exited"), MsgMapping(SIGCONT, "Continued"), MsgMapping(SIGSTOP, "Stopped (signal)"), MsgMapping(SIGTSTP, "Stopped"), MsgMapping(SIGTTIN, "Stopped (tty input)"), MsgMapping(SIGTTOU, "Stopped (tty output)"), MsgMapping(SIGURG, "Urgent I/O condition"), MsgMapping(SIGXCPU, "CPU time limit exceeded"), MsgMapping(SIGXFSZ, "File size limit exceeded"), MsgMapping(SIGVTALRM, "Virtual timer expired"), MsgMapping(SIGPROF, "Profiling timer expired"), MsgMapping(SIGPOLL, "I/O possible"), MsgMapping(SIGSYS, "Bad system call"), }; } // namespace __llvm_libc::internal #endif // LLVM_LIBC_SRC_SUPPORT_STRING_UTIL_TABLES_POSIX_SIGNAL_TABLE_H