diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2016-06-28 12:39:39 -0500 |
---|---|---|
committer | Bill Hoffa <wghoffa@us.ibm.com> | 2016-06-30 13:14:03 -0500 |
commit | 1ab0fb9ee0d02aba250b7fbfe38ca64ce1a63d3f (patch) | |
tree | 2969e62ddbdc678ecd0d6c3acb603f663939ab04 /src | |
parent | 8549ce536fde780ad3b0bc2e0e3fdf8d63f1d6f4 (diff) | |
download | talos-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')
-rw-r--r-- | src/include/cstddef | 5 | ||||
-rw-r--r-- | src/include/cstdlib | 42 |
2 files changed, 45 insertions, 2 deletions
diff --git a/src/include/cstddef b/src/include/cstddef index 7650c0197..635f373ad 100644 --- a/src/include/cstddef +++ b/src/include/cstddef @@ -1,11 +1,11 @@ /* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ -/* $Source: src/usr/testcore/lib/is_same.H $ */ +/* $Source: src/include/cstddef $ */ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015 */ +/* Contributors Listed Below - COPYRIGHT 2015,2016 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -30,6 +30,7 @@ namespace std { typedef decltype(nullptr) nullptr_t; + using ::size_t; } #endif 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 */ + |