Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/csignal is written in an unsupported language. File is not indexed.

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef _LIBCPP_CSIGNAL
0011 #define _LIBCPP_CSIGNAL
0012 
0013 /*
0014     csignal synopsis
0015 
0016 Macros:
0017 
0018     SIG_DFL
0019     SIG_ERR
0020     SIG_IGN
0021     SIGABRT
0022     SIGFPE
0023     SIGILL
0024     SIGINT
0025     SIGSEGV
0026     SIGTERM
0027 
0028 namespace std
0029 {
0030 
0031 Types:
0032 
0033     sig_atomic_t
0034 
0035 void (*signal(int sig, void (*func)(int)))(int);
0036 int raise(int sig);
0037 
0038 }  // std
0039 
0040 */
0041 
0042 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0043 #  include <__cxx03/csignal>
0044 #else
0045 #  include <__config>
0046 
0047 // <signal.h> is not provided by libc++
0048 #  if __has_include(<signal.h>)
0049 #    include <signal.h>
0050 #    ifdef _LIBCPP_SIGNAL_H
0051 #      error "If libc++ starts defining <signal.h>, the __has_include check should move to libc++'s <signal.h>"
0052 #    endif
0053 #  endif
0054 
0055 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0056 #    pragma GCC system_header
0057 #  endif
0058 
0059 _LIBCPP_BEGIN_NAMESPACE_STD
0060 
0061 using ::sig_atomic_t _LIBCPP_USING_IF_EXISTS;
0062 using ::signal _LIBCPP_USING_IF_EXISTS;
0063 using ::raise _LIBCPP_USING_IF_EXISTS;
0064 
0065 _LIBCPP_END_NAMESPACE_STD
0066 
0067 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0068 
0069 #endif // _LIBCPP_CSIGNAL