2021-10-13 17:27:13 -07:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_
|
2022-04-13 08:49:17 -07:00
|
|
|
#include "libc/stdio/stdio.h"
|
2022-09-10 02:56:25 -07:00
|
|
|
#include "libc/thread/tls.h"
|
2021-10-13 17:27:13 -07:00
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
struct CxaAtexitBlocks {
|
|
|
|
struct CxaAtexitBlock {
|
|
|
|
unsigned mask;
|
|
|
|
struct CxaAtexitBlock *next;
|
|
|
|
struct CxaAtexit {
|
|
|
|
void *fp;
|
|
|
|
void *arg;
|
|
|
|
void *pred;
|
2023-09-06 03:54:42 -07:00
|
|
|
} p[32];
|
2024-01-09 01:26:03 -08:00
|
|
|
} *p, root;
|
2021-10-13 17:27:13 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct CxaAtexitBlocks __cxa_blocks;
|
|
|
|
|
2025-01-02 08:07:15 -08:00
|
|
|
void __cxa_lock(void) dontthrow;
|
|
|
|
void __cxa_unlock(void) dontthrow;
|
|
|
|
void __cxa_thread_finalize(void) dontthrow;
|
2024-01-09 01:26:03 -08:00
|
|
|
void __cxa_printexits(FILE *, void *) libcesque;
|
2023-10-31 19:56:55 -07:00
|
|
|
int __cxa_thread_atexit_impl(void *, void *, void *);
|
2021-10-13 17:27:13 -07:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_ */
|