annotate libcxx/include/csignal @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // -*- C++ -*-
anatofuz
parents:
diff changeset
2 //===--------------------------- csignal ----------------------------------===//
anatofuz
parents:
diff changeset
3 //
anatofuz
parents:
diff changeset
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
anatofuz
parents:
diff changeset
5 // See https://llvm.org/LICENSE.txt for license information.
anatofuz
parents:
diff changeset
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
anatofuz
parents:
diff changeset
7 //
anatofuz
parents:
diff changeset
8 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 #ifndef _LIBCPP_CSIGNAL
anatofuz
parents:
diff changeset
11 #define _LIBCPP_CSIGNAL
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 /*
anatofuz
parents:
diff changeset
14 csignal synopsis
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 Macros:
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 SIG_DFL
anatofuz
parents:
diff changeset
19 SIG_ERR
anatofuz
parents:
diff changeset
20 SIG_IGN
anatofuz
parents:
diff changeset
21 SIGABRT
anatofuz
parents:
diff changeset
22 SIGFPE
anatofuz
parents:
diff changeset
23 SIGILL
anatofuz
parents:
diff changeset
24 SIGINT
anatofuz
parents:
diff changeset
25 SIGSEGV
anatofuz
parents:
diff changeset
26 SIGTERM
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 namespace std
anatofuz
parents:
diff changeset
29 {
anatofuz
parents:
diff changeset
30
anatofuz
parents:
diff changeset
31 Types:
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 sig_atomic_t
anatofuz
parents:
diff changeset
34
anatofuz
parents:
diff changeset
35 void (*signal(int sig, void (*func)(int)))(int);
anatofuz
parents:
diff changeset
36 int raise(int sig);
anatofuz
parents:
diff changeset
37
anatofuz
parents:
diff changeset
38 } // std
anatofuz
parents:
diff changeset
39
anatofuz
parents:
diff changeset
40 */
anatofuz
parents:
diff changeset
41
anatofuz
parents:
diff changeset
42 #include <__config>
anatofuz
parents:
diff changeset
43 #include <signal.h>
anatofuz
parents:
diff changeset
44
anatofuz
parents:
diff changeset
45 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
anatofuz
parents:
diff changeset
46 #pragma GCC system_header
anatofuz
parents:
diff changeset
47 #endif
anatofuz
parents:
diff changeset
48
anatofuz
parents:
diff changeset
49 _LIBCPP_BEGIN_NAMESPACE_STD
anatofuz
parents:
diff changeset
50
anatofuz
parents:
diff changeset
51 using ::sig_atomic_t;
anatofuz
parents:
diff changeset
52 using ::signal;
anatofuz
parents:
diff changeset
53 using ::raise;
anatofuz
parents:
diff changeset
54
anatofuz
parents:
diff changeset
55 _LIBCPP_END_NAMESPACE_STD
anatofuz
parents:
diff changeset
56
anatofuz
parents:
diff changeset
57 #endif // _LIBCPP_CSIGNAL