source: mainline/uspace/lib/cpp/include/cstdlib@ c735afb

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c735afb was c735afb, checked in by Dzejrou <dzejrou@…>, 7 years ago

cpp: fix problems caused by new HelenOS changes (and leftowers from rebase)

  • Property mode set to 100644
File size: 4.1 KB
Line 
1/*
2 * Copyright (c) 2018 Jaroslav Jindrak
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
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 the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#ifndef LIBCPP_CSTDLIB
30#define LIBCPP_CSTDLIB
31
32#include <__bits/common.hpp>
33
34namespace std::hel
35{
36 extern "C" {
37 #include <stdlib.h>
38 }
39}
40
41namespace std
42{
43 /* using std::hel::div_t; */
44 /* using std::hel::ldiv_t; */
45 /* using std::hel::lldiv_t; */
46 using std::hel::size_t;
47
48 using std::hel::abort;
49 using std::hel::exit;
50 /* using std::hel::quick_exit; */
51 /* using std::hel::_Exit; */
52 using std::hel::atexit;
53 /* using std::hel::at_quick_exit; */
54 /* using std::hel::system; */
55 /* using std::hel::getenv; */
56
57 using std::hel::malloc;
58 using std::hel::calloc;
59 using std::hel::realloc;
60 using std::hel::free;
61
62 /* using std::hel::atof; */
63 /* using std::hel::atoi; */
64 /* using std::hel::atol; */
65 /* using std::hel::atoll; */
66 /* using std::hel::strtol; */
67 /* using std::hel::strtoll; */
68 /* using std::hel::strtoul; */
69 /* using std::hel::strtoull; */
70 /* using std::hel::strtof; */
71 /* using std::hel::strtod; */
72 /* using std::hel::strtold; */
73
74 /* using std::hel::mblen; */
75 /* using std::hel::mbtowc; */
76 /* using std::hel::wctomb; */
77 /* using std::hel::mbstowcs; */
78 /* using std::hel::wcstombs; */
79
80 using std::hel::rand;
81 using std::hel::srand;
82 using std::hel::qsort;
83 /* using std::hel::bsearch; */
84 /* using std::hel::abs; */
85 /* using std::hel::labs; */
86 /* using std::hel::llabs; */
87 /* using std::hel::div; */
88 /* using std::hel::ldiv; */
89 /* using std::hel::lldiv; */
90}
91
92/* using std::hel::div_t; */
93/* using std::hel::ldiv_t; */
94/* using std::hel::lldiv_t; */
95using std::hel::size_t;
96
97using std::hel::abort;
98using std::hel::exit;
99/* using std::hel::quick_exit; */
100/* using std::hel::_Exit; */
101using std::hel::atexit;
102/* using std::hel::at_quick_exit; */
103/* using std::hel::system; */
104/* using std::hel::getenv; */
105
106using std::hel::malloc;
107using std::hel::calloc;
108using std::hel::realloc;
109using std::hel::free;
110
111/* using std::hel::atof; */
112/* using std::hel::atoi; */
113/* using std::hel::atol; */
114/* using std::hel::atoll; */
115/* using std::hel::strtol; */
116/* using std::hel::strtoll; */
117/* using std::hel::strtoul; */
118/* using std::hel::strtoull; */
119/* using std::hel::strtof; */
120/* using std::hel::strtod; */
121/* using std::hel::strtold; */
122
123/* using std::hel::mblen; */
124/* using std::hel::mbtowc; */
125/* using std::hel::wctomb; */
126/* using std::hel::mbstowcs; */
127/* using std::hel::wcstombs; */
128
129using std::hel::rand;
130using std::hel::srand;
131using std::hel::qsort;
132/* using std::hel::bsearch; */
133/* using std::hel::abs; */
134/* using std::hel::labs; */
135/* using std::hel::llabs; */
136/* using std::hel::div; */
137/* using std::hel::ldiv; */
138/* using std::hel::lldiv; */
139
140#endif
Note: See TracBrowser for help on using the repository browser.