std_csignal.h revision 132720
1193323Sed// -*- C++ -*- forwarding header. 2193323Sed 3193323Sed// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 4193323Sed// Free Software Foundation, Inc. 5193323Sed// 6193323Sed// This file is part of the GNU ISO C++ Library. This library is free 7193323Sed// software; you can redistribute it and/or modify it under the 8193323Sed// terms of the GNU General Public License as published by the 9193323Sed// Free Software Foundation; either version 2, or (at your option) 10193323Sed// any later version. 11212904Sdim 12193323Sed// This library is distributed in the hope that it will be useful, 13193323Sed// but WITHOUT ANY WARRANTY; without even the implied warranty of 14193323Sed// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15212904Sdim// GNU General Public License for more details. 16212904Sdim 17212904Sdim// You should have received a copy of the GNU General Public License along 18212904Sdim// with this library; see the file COPYING. If not, write to the Free 19212904Sdim// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, 20193323Sed// USA. 21212904Sdim 22212904Sdim// As a special exception, you may use this file as part of a free software 23193323Sed// library without restriction. Specifically, if other files instantiate 24193323Sed// templates or use macros or inline functions from this file, or you compile 25193323Sed// this file and link it with other files to produce an executable, this 26193323Sed// file does not by itself cause the resulting executable to be covered by 27193323Sed// the GNU General Public License. This exception does not however 28193323Sed// invalidate any other reasons why the executable file might be covered by 29198090Srdivacky// the GNU General Public License. 30249423Sdim 31198090Srdivacky// 32198090Srdivacky// ISO C++ 14882: 20.4.6 C library 33198090Srdivacky// 34218893Sdim 35193323Sed/** @file csignal 36193323Sed * This is a Standard C++ Library file. You should @c #include this file 37193323Sed * in your programs, rather than any of the "*.h" implementation files. 38193323Sed * 39249423Sdim * This is the C++ version of the Standard C Library header @c signal.h, 40198090Srdivacky * and its contents are (mostly) the same as that header, but are all 41198090Srdivacky * contained in the namespace @c std. 42198090Srdivacky */ 43193323Sed 44193323Sed#ifndef _GLIBCXX_CSIGNAL 45193323Sed#define _GLIBCXX_CSIGNAL 1 46193323Sed 47193323Sed#pragma GCC system_header 48193323Sed 49193323Sed#include <signal.h> 50193323Sed 51193323Sed// Get rid of those macros defined in <signal.h> in lieu of real functions. 52198892Srdivacky#undef raise 53193323Sed 54212904Sdimnamespace std 55218893Sdim{ 56212904Sdim using ::sig_atomic_t; 57212904Sdim using ::signal; 58212904Sdim using ::raise; 59212904Sdim} 60212904Sdim 61193323Sed#endif 62193323Sed