~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_static.cc

  • Committer: Moriyoshi Koizumi
  • Date: 2008-11-15 18:36:31 UTC
  • mto: (584.1.5 devel)
  • mto: This revision was merged to the branch mainline in revision 588.
  • Revision ID: mozo@mozo.jp-20081115183631-81d0clowyot42mk7
Incorporating changes proposed by mtaylor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
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 */
15
15
 
16
16
/*
17
17
  Static variables for mysys library. All definied here for easy making of
18
18
  a shared library
19
19
*/
20
20
 
21
 
#include <config.h>
22
 
 
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"
26
 
#include <stdlib.h>
27
 
 
28
 
#include <drizzled/visibility.h>
29
 
 
30
 
namespace drizzled
31
 
{
32
 
namespace internal
33
 
{
34
24
 
35
25
bool timed_mutexes= 0;
36
26
 
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;
 
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}};
44
36
uint32_t   my_file_limit= MY_NFILE;
 
37
struct st_my_file_info *my_file_info= my_file_info_default;
45
38
 
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 */
50
44
 
51
45
        /* from mf_reccache.c */
56
50
                                /* :::::::::::::::::::::::::: */
57
51
const char *soundex_map=          "01230120022455012623010202";
58
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
 
59
57
        /* from safe_malloc */
60
58
uint32_t sf_malloc_prehunc=0,           /* If you have problem with core- */
61
59
     sf_malloc_endhunc=0,               /* dump when malloc-message.... */
67
65
unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
68
66
     *sf_max_adress= (unsigned char*) 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;
71
69
 
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
73
 
 
74
        /* from errors.c */
 
75
void (*my_abort_hook)(int) = (void(*)(int)) exit;
 
76
void (*error_handler_hook)(uint32_t error,const char *str,myf MyFlags)=
 
77
    my_message_no_curses;
 
78
void (*fatal_error_handler_hook)(uint32_t error,const char *str,myf MyFlags)=
 
79
  my_message_no_curses;
 
80
 
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;
81
 
 
82
 
} /* namespace internal */
83
 
} /* namespace drizzled */