xref: /minix3/external/bsd/libc++/dist/libcxx/include/csignal (revision 4684ddb6aab0b36791c8099bc705d6140b3d05d0)
1*4684ddb6SLionel Sambuc// -*- C++ -*-
2*4684ddb6SLionel Sambuc//===--------------------------- csignal ----------------------------------===//
3*4684ddb6SLionel Sambuc//
4*4684ddb6SLionel Sambuc//                     The LLVM Compiler Infrastructure
5*4684ddb6SLionel Sambuc//
6*4684ddb6SLionel Sambuc// This file is dual licensed under the MIT and the University of Illinois Open
7*4684ddb6SLionel Sambuc// Source Licenses. See LICENSE.TXT for details.
8*4684ddb6SLionel Sambuc//
9*4684ddb6SLionel Sambuc//===----------------------------------------------------------------------===//
10*4684ddb6SLionel Sambuc
11*4684ddb6SLionel Sambuc#ifndef _LIBCPP_CSIGNAL
12*4684ddb6SLionel Sambuc#define _LIBCPP_CSIGNAL
13*4684ddb6SLionel Sambuc
14*4684ddb6SLionel Sambuc/*
15*4684ddb6SLionel Sambuc    csignal synopsis
16*4684ddb6SLionel Sambuc
17*4684ddb6SLionel SambucMacros:
18*4684ddb6SLionel Sambuc
19*4684ddb6SLionel Sambuc    SIG_DFL
20*4684ddb6SLionel Sambuc    SIG_ERR
21*4684ddb6SLionel Sambuc    SIG_IGN
22*4684ddb6SLionel Sambuc    SIGABRT
23*4684ddb6SLionel Sambuc    SIGFPE
24*4684ddb6SLionel Sambuc    SIGILL
25*4684ddb6SLionel Sambuc    SIGINT
26*4684ddb6SLionel Sambuc    SIGSEGV
27*4684ddb6SLionel Sambuc    SIGTERM
28*4684ddb6SLionel Sambuc
29*4684ddb6SLionel Sambucnamespace std
30*4684ddb6SLionel Sambuc{
31*4684ddb6SLionel Sambuc
32*4684ddb6SLionel SambucTypes:
33*4684ddb6SLionel Sambuc
34*4684ddb6SLionel Sambuc    sig_atomic_t
35*4684ddb6SLionel Sambuc
36*4684ddb6SLionel Sambucvoid (*signal(int sig, void (*func)(int)))(int);
37*4684ddb6SLionel Sambucint raise(int sig);
38*4684ddb6SLionel Sambuc
39*4684ddb6SLionel Sambuc}  // std
40*4684ddb6SLionel Sambuc
41*4684ddb6SLionel Sambuc*/
42*4684ddb6SLionel Sambuc
43*4684ddb6SLionel Sambuc#include <__config>
44*4684ddb6SLionel Sambuc#include <signal.h>
45*4684ddb6SLionel Sambuc
46*4684ddb6SLionel Sambuc#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
47*4684ddb6SLionel Sambuc#pragma GCC system_header
48*4684ddb6SLionel Sambuc#endif
49*4684ddb6SLionel Sambuc
50*4684ddb6SLionel Sambuc_LIBCPP_BEGIN_NAMESPACE_STD
51*4684ddb6SLionel Sambuc
52*4684ddb6SLionel Sambucusing ::sig_atomic_t;
53*4684ddb6SLionel Sambucusing ::signal;
54*4684ddb6SLionel Sambucusing ::raise;
55*4684ddb6SLionel Sambuc
56*4684ddb6SLionel Sambuc_LIBCPP_END_NAMESPACE_STD
57*4684ddb6SLionel Sambuc
58*4684ddb6SLionel Sambuc#endif  // _LIBCPP_CSIGNAL
59