summaryrefslogtreecommitdiffstats
path: root/lib/libcxxabi/src/fallback_malloc.h
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2018-09-11 18:06:31 +0000
committerrobert <robert@openbsd.org>2018-09-11 18:06:31 +0000
commit8a05a458f6e66ba4e39e97f266f4fbfbbdf85f5b (patch)
treedaa979747ce9e345dc0680933d017c4bb0b5768c /lib/libcxxabi/src/fallback_malloc.h
parentmerge libunwind 6.0.0; ok patrick@, kettenis@ (diff)
downloadwireguard-openbsd-8a05a458f6e66ba4e39e97f266f4fbfbbdf85f5b.tar.xz
wireguard-openbsd-8a05a458f6e66ba4e39e97f266f4fbfbbdf85f5b.zip
import of libc++abi 6.0.0
Diffstat (limited to 'lib/libcxxabi/src/fallback_malloc.h')
-rw-r--r--lib/libcxxabi/src/fallback_malloc.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/libcxxabi/src/fallback_malloc.h b/lib/libcxxabi/src/fallback_malloc.h
new file mode 100644
index 00000000000..d6f471483a2
--- /dev/null
+++ b/lib/libcxxabi/src/fallback_malloc.h
@@ -0,0 +1,29 @@
+//===------------------------- fallback_malloc.h --------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _FALLBACK_MALLOC_H
+#define _FALLBACK_MALLOC_H
+
+#include "__cxxabi_config.h"
+#include <cstddef> // 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