summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/atexit.h
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2017-12-05 13:45:31 +0000
committerkettenis <kettenis@openbsd.org>2017-12-05 13:45:31 +0000
commit0afcdeda897cccf53b8f99c1eb030fd52ee9ee99 (patch)
treeae06143be769a47677266a3ccbc027b7cf3992e0 /lib/libc/stdlib/atexit.h
parentWhen sending out a proposal we create an SA/SPI for the Child SAs if we (diff)
downloadwireguard-openbsd-0afcdeda897cccf53b8f99c1eb030fd52ee9ee99.tar.xz
wireguard-openbsd-0afcdeda897cccf53b8f99c1eb030fd52ee9ee99.zip
Implement __cxa_thread_atexit to support C++11 thread_local scope. The
interface is also made available as __cxa_thread_atexit_impl to satisfy the needs of GNU libstdc++. ok guenther@, millert@
Diffstat (limited to 'lib/libc/stdlib/atexit.h')
-rw-r--r--lib/libc/stdlib/atexit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdlib/atexit.h b/lib/libc/stdlib/atexit.h
index e2e821de04b..d9bfed852f6 100644
--- a/lib/libc/stdlib/atexit.h
+++ b/lib/libc/stdlib/atexit.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atexit.h,v 1.10 2015/10/25 18:01:24 guenther Exp $ */
+/* $OpenBSD: atexit.h,v 1.11 2017/12/05 13:45:31 kettenis Exp $ */
/*
* Copyright (c) 2002 Daniel Hartmeier
@@ -46,7 +46,9 @@ extern struct atexit *__atexit; /* points to head of LIFO stack */
__END_HIDDEN_DECLS
int __cxa_atexit(void (*)(void *), void *, void *);
+int __cxa_thread_atexit(void (*)(void *), void *, void *);
void __cxa_finalize(void *);
PROTO_NORMAL(__cxa_atexit);
+PROTO_STD_DEPRECATED(__cxa_thread_atexit);
PROTO_NORMAL(__cxa_finalize);