~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_static.cc

  • Committer: Brian Aker
  • Date: 2009-01-17 02:46:52 UTC
  • Revision ID: brian@gir-3.local-20090117024652-4ducefje08ajbs1q
Refactor append_identifier and remove dead OPTION_QUOTE_SHOW_CREATE option
(we always quote).

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
24
#include <stdlib.h>
27
25
 
28
 
namespace drizzled
29
 
{
30
 
namespace internal
31
 
{
32
 
 
33
26
bool timed_mutexes= 0;
34
27
 
35
28
        /* from my_init */
37
30
const char      *my_progname=0;
38
31
char curr_dir[FN_REFLEN]= {0},
39
32
     home_dir_buff[FN_REFLEN]= {0};
 
33
uint32_t                my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0;
 
34
uint32_t           my_file_total_opened= 0;
40
35
int my_umask=0664, my_umask_dir=0777;
 
36
struct st_my_file_info my_file_info_default[MY_NFILE]= {{0,UNOPEN}};
41
37
uint32_t   my_file_limit= MY_NFILE;
 
38
struct st_my_file_info *my_file_info= my_file_info_default;
42
39
 
43
40
        /* From mf_brkhant */
44
41
int my_dont_interrupt=0;
45
42
volatile int            _my_signals=0;
 
43
struct st_remember _my_sig_remember[MAX_SIGNALS]={{0,0}};
46
44
sigset_t my_signals;                    /* signals blocked by mf_brkhant */
47
45
 
48
46
        /* from mf_reccache.c */
70
68
int volatile my_have_got_alarm=0;       /* declare variable to reset */
71
69
uint32_t my_time_to_wait_for_lock=2;    /* In seconds */
72
70
 
 
71
        /* from errors.c */
 
72
void_ptr_int_func my_abort_hook= (void_ptr_int_func)exit;
 
73
error_handler_func error_handler_hook= my_message_no_curses;
 
74
error_handler_func fatal_error_handler_hook= my_message_no_curses;
 
75
 
73
76
        /* How to disable options */
74
 
bool my_disable_async_io= true;
 
77
bool my_disable_async_io=0;
75
78
bool my_disable_flush_key_blocks=0;
76
79
bool my_disable_symlinks=0;
77
80
bool mysys_uses_curses=0;
78
 
 
79
 
} /* namespace internal */
80
 
} /* namespace drizzled */