Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/__cxx03/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___CXX03_CSIGNAL
0011 #define _LIBCPP___CXX03_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 #include <__cxx03/__config>
0043 
0044 // <signal.h> is not provided by libc++
0045 #if __has_include(<signal.h>)
0046 #  include <signal.h>
0047 #  ifdef _LIBCPP___CXX03_SIGNAL_H
0048 #    error "If libc++ starts defining <signal.h>, the __has_include check should move to libc++'s <signal.h>"
0049 #  endif
0050 #endif
0051 
0052 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0053 #  pragma GCC system_header
0054 #endif
0055 
0056 _LIBCPP_BEGIN_NAMESPACE_STD
0057 
0058 using ::sig_atomic_t _LIBCPP_USING_IF_EXISTS;
0059 using ::signal _LIBCPP_USING_IF_EXISTS;
0060 using ::raise _LIBCPP_USING_IF_EXISTS;
0061 
0062 _LIBCPP_END_NAMESPACE_STD
0063 
0064 #endif // _LIBCPP___CXX03_CSIGNAL