2020-06-15 07:18:57 -07:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_LOG_INTERNAL_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_LOG_INTERNAL_H_
|
2020-10-27 03:39:46 -07:00
|
|
|
#include "libc/calls/struct/siginfo.h"
|
2020-06-15 07:18:57 -07:00
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2022-11-08 11:39:50 -08:00
|
|
|
extern _Hide bool __nocolor;
|
|
|
|
extern _Hide bool _wantcrashreports;
|
|
|
|
extern _Hide bool g_isrunningundermake;
|
2020-06-15 07:18:57 -07:00
|
|
|
|
2022-11-08 11:39:50 -08:00
|
|
|
void __start_fatal(const char *, int) _Hide;
|
2022-04-22 18:55:28 -07:00
|
|
|
void __restore_tty(void);
|
2022-05-19 16:57:49 -07:00
|
|
|
void RestoreDefaultCrashSignalHandlers(void);
|
2023-05-12 05:47:54 -07:00
|
|
|
void __oncrash_amd64(int, struct siginfo *, void *) relegated;
|
|
|
|
void __oncrash_arm64(int, struct siginfo *, void *) relegated;
|
2020-06-15 07:18:57 -07:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_LOG_INTERNAL_H_ */
|