Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- csignal ----------------------------------===// |
| 3 | // |
Howard Hinnant | f5256e1 | 2010-05-11 21:36:01 +0000 | [diff] [blame] | 4 | // The LLVM Compiler Infrastructure |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 5 | // |
Howard Hinnant | b64f8b0 | 2010-11-16 22:09:02 +0000 | [diff] [blame] | 6 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | // Source Licenses. See LICENSE.TXT for details. |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef _LIBCPP_CSIGNAL |
| 12 | #define _LIBCPP_CSIGNAL |
| 13 | |
| 14 | /* |
| 15 | csignal synopsis |
| 16 | |
| 17 | Macros: |
| 18 | |
| 19 | SIG_DFL |
| 20 | SIG_ERR |
| 21 | SIG_IGN |
| 22 | SIGABRT |
| 23 | SIGFPE |
| 24 | SIGILL |
| 25 | SIGINT |
| 26 | SIGSEGV |
| 27 | SIGTERM |
Howard Hinnant | 324bb03 | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 28 | |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 29 | namespace std |
| 30 | { |
| 31 | |
| 32 | Types: |
| 33 | |
| 34 | sig_atomic_t |
| 35 | |
| 36 | void (*signal(int sig, void (*func)(int)))(int); |
| 37 | int raise(int sig); |
| 38 | |
| 39 | } // std |
| 40 | |
| 41 | */ |
| 42 | |
| 43 | #include <__config> |
| 44 | #include <signal.h> |
| 45 | |
Howard Hinnant | 08e1747 | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 46 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 47 | #pragma GCC system_header |
Howard Hinnant | 08e1747 | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 48 | #endif |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 49 | |
| 50 | _LIBCPP_BEGIN_NAMESPACE_STD |
| 51 | |
| 52 | using ::sig_atomic_t; |
| 53 | using ::signal; |
| 54 | using ::raise; |
| 55 | |
| 56 | _LIBCPP_END_NAMESPACE_STD |
| 57 | |
| 58 | #endif // _LIBCPP_CSIGNAL |