~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_static.c

  • Committer: Monty Taylor
  • Date: 2008-09-15 17:24:04 UTC
  • Revision ID: monty@inaugust.com-20080915172404-ygh6hiyu0q7qpa9x
Removed strndup calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
uint32_t           my_file_total_opened= 0;
34
34
int my_umask=0664, my_umask_dir=0777;
35
35
struct st_my_file_info my_file_info_default[MY_NFILE]= {{0,UNOPEN}};
36
 
uint32_t   my_file_limit= MY_NFILE;
 
36
uint   my_file_limit= MY_NFILE;
37
37
struct st_my_file_info *my_file_info= my_file_info_default;
38
38
 
39
39
        /* From mf_brkhant */
55
55
uint      my_once_extra=ONCE_ALLOC_INIT;        /* Memory to alloc / block */
56
56
 
57
57
        /* from safe_malloc */
58
 
uint32_t sf_malloc_prehunc=0,           /* If you have problem with core- */
 
58
uint sf_malloc_prehunc=0,               /* If you have problem with core- */
59
59
     sf_malloc_endhunc=0,               /* dump when malloc-message.... */
60
60
                                        /* set theese to 64 or 128  */
61
61
     sf_malloc_quick=0;                 /* set if no calls to sanity */
62
62
uint32_t sf_malloc_cur_memory= 0L;              /* Current memory usage */
63
63
uint32_t sf_malloc_max_memory= 0L;              /* Maximum memory usage */
64
 
uint32_t  sf_malloc_count= 0;           /* Number of times NEW() was called */
65
 
unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
66
 
     *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;
67
67
/* Root of the linked list of struct st_irem */
68
68
struct st_irem *sf_malloc_root = NULL;
69
69
 
73
73
 
74
74
        /* from errors.c */
75
75
void (*my_abort_hook)(int) = (void(*)(int)) exit;
76
 
void (*error_handler_hook)(uint32_t error,const char *str,myf MyFlags)=
 
76
void (*error_handler_hook)(uint error,const char *str,myf MyFlags)=
77
77
    my_message_no_curses;
78
 
void (*fatal_error_handler_hook)(uint32_t error,const char *str,myf MyFlags)=
 
78
void (*fatal_error_handler_hook)(uint error,const char *str,myf MyFlags)=
79
79
  my_message_no_curses;
80
80
 
81
81
        /* How to disable options */