summaryrefslogtreecommitdiff
path: root/libc/src/__support/StringUtil/signal_to_string.h
blob: 694015336b41ce7fb19ccbbeb32a72c425d6da04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//===-- Function prototype for mapping signals to strings -------*- 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
//
//===----------------------------------------------------------------------===//

#include "src/__support/CPP/span.h"
#include "src/__support/CPP/string_view.h"

#ifndef LLVM_LIBC_SRC_SUPPORT_SIGNAL_TO_STRING_H
#define LLVM_LIBC_SRC_SUPPORT_SIGNAL_TO_STRING_H

namespace __llvm_libc {

cpp::string_view get_signal_string(int err_num);

cpp::string_view get_signal_string(int err_num, cpp::span<char> buffer);

} // namespace __llvm_libc

#endif // LLVM_LIBC_SRC_SUPPORT_SIGNAL_TO_STRING_H