summaryrefslogtreecommitdiffstats
path: root/lib/libc/include/libc_private.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-08-20 12:26:44 +0000
committerkib <kib@FreeBSD.org>2016-08-20 12:26:44 +0000
commit8ef9c6fc5bcfe1b606229a8da024f76b2d5048c1 (patch)
treed3fb002a2880118eca23542ae9c97773beee2367 /lib/libc/include/libc_private.h
parent2e9b1dc197dd198d7379e4a4f79a80cbcf43a1ee (diff)
downloadFreeBSD-src-8ef9c6fc5bcfe1b606229a8da024f76b2d5048c1.zip
FreeBSD-src-8ef9c6fc5bcfe1b606229a8da024f76b2d5048c1.tar.gz
MFC r303795:
Add __cxa_thread_atexit(3) API implementation.
Diffstat (limited to 'lib/libc/include/libc_private.h')
-rw-r--r--lib/libc/include/libc_private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h
index 6e2ff66..c219f55 100644
--- a/lib/libc/include/libc_private.h
+++ b/lib/libc/include/libc_private.h
@@ -264,6 +264,12 @@ extern const char *__progname;
void _malloc_thread_cleanup(void);
/*
+ * This function is used by the threading libraries to notify libc that a
+ * thread is exiting, so its thread-local dtors should be called.
+ */
+void __cxa_thread_call_dtors(void);
+
+/*
* These functions are used by the threading libraries in order to protect
* malloc across fork().
*/
OpenPOWER on IntegriCloud