blob: 97282661872a000dab19c0d23784c8aa09fa23ba [file] [log] [blame]
Howard Hinnantbc8d3f92010-05-11 19:42:16 +00001// -*- C++ -*-
2//===--------------------------- csignal ----------------------------------===//
3//
Howard Hinnantf5256e12010-05-11 21:36:01 +00004// The LLVM Compiler Infrastructure
Howard Hinnantbc8d3f92010-05-11 19:42:16 +00005//
Howard Hinnantb64f8b02010-11-16 22:09:02 +00006// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
Howard Hinnantbc8d3f92010-05-11 19:42:16 +00008//
9//===----------------------------------------------------------------------===//
10
11#ifndef _LIBCPP_CSIGNAL
12#define _LIBCPP_CSIGNAL
13
14/*
15 csignal synopsis
16
17Macros:
18
19 SIG_DFL
20 SIG_ERR
21 SIG_IGN
22 SIGABRT
23 SIGFPE
24 SIGILL
25 SIGINT
26 SIGSEGV
27 SIGTERM
Howard Hinnant324bb032010-08-22 00:02:43 +000028
Howard Hinnantbc8d3f92010-05-11 19:42:16 +000029namespace std
30{
31
32Types:
33
34 sig_atomic_t
35
36void (*signal(int sig, void (*func)(int)))(int);
37int raise(int sig);
38
39} // std
40
41*/
42
43#include <__config>
44#include <signal.h>
45
Howard Hinnant08e17472011-10-17 20:05:10 +000046#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
Howard Hinnantbc8d3f92010-05-11 19:42:16 +000047#pragma GCC system_header
Howard Hinnant08e17472011-10-17 20:05:10 +000048#endif
Howard Hinnantbc8d3f92010-05-11 19:42:16 +000049
50_LIBCPP_BEGIN_NAMESPACE_STD
51
52using ::sig_atomic_t;
53using ::signal;
54using ::raise;
55
56_LIBCPP_END_NAMESPACE_STD
57
58#endif // _LIBCPP_CSIGNAL