diff options
| author | kettenis <> | 2017-12-05 13:45:31 +0000 |
|---|---|---|
| committer | kettenis <> | 2017-12-05 13:45:31 +0000 |
| commit | 6995a7e31c862e513fc32eae98d52c8fc9e09580 (patch) | |
| tree | dab90ef1694b0d3420749f26041ad61fede3edd7 /src/lib/libc/stdlib/atexit.h | |
| parent | a5ca61165484466ec3d6f7be600dc13db3aec881 (diff) | |
| download | openbsd-6995a7e31c862e513fc32eae98d52c8fc9e09580.tar.gz openbsd-6995a7e31c862e513fc32eae98d52c8fc9e09580.tar.bz2 openbsd-6995a7e31c862e513fc32eae98d52c8fc9e09580.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 '')
| -rw-r--r-- | src/lib/libc/stdlib/atexit.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/atexit.h b/src/lib/libc/stdlib/atexit.h index e2e821de04..d9bfed852f 100644 --- a/src/lib/libc/stdlib/atexit.h +++ b/src/lib/libc/stdlib/atexit.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: atexit.h,v 1.10 2015/10/25 18:01:24 guenther Exp $ */ | 1 | /* $OpenBSD: atexit.h,v 1.11 2017/12/05 13:45:31 kettenis Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2002 Daniel Hartmeier | 4 | * Copyright (c) 2002 Daniel Hartmeier |
| @@ -46,7 +46,9 @@ extern struct atexit *__atexit; /* points to head of LIFO stack */ | |||
| 46 | __END_HIDDEN_DECLS | 46 | __END_HIDDEN_DECLS |
| 47 | 47 | ||
| 48 | int __cxa_atexit(void (*)(void *), void *, void *); | 48 | int __cxa_atexit(void (*)(void *), void *, void *); |
| 49 | int __cxa_thread_atexit(void (*)(void *), void *, void *); | ||
| 49 | void __cxa_finalize(void *); | 50 | void __cxa_finalize(void *); |
| 50 | 51 | ||
| 51 | PROTO_NORMAL(__cxa_atexit); | 52 | PROTO_NORMAL(__cxa_atexit); |
| 53 | PROTO_STD_DEPRECATED(__cxa_thread_atexit); | ||
| 52 | PROTO_NORMAL(__cxa_finalize); | 54 | PROTO_NORMAL(__cxa_finalize); |
