~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_static.c

  • Committer: Monty Taylor
  • Date: 2008-08-15 20:01:00 UTC
  • Revision ID: monty@inaugust.com-20080815200100-tht5d421maap6kjp
Updated POTFILES with local_infile.c.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
  a shared library
19
19
*/
20
20
 
21
 
#include "mysys/mysys_priv.h"
 
21
#include "mysys_priv.h"
22
22
#include <mysys/mysys_err.h>
23
23
#include "my_static.h"
24
 
#include <stdlib.h>
25
24
 
26
25
bool timed_mutexes= 0;
27
26
 
33
32
uint32_t                my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0;
34
33
uint32_t           my_file_total_opened= 0;
35
34
int my_umask=0664, my_umask_dir=0777;
36
 
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;
37
38
 
38
39
        /* From mf_brkhant */
39
40
int my_dont_interrupt=0;
49
50
                                /* :::::::::::::::::::::::::: */
50
51
const char *soundex_map=          "01230120022455012623010202";
51
52
 
 
53
        /* from my_malloc */
 
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
 
52
57
        /* from safe_malloc */
53
 
uint32_t sf_malloc_prehunc=0,           /* If you have problem with core- */
 
58
uint sf_malloc_prehunc=0,               /* If you have problem with core- */
54
59
     sf_malloc_endhunc=0,               /* dump when malloc-message.... */
55
60
                                        /* set theese to 64 or 128  */
56
61
     sf_malloc_quick=0;                 /* set if no calls to sanity */
57
62
uint32_t sf_malloc_cur_memory= 0L;              /* Current memory usage */
58
63
uint32_t sf_malloc_max_memory= 0L;              /* Maximum memory usage */
59
 
uint32_t  sf_malloc_count= 0;           /* Number of times NEW() was called */
60
 
unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
61
 
     *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;
62
67
/* Root of the linked list of struct st_irem */
63
68
struct st_irem *sf_malloc_root = NULL;
64
69
 
67
72
uint32_t my_time_to_wait_for_lock=2;    /* In seconds */
68
73
 
69
74
        /* from errors.c */
70
 
void_ptr_int_func my_abort_hook= (void_ptr_int_func)exit;
71
 
error_handler_func error_handler_hook= NULL;
 
75
void (*my_abort_hook)(int) = (void(*)(int)) exit;
 
76
void (*error_handler_hook)(uint error,const char *str,myf MyFlags)=
 
77
    my_message_no_curses;
 
78
void (*fatal_error_handler_hook)(uint error,const char *str,myf MyFlags)=
 
79
  my_message_no_curses;
72
80
 
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;