12
12
You should have received a copy of the GNU General Public License
13
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
17
17
Static variables for mysys library. All definied here for easy making of
23
#include "drizzled/internal/my_sys.h"
24
#include "drizzled/error.h"
21
#include "mysys_priv.h"
22
#include <mysys/mysys_err.h>
25
23
#include "my_static.h"
33
25
bool timed_mutexes= 0;
37
29
const char *my_progname=0;
38
30
char curr_dir[FN_REFLEN]= {0},
39
31
home_dir_buff[FN_REFLEN]= {0};
32
uint32_t my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0;
33
uint32_t my_file_total_opened= 0;
40
34
int my_umask=0664, my_umask_dir=0777;
41
uint32_t my_file_limit= MY_NFILE;
35
struct st_my_file_info my_file_info_default[MY_NFILE]= {{0,UNOPEN}};
36
uint my_file_limit= MY_NFILE;
37
struct st_my_file_info *my_file_info= my_file_info_default;
43
39
/* From mf_brkhant */
44
40
int my_dont_interrupt=0;
45
41
volatile int _my_signals=0;
42
struct st_remember _my_sig_remember[MAX_SIGNALS]={{0,0}};
46
43
sigset_t my_signals; /* signals blocked by mf_brkhant */
48
45
/* from mf_reccache.c */
53
50
/* :::::::::::::::::::::::::: */
54
51
const char *soundex_map= "01230120022455012623010202";
54
USED_MEM* my_once_root_block=0; /* pointer to first block */
55
uint my_once_extra=ONCE_ALLOC_INIT; /* Memory to alloc / block */
56
57
/* from safe_malloc */
57
uint32_t sf_malloc_prehunc=0, /* If you have problem with core- */
58
uint sf_malloc_prehunc=0, /* If you have problem with core- */
58
59
sf_malloc_endhunc=0, /* dump when malloc-message.... */
59
60
/* set theese to 64 or 128 */
60
61
sf_malloc_quick=0; /* set if no calls to sanity */
61
62
uint32_t sf_malloc_cur_memory= 0L; /* Current memory usage */
62
63
uint32_t sf_malloc_max_memory= 0L; /* Maximum memory usage */
63
uint32_t sf_malloc_count= 0; /* Number of times NEW() was called */
64
unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
65
*sf_max_adress= (unsigned char*) 0L;
64
uint sf_malloc_count= 0; /* Number of times NEW() was called */
65
uchar *sf_min_adress= (uchar*) ~(unsigned long) 0L,
66
*sf_max_adress= (uchar*) 0L;
66
67
/* Root of the linked list of struct st_irem */
67
irem *sf_malloc_root = NULL;
68
struct st_irem *sf_malloc_root = NULL;
69
70
/* from my_alarm */
70
71
int volatile my_have_got_alarm=0; /* declare variable to reset */
71
72
uint32_t my_time_to_wait_for_lock=2; /* In seconds */
75
void (*my_abort_hook)(int) = (void(*)(int)) exit;
76
void (*error_handler_hook)(uint error,const char *str,myf MyFlags)=
78
void (*fatal_error_handler_hook)(uint error,const char *str,myf MyFlags)=
73
81
/* How to disable options */
74
bool my_disable_async_io= true;
82
bool my_disable_async_io=0;
75
83
bool my_disable_flush_key_blocks=0;
76
84
bool my_disable_symlinks=0;
77
85
bool mysys_uses_curses=0;
79
} /* namespace internal */
80
} /* namespace drizzled */