summaryrefslogtreecommitdiffstats
path: root/src/include/cstdlib
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2016-06-28 12:39:39 -0500
committerBill Hoffa <wghoffa@us.ibm.com>2016-06-30 13:14:03 -0500
commit1ab0fb9ee0d02aba250b7fbfe38ca64ce1a63d3f (patch)
tree2969e62ddbdc678ecd0d6c3acb603f663939ab04 /src/include/cstdlib
parent8549ce536fde780ad3b0bc2e0e3fdf8d63f1d6f4 (diff)
downloadtalos-hostboot-1ab0fb9ee0d02aba250b7fbfe38ca64ce1a63d3f.tar.gz
talos-hostboot-1ab0fb9ee0d02aba250b7fbfe38ca64ce1a63d3f.zip
Add cstdlib
Need file to define std::size_t Also add size_t to cstddef (per spec) Change-Id: Ic436ea2bcbc75173c89fde2a14d70662b29cdc83 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26360 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/cstdlib')
-rw-r--r--src/include/cstdlib42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/include/cstdlib b/src/include/cstdlib
new file mode 100644
index 000000000..e8c70cc58
--- /dev/null
+++ b/src/include/cstdlib
@@ -0,0 +1,42 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/cstdlib $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+#ifndef _CSTDLIB_H
+#define _CSTDLIB_H
+
+#include <stdlib.h>
+
+namespace std {
+ // Types
+ using ::size_t;
+
+ // Memory Management (just reuse stdlib.h functions)
+ using ::malloc;
+ using ::free;
+ using ::realloc;
+ using ::calloc;
+} // namespace std
+
+#endif /* _CSTDLIB_H */
+
OpenPOWER on IntegriCloud