~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_static.c

  • Committer: Monty Taylor
  • Date: 2008-08-04 19:37:18 UTC
  • mto: (261.2.2 codestyle)
  • mto: This revision was merged to the branch mainline in revision 262.
  • Revision ID: monty@inaugust.com-20080804193718-f0rz13uli4429ozb
Changed gettext_noop() to N_()

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
  a shared library
19
19
*/
20
20
 
21
 
#include <stdlib.h>
22
21
#include "mysys_priv.h"
23
22
#include <mysys/mysys_err.h>
24
23
#include "my_static.h"
30
29
const char      *my_progname=0;
31
30
char curr_dir[FN_REFLEN]= {0},
32
31
     home_dir_buff[FN_REFLEN]= {0};
33
 
uint32_t                my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0;
34
 
uint32_t           my_file_total_opened= 0;
 
32
ulong           my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0;
 
33
ulong           my_file_total_opened= 0;
35
34
int my_umask=0664, my_umask_dir=0777;
36
35
struct st_my_file_info my_file_info_default[MY_NFILE]= {{0,UNOPEN}};
37
 
uint32_t   my_file_limit= MY_NFILE;
 
36
uint   my_file_limit= MY_NFILE;
38
37
struct st_my_file_info *my_file_info= my_file_info_default;
39
38
 
40
39
        /* From mf_brkhant */
44
43
sigset_t my_signals;                    /* signals blocked by mf_brkhant */
45
44
 
46
45
        /* from mf_reccache.c */
47
 
uint32_t my_default_record_cache_size=RECORD_CACHE_SIZE;
 
46
ulong my_default_record_cache_size=RECORD_CACHE_SIZE;
48
47
 
49
48
        /* from soundex.c */
50
49
                                /* ABCDEFGHIJKLMNOPQRSTUVWXYZ */
56
55
uint      my_once_extra=ONCE_ALLOC_INIT;        /* Memory to alloc / block */
57
56
 
58
57
        /* from safe_malloc */
59
 
uint32_t sf_malloc_prehunc=0,           /* If you have problem with core- */
 
58
uint sf_malloc_prehunc=0,               /* If you have problem with core- */
60
59
     sf_malloc_endhunc=0,               /* dump when malloc-message.... */
61
60
                                        /* set theese to 64 or 128  */
62
61
     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;
 
62
ulong sf_malloc_cur_memory= 0L;         /* Current memory usage */
 
63
ulong sf_malloc_max_memory= 0L;         /* Maximum memory usage */
 
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;
68
67
/* Root of the linked list of struct st_irem */
69
68
struct st_irem *sf_malloc_root = NULL;
70
69
 
71
70
        /* from my_alarm */
72
71
int volatile my_have_got_alarm=0;       /* declare variable to reset */
73
 
uint32_t my_time_to_wait_for_lock=2;    /* In seconds */
 
72
ulong my_time_to_wait_for_lock=2;       /* In seconds */
74
73
 
75
74
        /* from errors.c */
76
75
void (*my_abort_hook)(int) = (void(*)(int)) exit;
77
 
void (*error_handler_hook)(uint32_t error,const char *str,myf MyFlags)=
 
76
void (*error_handler_hook)(uint error,const char *str,myf MyFlags)=
78
77
    my_message_no_curses;
79
 
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)=
80
79
  my_message_no_curses;
81
80
 
82
81
        /* How to disable options */