mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
fa20edc44d
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
28 lines
678 B
C
28 lines
678 B
C
#ifndef COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_
|
|
#define COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_
|
|
#include "libc/stdio/stdio.h"
|
|
#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);
|
|
void __cxa_thread_finalize(void);
|
|
void __cxa_printexits(FILE *, void *);
|
|
int __cxa_thread_atexit_impl(void *, void *, void *);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_ */
|