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