mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
4631d34d0d
It's now possible to use sigaltstack() to recover from stack overflows on Windows. Several bugs in sigaltstack() have been fixed, for all our supported platforms. There's a newer better example showing how to use this, along with three independent unit tests just to further showcase the various techniques.
16 lines
469 B
C
16 lines
469 B
C
#ifndef COSMOPOLITAN_LIBC_LOG_INTERNAL_H_
|
|
#define COSMOPOLITAN_LIBC_LOG_INTERNAL_H_
|
|
#include "libc/calls/struct/siginfo.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern bool __nocolor;
|
|
extern bool g_isrunningundermake;
|
|
|
|
void __start_fatal(const char *, int);
|
|
void __restore_tty(void);
|
|
void __oncrash(int, struct siginfo *, void *);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_LOG_INTERNAL_H_ */
|