std_cerrno.h revision 169691
185612Sobrien// -*- C++ -*- forwarding header. 285612Sobrien 385612Sobrien// Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc. 485612Sobrien// 585612Sobrien// This file is part of the GNU ISO C++ Library. This library is free 685612Sobrien// software; you can redistribute it and/or modify it under the 785612Sobrien// terms of the GNU General Public License as published by the 885612Sobrien// Free Software Foundation; either version 2, or (at your option) 985612Sobrien// any later version. 1085612Sobrien 1185612Sobrien// This library is distributed in the hope that it will be useful, 1285612Sobrien// but WITHOUT ANY WARRANTY; without even the implied warranty of 1385612Sobrien// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1485612Sobrien// GNU General Public License for more details. 1585612Sobrien 1685612Sobrien// You should have received a copy of the GNU General Public License along 1785612Sobrien// with this library; see the file COPYING. If not, write to the Free 1885612Sobrien// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 1985612Sobrien// USA. 2085612Sobrien 2185612Sobrien// As a special exception, you may use this file as part of a free software 2285612Sobrien// library without restriction. Specifically, if other files instantiate 2385612Sobrien// templates or use macros or inline functions from this file, or you compile 2485612Sobrien// this file and link it with other files to produce an executable, this 2585612Sobrien// file does not by itself cause the resulting executable to be covered by 2685612Sobrien// the GNU General Public License. This exception does not however 2785612Sobrien// invalidate any other reasons why the executable file might be covered by 2885612Sobrien// the GNU General Public License. 29216338Sdim 30216338Sdim/** @file cerrno 31216338Sdim * This is a Standard C++ Library file. You should @c #include this file 3285612Sobrien * in your programs, rather than any of the "*.h" implementation files. 3385612Sobrien * 3485612Sobrien * This is the C++ version of the Standard C Library header @c errno.h, 3585612Sobrien * and its contents are (mostly) the same as that header, but are all 3685612Sobrien * contained in the namespace @c std. 3785612Sobrien */ 3885612Sobrien 3985612Sobrien// 4085612Sobrien// ISO C++ 14882: 19.3 Error numbers 4185612Sobrien// 4285612Sobrien 43#ifndef _GLIBCXX_CERRNO 44#define _GLIBCXX_CERRNO 1 45 46#pragma GCC system_header 47 48#include_next <errno.h> 49 50// Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998 51#ifndef errno 52#define errno errno 53#endif 54 55#endif 56