···6677// NOTE: Keep these definitions up to date with lkm/darling/binfmt.c!
88// Uses one of the below magic values to toggle the debugging state
99-#define SIGNAL_SIGEXC_TOGGLE LINUX_SIGRTMIN
1010-1111-// A BSD signal number is passed as value
1212-#define SIGNAL_SIGEXC_THUPDATE (LINUX_SIGRTMIN + 1)
1313-1414-#define SIGNAL_THREAD_SUSPEND -100
1515-#define SIGNAL_THREAD_RESUME -101
1616-1717-#define SIGRT_MAGIC_ENABLE_SIGEXC 0xdebdeb01
1818-#define SIGRT_MAGIC_DISABLE_SIGEXC 0xdebdeb00
99+#define SIGNAL_SIGEXC_SUSPEND LINUX_SIGRTMIN
19102011void sigexc_setup(void);
2121-2222-// Is this process currently traced by a debugger?
2323-bool darling_am_i_ptraced(void);
24122513// for PT_SIGEXC to handle this operation synchronously
2614void darling_sigexc_self(void);
2715void sigexc_handler(int linux_signum, struct linux_siginfo* info, struct linux_ucontext* ctxt);
28162929-int linux_sigqueue(int pid, int rtsig, int value);
3030-int linux_sigqueue_thread(int pid, int tid, int rtsig, int value);
1717+void sigexc_thread_setup(void);
1818+void sigexc_thread_exit(void);
31193220#endif
3321