cosmopolitan/libc/intrin/cxaatexit.internal.h

29 lines
678 B
C
Raw Normal View History

#ifndef COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_
#define COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_
#include "libc/stdio/stdio.h"
2023-04-27 03:45:01 +00:00
#include "libc/thread/tls.h"
COSMOPOLITAN_C_START_
struct CxaAtexitBlocks {
struct CxaAtexitBlock {
unsigned mask;
struct CxaAtexitBlock *next;
struct CxaAtexit {
void *fp;
void *arg;
void *pred;
} p[32];
} * p, root;
};
extern struct CxaAtexitBlocks __cxa_blocks;
void __cxa_lock(void);
void __cxa_unlock(void);
2023-11-01 02:56:55 +00:00
void __cxa_thread_finalize(void);
void __cxa_printexits(FILE *, void *);
2023-11-01 02:56:55 +00:00
int __cxa_thread_atexit_impl(void *, void *, void *);
COSMOPOLITAN_C_END_
#endif /* COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_ */