xref: /PHP-7.4/sapi/phpdbg/phpdbg_sigsafe.h (revision 76e3e99d)
1 #ifndef PHPDBG_SIGSAFE_H
2 #define PHPDBG_SIGSAFE_H
3 
4 #define PHPDBG_SIGSAFE_MEM_SIZE (ZEND_MM_CHUNK_SIZE * 2)
5 
6 #include "zend.h"
7 
8 typedef struct {
9 	char *mem;
10 	zend_bool allocated;
11 	zend_mm_heap *heap;
12 	zend_mm_heap *old_heap;
13 } phpdbg_signal_safe_mem;
14 
15 #include "phpdbg.h"
16 
17 zend_bool phpdbg_active_sigsafe_mem(void);
18 
19 void phpdbg_set_sigsafe_mem(char *mem);
20 void phpdbg_clear_sigsafe_mem(void);
21 
22 zend_mm_heap *phpdbg_original_heap_sigsafe_mem(void);
23 
24 #endif
25