~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to drizzled/internal/my_static.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-k6g1xe6cshbwa0f8
Tags: upstream-2010.03.1347
ImportĀ upstreamĀ versionĀ 2010.03.1347

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2000 MySQL AB
 
2
 
 
3
   This program is free software; you can redistribute it and/or modify
 
4
   it under the terms of the GNU General Public License as published by
 
5
   the Free Software Foundation; version 2 of the License.
 
6
 
 
7
   This program is distributed in the hope that it will be useful,
 
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
   GNU General Public License for more details.
 
11
 
 
12
   You should have received a copy of the GNU General Public License
 
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 */
 
15
 
 
16
/*
 
17
  Static variables for mysys library. All definied here for easy making of
 
18
  a shared library
 
19
*/
 
20
 
 
21
#include "config.h"
 
22
 
 
23
#include "drizzled/internal/my_sys.h"
 
24
#include "drizzled/error.h"
 
25
#include "my_static.h"
 
26
#include <stdlib.h>
 
27
 
 
28
namespace drizzled
 
29
{
 
30
namespace internal
 
31
{
 
32
 
 
33
bool timed_mutexes= 0;
 
34
 
 
35
        /* from my_init */
 
36
char *  home_dir=0;
 
37
const char      *my_progname=0;
 
38
char curr_dir[FN_REFLEN]= {0},
 
39
     home_dir_buff[FN_REFLEN]= {0};
 
40
int my_umask=0664, my_umask_dir=0777;
 
41
uint32_t   my_file_limit= MY_NFILE;
 
42
 
 
43
        /* From mf_brkhant */
 
44
int my_dont_interrupt=0;
 
45
volatile int            _my_signals=0;
 
46
sigset_t my_signals;                    /* signals blocked by mf_brkhant */
 
47
 
 
48
        /* from mf_reccache.c */
 
49
uint32_t my_default_record_cache_size=RECORD_CACHE_SIZE;
 
50
 
 
51
        /* from soundex.c */
 
52
                                /* ABCDEFGHIJKLMNOPQRSTUVWXYZ */
 
53
                                /* :::::::::::::::::::::::::: */
 
54
const char *soundex_map=          "01230120022455012623010202";
 
55
 
 
56
        /* from safe_malloc */
 
57
uint32_t sf_malloc_prehunc=0,           /* If you have problem with core- */
 
58
     sf_malloc_endhunc=0,               /* dump when malloc-message.... */
 
59
                                        /* set theese to 64 or 128  */
 
60
     sf_malloc_quick=0;                 /* set if no calls to sanity */
 
61
uint32_t sf_malloc_cur_memory= 0L;              /* Current memory usage */
 
62
uint32_t sf_malloc_max_memory= 0L;              /* Maximum memory usage */
 
63
uint32_t  sf_malloc_count= 0;           /* Number of times NEW() was called */
 
64
unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
 
65
     *sf_max_adress= (unsigned char*) 0L;
 
66
/* Root of the linked list of struct st_irem */
 
67
struct st_irem *sf_malloc_root = NULL;
 
68
 
 
69
        /* from my_alarm */
 
70
int volatile my_have_got_alarm=0;       /* declare variable to reset */
 
71
uint32_t my_time_to_wait_for_lock=2;    /* In seconds */
 
72
 
 
73
        /* How to disable options */
 
74
bool my_disable_async_io= true;
 
75
bool my_disable_flush_key_blocks=0;
 
76
bool my_disable_symlinks=0;
 
77
bool mysys_uses_curses=0;
 
78
 
 
79
} /* namespace internal */
 
80
} /* namespace drizzled */