summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/libcxxabi/src/fallback_malloc.h
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2021-01-02 20:29:53 +0000
committerpatrick <patrick@openbsd.org>2021-01-02 20:29:53 +0000
commit79c2e3e6701c0feff28e91707e6fb8294ca9a8eb (patch)
tree4d8f5617581bbda5db135e5655f03076ba356558 /gnu/llvm/libcxxabi/src/fallback_malloc.h
parentImport libc++ 10.0.1 release. (diff)
downloadwireguard-openbsd-79c2e3e6701c0feff28e91707e6fb8294ca9a8eb.tar.xz
wireguard-openbsd-79c2e3e6701c0feff28e91707e6fb8294ca9a8eb.zip
Import libc++abi 10.0.1 release.
Diffstat (limited to 'gnu/llvm/libcxxabi/src/fallback_malloc.h')
-rw-r--r--gnu/llvm/libcxxabi/src/fallback_malloc.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/llvm/libcxxabi/src/fallback_malloc.h b/gnu/llvm/libcxxabi/src/fallback_malloc.h
new file mode 100644
index 00000000000..57808545197
--- /dev/null
+++ b/gnu/llvm/libcxxabi/src/fallback_malloc.h
@@ -0,0 +1,28 @@
+//===------------------------- fallback_malloc.h --------------------------===//
+//
+// 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 "__cxxabi_config.h"
+#include <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