libstdc++
stdlib.h
Go to the documentation of this file.
00001 // -*- C++ -*- compatibility header.
00002 
00003 // Copyright (C) 2002-2016 Free Software Foundation, Inc.
00004 //
00005 // This file is part of the GNU ISO C++ Library.  This library is free
00006 // software; you can redistribute it and/or modify it under the
00007 // terms of the GNU General Public License as published by the
00008 // Free Software Foundation; either version 3, or (at your option)
00009 // any later version.
00010 
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 
00016 // Under Section 7 of GPL version 3, you are granted additional
00017 // permissions described in the GCC Runtime Library Exception, version
00018 // 3.1, as published by the Free Software Foundation.
00019 
00020 // You should have received a copy of the GNU General Public License and
00021 // a copy of the GCC Runtime Library Exception along with this program;
00022 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
00023 // <http://www.gnu.org/licenses/>.
00024 
00025 /** @file stdlib.h
00026  *  This is a Standard C++ Library header.
00027  */
00028 
00029 #if !defined __cplusplus || defined _GLIBCXX_INCLUDE_NEXT_C_HEADERS
00030 # include_next <stdlib.h>
00031 #else
00032 
00033 #ifndef _GLIBCXX_STDLIB_H
00034 #define _GLIBCXX_STDLIB_H 1
00035 
00036 # include <cstdlib>
00037 
00038 using std::abort;
00039 using std::atexit;
00040 using std::exit;
00041 #if __cplusplus >= 201103L
00042 # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
00043   using std::at_quick_exit;
00044 # endif
00045 # ifdef _GLIBCXX_HAVE_QUICK_EXIT
00046   using std::quick_exit;
00047 # endif
00048 #endif
00049 
00050 #if _GLIBCXX_HOSTED
00051 using std::div_t;
00052 using std::ldiv_t;
00053 
00054 using std::abs;
00055 using std::atof;
00056 using std::atoi;
00057 using std::atol;
00058 using std::bsearch;
00059 using std::calloc;
00060 using std::div;
00061 using std::free;
00062 using std::getenv;
00063 using std::labs;
00064 using std::ldiv;
00065 using std::malloc;
00066 #ifdef _GLIBCXX_HAVE_MBSTATE_T
00067 using std::mblen;
00068 using std::mbstowcs;
00069 using std::mbtowc;
00070 #endif // _GLIBCXX_HAVE_MBSTATE_T
00071 using std::qsort;
00072 using std::rand;
00073 using std::realloc;
00074 using std::srand;
00075 using std::strtod;
00076 using std::strtol;
00077 using std::strtoul;
00078 using std::system;
00079 #ifdef _GLIBCXX_USE_WCHAR_T
00080 using std::wcstombs;
00081 using std::wctomb;
00082 #endif // _GLIBCXX_USE_WCHAR_T
00083 #endif
00084 
00085 #endif // _GLIBCXX_STDLIB_H
00086 #endif // __cplusplus