xref: /openbsd-src/gnu/llvm/libcxxabi/src/fallback_malloc.h (revision 8f1d572453a8bab44a2fe956e25efc4124e87e82)
1*8f1d5724Srobert //===----------------------------------------------------------------------===//
279c2e3e6Spatrick //
379c2e3e6Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
479c2e3e6Spatrick // See https://llvm.org/LICENSE.txt for license information.
579c2e3e6Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
679c2e3e6Spatrick //
779c2e3e6Spatrick //===----------------------------------------------------------------------===//
879c2e3e6Spatrick 
979c2e3e6Spatrick #ifndef _FALLBACK_MALLOC_H
1079c2e3e6Spatrick #define _FALLBACK_MALLOC_H
1179c2e3e6Spatrick 
1279c2e3e6Spatrick #include "__cxxabi_config.h"
1379c2e3e6Spatrick #include <stddef.h> // for size_t
1479c2e3e6Spatrick 
1579c2e3e6Spatrick namespace __cxxabiv1 {
1679c2e3e6Spatrick 
1779c2e3e6Spatrick // Allocate some memory from _somewhere_
1879c2e3e6Spatrick _LIBCXXABI_HIDDEN void * __aligned_malloc_with_fallback(size_t size);
1979c2e3e6Spatrick 
2079c2e3e6Spatrick // Allocate and zero-initialize memory from _somewhere_
2179c2e3e6Spatrick _LIBCXXABI_HIDDEN void * __calloc_with_fallback(size_t count, size_t size);
2279c2e3e6Spatrick 
2379c2e3e6Spatrick _LIBCXXABI_HIDDEN void __aligned_free_with_fallback(void *ptr);
2479c2e3e6Spatrick _LIBCXXABI_HIDDEN void __free_with_fallback(void *ptr);
2579c2e3e6Spatrick 
2679c2e3e6Spatrick } // namespace __cxxabiv1
2779c2e3e6Spatrick 
2879c2e3e6Spatrick #endif
29