| 1 | // -*- C++ -*- | 
|---|
| 2 | //===--------------------------- csignal ----------------------------------===// | 
|---|
| 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 | //===----------------------------------------------------------------------===// | 
|---|
| 9 |  | 
|---|
| 10 | #ifndef _LIBCPP_CSIGNAL | 
|---|
| 11 | #define _LIBCPP_CSIGNAL | 
|---|
| 12 |  | 
|---|
| 13 | /* | 
|---|
| 14 | csignal synopsis | 
|---|
| 15 |  | 
|---|
| 16 | Macros: | 
|---|
| 17 |  | 
|---|
| 18 | SIG_DFL | 
|---|
| 19 | SIG_ERR | 
|---|
| 20 | SIG_IGN | 
|---|
| 21 | SIGABRT | 
|---|
| 22 | SIGFPE | 
|---|
| 23 | SIGILL | 
|---|
| 24 | SIGINT | 
|---|
| 25 | SIGSEGV | 
|---|
| 26 | SIGTERM | 
|---|
| 27 |  | 
|---|
| 28 | namespace std | 
|---|
| 29 | { | 
|---|
| 30 |  | 
|---|
| 31 | Types: | 
|---|
| 32 |  | 
|---|
| 33 | sig_atomic_t | 
|---|
| 34 |  | 
|---|
| 35 | void (*signal(int sig, void (*func)(int)))(int); | 
|---|
| 36 | int raise(int sig); | 
|---|
| 37 |  | 
|---|
| 38 | }  // std | 
|---|
| 39 |  | 
|---|
| 40 | */ | 
|---|
| 41 |  | 
|---|
| 42 | #include <__config> | 
|---|
| 43 | #include <signal.h> | 
|---|
| 44 |  | 
|---|
| 45 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) | 
|---|
| 46 | #pragma GCC system_header | 
|---|
| 47 | #endif | 
|---|
| 48 |  | 
|---|
| 49 | _LIBCPP_BEGIN_NAMESPACE_STD | 
|---|
| 50 |  | 
|---|
| 51 | using ::sig_atomic_t; | 
|---|
| 52 | using ::signal; | 
|---|
| 53 | using ::raise; | 
|---|
| 54 |  | 
|---|
| 55 | _LIBCPP_END_NAMESPACE_STD | 
|---|
| 56 |  | 
|---|
| 57 | #endif  // _LIBCPP_CSIGNAL | 
|---|
| 58 |  | 
|---|