cosmopolitan/libc/log/internal.h
Justine Tunney 1f2a5a8fc1
Implement crash reporting for AARCH64
The ShowCrashReports() feature for aarch64 should work even better than
the x86 crash reports. Thanks to the benefit of hindsight these reports
should be rock solid reliable and beautiful to read.

This change also improves the syscall polyfills for aarch64. Some of the
sys_foo() functions have been removed, usually because they're legacy or
downright footguns not worth building.
2023-05-12 05:47:54 -07:00

19 lines
649 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 _Hide bool __nocolor;
extern _Hide bool _wantcrashreports;
extern _Hide bool g_isrunningundermake;
void __start_fatal(const char *, int) _Hide;
void __restore_tty(void);
void RestoreDefaultCrashSignalHandlers(void);
void __oncrash_amd64(int, struct siginfo *, void *) relegated;
void __oncrash_arm64(int, struct siginfo *, void *) relegated;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_LOG_INTERNAL_H_ */