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/include | |
| 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/include/thread_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libc/include/thread_private.h b/src/lib/libc/include/thread_private.h index fd530d7dff..ae8d554a8a 100644 --- a/src/lib/libc/include/thread_private.h +++ b/src/lib/libc/include/thread_private.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: thread_private.h,v 1.32 2017/11/04 22:53:57 jca Exp $ */ | 1 | /* $OpenBSD: thread_private.h,v 1.33 2017/12/05 13:45:31 kettenis Exp $ */ |
| 2 | 2 | ||
| 3 | /* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */ | 3 | /* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */ |
| 4 | 4 | ||
| @@ -394,6 +394,7 @@ void _spinunlock(volatile _atomic_lock_t *); | |||
| 394 | void _rthread_debug(int, const char *, ...) | 394 | void _rthread_debug(int, const char *, ...) |
| 395 | __attribute__((__format__ (printf, 2, 3))); | 395 | __attribute__((__format__ (printf, 2, 3))); |
| 396 | pid_t _thread_dofork(pid_t (*_sys_fork)(void)); | 396 | pid_t _thread_dofork(pid_t (*_sys_fork)(void)); |
| 397 | void _thread_finalize(void); | ||
| 397 | 398 | ||
| 398 | /* | 399 | /* |
| 399 | * Threading syscalls not declared in system headers | 400 | * Threading syscalls not declared in system headers |
