blob: e520543d1428d808fcdb6effd8423d01b4998f99 [file] [log] [blame]
Niko Catania00a18f62009-04-08 09:01:36 -07001/* -*- c++ -*- */
2/*
3 * Copyright (C) 2009 The Android Open Source Project
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in
13 * the documentation and/or other materials provided with the
14 * distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
19 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
20 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
23 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#ifndef BIONIC_LIBSTDCPP_INCLUDE_CSTDLIB__
31#define BIONIC_LIBSTDCPP_INCLUDE_CSTDLIB__
32
33/*
34 * Standard C++ Library wrapper around the C stdlib.h header file.
35 */
36#include <stdlib.h>
37
David 'Digit' Turner0621a272010-06-25 16:53:37 -070038extern "C++" {
39
Niko Catania00a18f62009-04-08 09:01:36 -070040namespace std {
41
42using ::exit;
43using ::abort;
44using ::atexit;
45using ::on_exit;
46
47using ::getenv;
48using ::putenv;
49using ::setenv;
50using ::unsetenv;
51using ::clearenv;
52
53using ::mktemp;
54using ::mkstemp;
55
56using ::strtol;
57using ::strtoll;
58using ::strtoul;
59using ::strtoull;
60using ::strtod;
61using ::strtof;
62
63using ::atoi;
64using ::atol;
65using ::atoll;
66using ::atof;
67
68using ::abs;
69using ::labs;
70using ::llabs;
71
72using ::realpath;
73using ::system;
74
75using ::bsearch;
76using ::qsort;
77
78using ::jrand48;
79using ::mrand48;
80using ::nrand48;
81using ::lrand48;
82using ::seed48;
83using ::srand48;
84
85using ::rand;
86using ::srand;
87using ::random;
88using ::srandom;
89
David 'Digit' Turner34806552009-07-10 12:23:09 +020090using ::malloc;
91using ::free;
92using ::calloc;
93using ::realloc;
94
Niko Catania00a18f62009-04-08 09:01:36 -070095using ::unlockpt;
96using ::ptsname;
97using ::ptsname_r;
98using ::getpt;
99using ::grantpt;
100
101using ::div_t;
102using ::div;
103using ::ldiv_t;
104using ::ldiv;
105using ::lldiv_t;
106using ::lldiv;
107
108using ::mblen;
109using ::mbstowcs;
110using ::mbtowc;
111using ::wctomb;
112using ::wcstombs;
113} // namespace std
114
David 'Digit' Turner0621a272010-06-25 16:53:37 -0700115} // extern C++
116
Niko Catania00a18f62009-04-08 09:01:36 -0700117#endif // BIONIC_LIBSTDCPP_INCLUDE_CSTDLIB__