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"
28
#include <drizzled/visibility.h>
35
25
bool timed_mutexes= 0;
39
29
const char *my_progname=0;
40
30
char curr_dir[FN_REFLEN]= {0},
41
31
home_dir_buff[FN_REFLEN]= {0};
42
DRIZZLED_API int my_umask=0664;
43
int my_umask_dir=0777;
44
uint32_t my_file_limit= MY_NFILE;
32
uint32_t my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0;
33
uint32_t my_file_total_opened= 0;
34
int my_umask=0664, my_umask_dir=0777;
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;
46
39
/* From mf_brkhant */
47
40
int my_dont_interrupt=0;
48
41
volatile int _my_signals=0;
42
struct st_remember _my_sig_remember[MAX_SIGNALS]={{0,0}};
49
43
sigset_t my_signals; /* signals blocked by mf_brkhant */
51
45
/* from mf_reccache.c */
56
50
/* :::::::::::::::::::::::::: */
57
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 */
59
57
/* from safe_malloc */
60
uint32_t sf_malloc_prehunc=0, /* If you have problem with core- */
58
uint sf_malloc_prehunc=0, /* If you have problem with core- */
61
59
sf_malloc_endhunc=0, /* dump when malloc-message.... */
62
60
/* set theese to 64 or 128 */
63
61
sf_malloc_quick=0; /* set if no calls to sanity */
64
62
uint32_t sf_malloc_cur_memory= 0L; /* Current memory usage */
65
63
uint32_t sf_malloc_max_memory= 0L; /* Maximum memory usage */
66
uint32_t sf_malloc_count= 0; /* Number of times NEW() was called */
67
unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
68
*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;
69
67
/* Root of the linked list of struct st_irem */
70
irem *sf_malloc_root = NULL;
68
struct st_irem *sf_malloc_root = NULL;
72
70
/* from my_alarm */
73
71
int volatile my_have_got_alarm=0; /* declare variable to reset */
74
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)=
76
81
/* How to disable options */
77
bool my_disable_async_io= true;
82
bool my_disable_async_io=0;
78
83
bool my_disable_flush_key_blocks=0;
79
84
bool my_disable_symlinks=0;
80
85
bool mysys_uses_curses=0;
82
} /* namespace internal */
83
} /* namespace drizzled */