Drizzled Public API Documentation

my_static.cc

00001 /* Copyright (C) 2000 MySQL AB
00002 
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
00015 
00016 /*
00017   Static variables for mysys library. All definied here for easy making of
00018   a shared library
00019 */
00020 
00021 #include <config.h>
00022 
00023 #include <drizzled/internal/my_sys.h>
00024 #include <drizzled/error.h>
00025 #include "my_static.h"
00026 #include <stdlib.h>
00027 
00028 #include <drizzled/visibility.h>
00029 
00030 namespace drizzled
00031 {
00032 namespace internal
00033 {
00034 
00035 bool timed_mutexes= 0;
00036 
00037   /* from my_init */
00038 char *  home_dir=0;
00039 const char      *my_progname=0;
00040 char curr_dir[FN_REFLEN]= {0},
00041      home_dir_buff[FN_REFLEN]= {0};
00042 DRIZZLED_API int my_umask=0664;
00043 int my_umask_dir=0777;
00044 uint32_t   my_file_limit= MY_NFILE;
00045 
00046   /* From mf_brkhant */
00047 int my_dont_interrupt=0;
00048 volatile int    _my_signals=0;
00049 sigset_t my_signals;      /* signals blocked by mf_brkhant */
00050 
00051   /* from mf_reccache.c */
00052 uint32_t my_default_record_cache_size=RECORD_CACHE_SIZE;
00053 
00054   /* from soundex.c */
00055         /* ABCDEFGHIJKLMNOPQRSTUVWXYZ */
00056         /* :::::::::::::::::::::::::: */
00057 const char *soundex_map=    "01230120022455012623010202";
00058 
00059   /* from safe_malloc */
00060 uint32_t sf_malloc_prehunc=0,   /* If you have problem with core- */
00061      sf_malloc_endhunc=0,   /* dump when malloc-message.... */
00062           /* set theese to 64 or 128  */
00063      sf_malloc_quick=0;     /* set if no calls to sanity */
00064 uint32_t sf_malloc_cur_memory= 0L;    /* Current memory usage */
00065 uint32_t sf_malloc_max_memory= 0L;    /* Maximum memory usage */
00066 uint32_t  sf_malloc_count= 0;   /* Number of times NEW() was called */
00067 unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
00068      *sf_max_adress= (unsigned char*) 0L;
00069 /* Root of the linked list of struct st_irem */
00070 irem *sf_malloc_root = NULL;
00071 
00072   /* from my_alarm */
00073 int volatile my_have_got_alarm=0; /* declare variable to reset */
00074 uint32_t my_time_to_wait_for_lock=2;  /* In seconds */
00075 
00076   /* How to disable options */
00077 bool my_disable_async_io= true;
00078 bool my_disable_flush_key_blocks=0;
00079 bool my_disable_symlinks=0;
00080 bool mysys_uses_curses=0;
00081 
00082 } /* namespace internal */
00083 } /* namespace drizzled */