mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
29 lines
956 B
C
29 lines
956 B
C
|
//===----------------------------------------------------------------------===//
|
||
|
//
|
||
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||
|
// See https://llvm.org/LICENSE.txt for license information.
|
||
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#ifndef _FALLBACK_MALLOC_H
|
||
|
#define _FALLBACK_MALLOC_H
|
||
|
|
||
|
#include "third_party/libcxxabi/include/__cxxabi_config.h"
|
||
|
#include "libc/isystem/stddef.h" // for size_t
|
||
|
|
||
|
namespace __cxxabiv1 {
|
||
|
|
||
|
// Allocate some memory from _somewhere_
|
||
|
_LIBCXXABI_HIDDEN void * __aligned_malloc_with_fallback(size_t size);
|
||
|
|
||
|
// Allocate and zero-initialize memory from _somewhere_
|
||
|
_LIBCXXABI_HIDDEN void * __calloc_with_fallback(size_t count, size_t size);
|
||
|
|
||
|
_LIBCXXABI_HIDDEN void __aligned_free_with_fallback(void *ptr);
|
||
|
_LIBCXXABI_HIDDEN void __free_with_fallback(void *ptr);
|
||
|
|
||
|
} // namespace __cxxabiv1
|
||
|
|
||
|
#endif
|