~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_static.c

  • Committer: Jay Pipes
  • Date: 2008-09-11 16:03:22 UTC
  • mto: (383.5.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 386.
  • Revision ID: jay@mysql.com-20080911160322-vrl0k1djo6q6ytv1
Removed SQL_MODE variances from comment_table.test and ensured correct error thrown when a comment that is too long was input.  After moving to proto buffer definition for table, the 2048 length will go away.

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"
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
 
#include <stdlib.h>
27
 
 
28
 
namespace drizzled
29
 
{
30
 
namespace internal
31
 
{
32
24
 
33
25
bool timed_mutexes= 0;
34
26
 
37
29
const char      *my_progname=0;
38
30
char curr_dir[FN_REFLEN]= {0},
39
31
     home_dir_buff[FN_REFLEN]= {0};
 
32
uint32_t                my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0;
 
33
uint32_t           my_file_total_opened= 0;
40
34
int my_umask=0664, my_umask_dir=0777;
41
 
uint32_t   my_file_limit= MY_NFILE;
 
35
struct st_my_file_info my_file_info_default[MY_NFILE]= {{0,UNOPEN}};
 
36
uint   my_file_limit= MY_NFILE;
 
37
struct st_my_file_info *my_file_info= my_file_info_default;
42
38
 
43
39
        /* From mf_brkhant */
44
40
int my_dont_interrupt=0;
45
41
volatile int            _my_signals=0;
 
42
struct st_remember _my_sig_remember[MAX_SIGNALS]={{0,0}};
46
43
sigset_t my_signals;                    /* signals blocked by mf_brkhant */
47
44
 
48
45
        /* from mf_reccache.c */
53
50
                                /* :::::::::::::::::::::::::: */
54
51
const char *soundex_map=          "01230120022455012623010202";
55
52
 
 
53
        /* from my_malloc */
 
54
USED_MEM* my_once_root_block=0;                 /* pointer to first block */
 
55
uint      my_once_extra=ONCE_ALLOC_INIT;        /* Memory to alloc / block */
 
56
 
56
57
        /* from safe_malloc */
57
 
uint32_t sf_malloc_prehunc=0,           /* If you have problem with core- */
 
58
uint sf_malloc_prehunc=0,               /* If you have problem with core- */
58
59
     sf_malloc_endhunc=0,               /* dump when malloc-message.... */
59
60
                                        /* set theese to 64 or 128  */
60
61
     sf_malloc_quick=0;                 /* set if no calls to sanity */
61
62
uint32_t sf_malloc_cur_memory= 0L;              /* Current memory usage */
62
63
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;
 
64
uint  sf_malloc_count= 0;               /* Number of times NEW() was called */
 
65
uchar *sf_min_adress= (uchar*) ~(unsigned long) 0L,
 
66
     *sf_max_adress= (uchar*) 0L;
66
67
/* Root of the linked list of struct st_irem */
67
 
irem *sf_malloc_root = NULL;
 
68
struct st_irem *sf_malloc_root = NULL;
68
69
 
69
70
        /* from my_alarm */
70
71
int volatile my_have_got_alarm=0;       /* declare variable to reset */
71
72
uint32_t my_time_to_wait_for_lock=2;    /* In seconds */
72
73
 
 
74
        /* from errors.c */
 
75
void (*my_abort_hook)(int) = (void(*)(int)) exit;
 
76
void (*error_handler_hook)(uint error,const char *str,myf MyFlags)=
 
77
    my_message_no_curses;
 
78
void (*fatal_error_handler_hook)(uint error,const char *str,myf MyFlags)=
 
79
  my_message_no_curses;
 
80
 
73
81
        /* How to disable options */
74
 
bool my_disable_async_io= true;
 
82
bool my_disable_async_io=0;
75
83
bool my_disable_flush_key_blocks=0;
76
84
bool my_disable_symlinks=0;
77
85
bool mysys_uses_curses=0;
78
 
 
79
 
} /* namespace internal */
80
 
} /* namespace drizzled */