xref: /freebsd/contrib/llvm-project/libcxx/modules/std/cstdlib.inc (revision 5036d9652a5701d00e9e40ea942c278e9f77d33d)
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 _LIBCPP_USING_IF_EXISTS;
12  using std::ldiv_t _LIBCPP_USING_IF_EXISTS;
13  using std::lldiv_t _LIBCPP_USING_IF_EXISTS;
14  using std::size_t _LIBCPP_USING_IF_EXISTS;
15
16  // [support.start.term], start and termination
17  using std::_Exit _LIBCPP_USING_IF_EXISTS;
18  using std::abort _LIBCPP_USING_IF_EXISTS;
19  using std::at_quick_exit _LIBCPP_USING_IF_EXISTS;
20  using std::atexit _LIBCPP_USING_IF_EXISTS;
21  using std::exit _LIBCPP_USING_IF_EXISTS;
22  using std::quick_exit _LIBCPP_USING_IF_EXISTS;
23
24  using std::getenv _LIBCPP_USING_IF_EXISTS;
25  using std::system _LIBCPP_USING_IF_EXISTS;
26
27  // [c.malloc], C library memory allocation
28  using std::aligned_alloc _LIBCPP_USING_IF_EXISTS;
29  using std::calloc _LIBCPP_USING_IF_EXISTS;
30  using std::free _LIBCPP_USING_IF_EXISTS;
31  using std::malloc _LIBCPP_USING_IF_EXISTS;
32  using std::realloc _LIBCPP_USING_IF_EXISTS;
33
34  using std::atof _LIBCPP_USING_IF_EXISTS;
35  using std::atoi _LIBCPP_USING_IF_EXISTS;
36  using std::atol _LIBCPP_USING_IF_EXISTS;
37  using std::atoll _LIBCPP_USING_IF_EXISTS;
38  using std::strtod _LIBCPP_USING_IF_EXISTS;
39  using std::strtof _LIBCPP_USING_IF_EXISTS;
40  using std::strtol _LIBCPP_USING_IF_EXISTS;
41  using std::strtold _LIBCPP_USING_IF_EXISTS;
42  using std::strtoll _LIBCPP_USING_IF_EXISTS;
43  using std::strtoul _LIBCPP_USING_IF_EXISTS;
44  using std::strtoull _LIBCPP_USING_IF_EXISTS;
45
46  // [c.mb.wcs], multibyte / wide string and character conversion functions
47  using std::mblen _LIBCPP_USING_IF_EXISTS;
48#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
49  using std::mbstowcs _LIBCPP_USING_IF_EXISTS;
50  using std::mbtowc _LIBCPP_USING_IF_EXISTS;
51  using std::wcstombs _LIBCPP_USING_IF_EXISTS;
52  using std::wctomb _LIBCPP_USING_IF_EXISTS;
53#endif
54  // [alg.c.library], C standard library algorithms
55  using std::bsearch _LIBCPP_USING_IF_EXISTS;
56  using std::qsort _LIBCPP_USING_IF_EXISTS;
57
58  // [c.math.rand], low-quality random number generation
59  using std::rand _LIBCPP_USING_IF_EXISTS;
60  using std::srand _LIBCPP_USING_IF_EXISTS;
61
62  // [c.math.abs], absolute values
63  using std::abs _LIBCPP_USING_IF_EXISTS;
64
65  using std::labs _LIBCPP_USING_IF_EXISTS;
66  using std::llabs _LIBCPP_USING_IF_EXISTS;
67
68  using std::div _LIBCPP_USING_IF_EXISTS;
69  using std::ldiv _LIBCPP_USING_IF_EXISTS;
70  using std::lldiv _LIBCPP_USING_IF_EXISTS;
71} // namespace std
72