[clang][Driver] Support simplified triple versions for config files (#111387)
[llvm-project.git] / libcxx / include / __cxx03 / csignal
blob945278d6f2dfc82aa168cbfaccdede7a614e3754
1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP___CXX03_CSIGNAL
11 #define _LIBCPP___CXX03_CSIGNAL
14     csignal synopsis
16 Macros:
18     SIG_DFL
19     SIG_ERR
20     SIG_IGN
21     SIGABRT
22     SIGFPE
23     SIGILL
24     SIGINT
25     SIGSEGV
26     SIGTERM
28 namespace std
31 Types:
33     sig_atomic_t
35 void (*signal(int sig, void (*func)(int)))(int);
36 int raise(int sig);
38 }  // std
42 #include <__cxx03/__config>
44 // <signal.h> is not provided by libc++
45 #if __has_include(<signal.h>)
46 #  include <signal.h>
47 #  ifdef _LIBCPP___CXX03_SIGNAL_H
48 #    error "If libc++ starts defining <signal.h>, the __has_include check should move to libc++'s <signal.h>"
49 #  endif
50 #endif
52 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
53 #  pragma GCC system_header
54 #endif
56 _LIBCPP_BEGIN_NAMESPACE_STD
58 using ::sig_atomic_t _LIBCPP_USING_IF_EXISTS;
59 using ::signal _LIBCPP_USING_IF_EXISTS;
60 using ::raise _LIBCPP_USING_IF_EXISTS;
62 _LIBCPP_END_NAMESPACE_STD
64 #endif // _LIBCPP___CXX03_CSIGNAL