~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_static.cc

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  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 "mysys_priv.h"
22
 
#include <mysys/mysys_err.h>
 
21
#include <config.h>
 
22
 
 
23
#include <drizzled/internal/my_sys.h>
 
24
#include <drizzled/error.h>
23
25
#include "my_static.h"
24
26
#include <stdlib.h>
25
27
 
 
28
#include <drizzled/visibility.h>
 
29
 
 
30
namespace drizzled
 
31
{
 
32
namespace internal
 
33
{
 
34
 
26
35
bool timed_mutexes= 0;
27
36
 
28
37
        /* from my_init */
30
39
const char      *my_progname=0;
31
40
char curr_dir[FN_REFLEN]= {0},
32
41
     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;
35
 
int my_umask=0664, my_umask_dir=0777;
36
 
struct st_my_file_info my_file_info_default[MY_NFILE]= {{0,UNOPEN}};
 
42
DRIZZLED_API int my_umask=0664;
 
43
int my_umask_dir=0777;
37
44
uint32_t   my_file_limit= MY_NFILE;
38
 
struct st_my_file_info *my_file_info= my_file_info_default;
39
45
 
40
46
        /* From mf_brkhant */
41
47
int my_dont_interrupt=0;
42
48
volatile int            _my_signals=0;
43
 
struct st_remember _my_sig_remember[MAX_SIGNALS]={{0,0}};
44
49
sigset_t my_signals;                    /* signals blocked by mf_brkhant */
45
50
 
46
51
        /* from mf_reccache.c */
51
56
                                /* :::::::::::::::::::::::::: */
52
57
const char *soundex_map=          "01230120022455012623010202";
53
58
 
54
 
        /* from my_malloc */
55
 
USED_MEM* my_once_root_block=0;                 /* pointer to first block */
56
 
uint      my_once_extra=ONCE_ALLOC_INIT;        /* Memory to alloc / block */
57
 
 
58
59
        /* from safe_malloc */
59
60
uint32_t sf_malloc_prehunc=0,           /* If you have problem with core- */
60
61
     sf_malloc_endhunc=0,               /* dump when malloc-message.... */
66
67
unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
67
68
     *sf_max_adress= (unsigned char*) 0L;
68
69
/* Root of the linked list of struct st_irem */
69
 
struct st_irem *sf_malloc_root = NULL;
 
70
irem *sf_malloc_root = NULL;
70
71
 
71
72
        /* from my_alarm */
72
73
int volatile my_have_got_alarm=0;       /* declare variable to reset */
73
74
uint32_t my_time_to_wait_for_lock=2;    /* In seconds */
74
75
 
75
 
        /* from errors.c */
76
 
void_ptr_int_func my_abort_hook= (void_ptr_int_func)exit;
77
 
error_handler_func error_handler_hook= my_message_no_curses;
78
 
error_handler_func fatal_error_handler_hook= my_message_no_curses;
79
 
 
80
76
        /* How to disable options */
81
 
bool my_disable_async_io=0;
 
77
bool my_disable_async_io= true;
82
78
bool my_disable_flush_key_blocks=0;
83
79
bool my_disable_symlinks=0;
84
80
bool mysys_uses_curses=0;
 
81
 
 
82
} /* namespace internal */
 
83
} /* namespace drizzled */