107793f95SMichael Jones //===-- Function prototype for mapping signals to strings -------*- C++ -*-===// 207793f95SMichael Jones // 307793f95SMichael Jones // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 407793f95SMichael Jones // See https://llvm.org/LICENSE.txt for license information. 507793f95SMichael Jones // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 607793f95SMichael Jones // 707793f95SMichael Jones //===----------------------------------------------------------------------===// 807793f95SMichael Jones 9270547f3SGuillaume Chatelet 10270547f3SGuillaume Chatelet #ifndef LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_SIGNAL_TO_STRING_H 11270547f3SGuillaume Chatelet #define LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_SIGNAL_TO_STRING_H 12270547f3SGuillaume Chatelet 1307793f95SMichael Jones #include "src/__support/CPP/span.h" 1407793f95SMichael Jones #include "src/__support/CPP/string_view.h" 15*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h" 1607793f95SMichael Jones 17*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL { 1807793f95SMichael Jones 1907793f95SMichael Jones cpp::string_view get_signal_string(int err_num); 2007793f95SMichael Jones 2107793f95SMichael Jones cpp::string_view get_signal_string(int err_num, cpp::span<char> buffer); 2207793f95SMichael Jones 23*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL 2407793f95SMichael Jones 25270547f3SGuillaume Chatelet #endif // LLVM_LIBC_SRC___SUPPORT_STRINGUTIL_SIGNAL_TO_STRING_H 26