std_csignal.h revision 169692
1169689Skan// -*- C++ -*- forwarding header.
2169689Skan
3169689Skan// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
4169689Skan// Free Software Foundation, Inc.
5169689Skan//
6169689Skan// This file is part of the GNU ISO C++ Library.  This library is free
7169689Skan// software; you can redistribute it and/or modify it under the
8169689Skan// terms of the GNU General Public License as published by the
9169689Skan// Free Software Foundation; either version 2, or (at your option)
10169689Skan// any later version.
11169689Skan
12169689Skan// This library is distributed in the hope that it will be useful,
13169689Skan// but WITHOUT ANY WARRANTY; without even the implied warranty of
14169689Skan// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15169689Skan// GNU General Public License for more details.
16169689Skan
17169689Skan// You should have received a copy of the GNU General Public License along
18169689Skan// with this library; see the file COPYING.  If not, write to the Free
19169689Skan// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20169689Skan// USA.
21169689Skan
22169689Skan// As a special exception, you may use this file as part of a free software
23169689Skan// library without restriction.  Specifically, if other files instantiate
24169689Skan// templates or use macros or inline functions from this file, or you compile
25169689Skan// this file and link it with other files to produce an executable, this
26169689Skan// file does not by itself cause the resulting executable to be covered by
27169689Skan// the GNU General Public License.  This exception does not however
28169689Skan// invalidate any other reasons why the executable file might be covered by
29169689Skan// the GNU General Public License.
30169689Skan
31169689Skan/** @file csignal
32169689Skan *  This is a Standard C++ Library file.  You should @c #include this file
33169689Skan *  in your programs, rather than any of the "*.h" implementation files.
34169689Skan *
35169689Skan *  This is the C++ version of the Standard C Library header @c signal.h,
36169689Skan *  and its contents are (mostly) the same as that header, but are all
37169689Skan *  contained in the namespace @c std (except for names which are defined
38169689Skan *  as macros in C).
39169689Skan */
40169689Skan
41169689Skan//
42169689Skan// ISO C++ 14882: 20.4.6  C library
43169689Skan//
44169689Skan
45169689Skan#ifndef _GLIBCXX_CSIGNAL
46169689Skan#define _GLIBCXX_CSIGNAL 1
47169689Skan
48169689Skan#pragma GCC system_header
49169689Skan
50169689Skan#include <bits/c++config.h>
51169689Skan#include <signal.h>
52169689Skan
53169689Skan// Get rid of those macros defined in <signal.h> in lieu of real functions.
54169689Skan#undef raise
55169689Skan
56169689Skan_GLIBCXX_BEGIN_NAMESPACE(std)
57169689Skan
58169689Skan  using ::sig_atomic_t;
59169689Skan  using ::signal;
60169689Skan  using ::raise;
61169689Skan
62169689Skan_GLIBCXX_END_NAMESPACE
63169689Skan
64169689Skan#endif
65169689Skan