2020-06-15 07:18:57 -07:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_LOG_INTERNAL_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_LOG_INTERNAL_H_
|
2020-08-25 04:23:25 -07:00
|
|
|
#include "libc/calls/struct/sigaction.h"
|
2020-10-27 03:39:46 -07:00
|
|
|
#include "libc/calls/struct/siginfo.h"
|
2021-08-15 00:05:27 -07:00
|
|
|
#include "libc/calls/struct/termios.h"
|
2020-10-27 03:39:46 -07:00
|
|
|
#include "libc/calls/ucontext.h"
|
2020-06-15 07:18:57 -07:00
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2022-03-18 02:33:37 -07:00
|
|
|
extern hidden bool __nocolor;
|
2022-03-16 13:33:13 -07:00
|
|
|
extern hidden int kCrashSigs[7];
|
2021-10-13 17:27:13 -07:00
|
|
|
extern hidden bool g_isrunningundermake;
|
|
|
|
extern hidden struct termios g_oldtermios;
|
2022-03-16 13:33:13 -07:00
|
|
|
extern hidden struct sigaction g_oldcrashacts[7];
|
2020-06-15 07:18:57 -07:00
|
|
|
|
2020-10-27 03:39:46 -07:00
|
|
|
void __start_fatal(const char *, int) hidden;
|
|
|
|
void __oncrash(int, struct siginfo *, struct ucontext *) relegated;
|
2021-08-25 21:35:58 -07:00
|
|
|
void __restore_tty(int);
|
2020-06-15 07:18:57 -07:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_LOG_INTERNAL_H_ */
|