1// -*- C++ -*- 2//===----------------------------------------------------------------------===// 3// 4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5// See https://llvm.org/LICENSE.txt for license information. 6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7// 8//===----------------------------------------------------------------------===// 9 10export namespace std { 11 using std::div_t; 12 using std::ldiv_t; 13 using std::lldiv_t; 14 using std::size_t; 15 16 // [support.start.term], start and termination 17 using std::_Exit; 18 using std::abort; 19 using std::at_quick_exit; 20 using std::atexit; 21 using std::exit; 22 using std::quick_exit; 23 24 using std::getenv; 25 using std::system; 26 27 // [c.malloc], C library memory allocation 28 using std::aligned_alloc; 29 using std::calloc; 30 using std::free; 31 using std::malloc; 32 using std::realloc; 33 34 using std::atof; 35 using std::atoi; 36 using std::atol; 37 using std::atoll; 38 using std::strtod; 39 using std::strtof; 40 using std::strtol; 41 using std::strtold; 42 using std::strtoll; 43 using std::strtoul; 44 using std::strtoull; 45 46 // [c.mb.wcs], multibyte / wide string and character conversion functions 47 using std::mblen; 48#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS 49 using std::mbstowcs; 50 using std::mbtowc; 51 using std::wcstombs; 52 using std::wctomb; 53#endif 54 // [alg.c.library], C standard library algorithms 55 using std::bsearch; 56 using std::qsort; 57 58 // [c.math.rand], low-quality random number generation 59 using std::rand; 60 using std::srand; 61 62 // [c.math.abs], absolute values 63 using std::abs; 64 65 using std::labs; 66 using std::llabs; 67 68 using std::div; 69 using std::ldiv; 70 using std::lldiv; 71} // namespace std 72