~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_static.cc

Does not work (compile issue in plugin).

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>
 
21
#include "config.h"
22
22
 
23
 
#include <drizzled/internal/my_sys.h>
24
 
#include <drizzled/error.h>
 
23
#include "drizzled/internal/my_sys.h"
 
24
#include "drizzled/my_error.h"
25
25
#include "my_static.h"
26
26
#include <stdlib.h>
27
27
 
28
 
#include <drizzled/visibility.h>
29
 
 
30
28
namespace drizzled
31
29
{
32
30
namespace internal
39
37
const char      *my_progname=0;
40
38
char curr_dir[FN_REFLEN]= {0},
41
39
     home_dir_buff[FN_REFLEN]= {0};
42
 
DRIZZLED_API int my_umask=0664;
43
 
int my_umask_dir=0777;
 
40
uint32_t                my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0;
 
41
uint32_t           my_file_total_opened= 0;
 
42
int my_umask=0664, my_umask_dir=0777;
 
43
uint32_t   my_file_limit= MY_NFILE;
44
44
 
45
45
        /* From mf_brkhant */
46
46
int my_dont_interrupt=0;
50
50
        /* from mf_reccache.c */
51
51
uint32_t my_default_record_cache_size=RECORD_CACHE_SIZE;
52
52
 
 
53
        /* from soundex.c */
 
54
                                /* ABCDEFGHIJKLMNOPQRSTUVWXYZ */
 
55
                                /* :::::::::::::::::::::::::: */
 
56
const char *soundex_map=          "01230120022455012623010202";
 
57
 
 
58
        /* from safe_malloc */
 
59
uint32_t sf_malloc_prehunc=0,           /* If you have problem with core- */
 
60
     sf_malloc_endhunc=0,               /* dump when malloc-message.... */
 
61
                                        /* set theese to 64 or 128  */
 
62
     sf_malloc_quick=0;                 /* set if no calls to sanity */
 
63
uint32_t sf_malloc_cur_memory= 0L;              /* Current memory usage */
 
64
uint32_t sf_malloc_max_memory= 0L;              /* Maximum memory usage */
 
65
uint32_t  sf_malloc_count= 0;           /* Number of times NEW() was called */
 
66
unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
 
67
     *sf_max_adress= (unsigned char*) 0L;
 
68
/* Root of the linked list of struct st_irem */
 
69
struct st_irem *sf_malloc_root = NULL;
 
70
 
53
71
        /* from my_alarm */
54
72
int volatile my_have_got_alarm=0;       /* declare variable to reset */
55
73
uint32_t my_time_to_wait_for_lock=2;    /* In seconds */
58
76
bool my_disable_async_io= true;
59
77
bool my_disable_flush_key_blocks=0;
60
78
bool my_disable_symlinks=0;
 
79
bool mysys_uses_curses=0;
61
80
 
62
81
} /* namespace internal */
63
82
} /* namespace drizzled */