1
/* Copyright (C) 2000 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
17
Static variables for mysys library. All definied here for easy making of
24
#define MAX_SIGNALS 10 /* Max signals under a dont-allow */
25
#define MIN_KEYBLOCK (min(IO_SIZE,1024))
26
#define MAX_KEYBLOCK 8192 /* Max keyblocklength == 8*IO_SIZE */
27
#define MAX_BLOCK_TYPES MAX_KEYBLOCK/MIN_KEYBLOCK
31
sig_handler (*func)(int number);
35
Structure that stores information of a allocated memory block
36
The data is at &struct_adr+sizeof(ALIGN_SIZE(sizeof(struct irem)))
37
The lspecialvalue is at the previous 4 bytes from this, which may not
38
necessarily be in the struct if the struct size isn't aligned at a 8 byte
44
struct st_irem *next; /* Linked list of structures */
45
struct st_irem *prev; /* Other link */
46
char *filename; /* File in which memory was new'ed */
47
uint32 linenum; /* Line number in above file */
48
uint32 datasize; /* Size requested */
49
uint32 SpecialValue; /* Underrun marker value */
53
extern char curr_dir[FN_REFLEN], home_dir_buff[FN_REFLEN];
55
extern volatile int _my_signals;
56
extern struct st_remember _my_sig_remember[MAX_SIGNALS];
58
extern const char *soundex_map;
60
extern USED_MEM* my_once_root_block;
61
extern uint my_once_extra;
63
extern uchar *sf_min_adress,*sf_max_adress;
64
extern uint sf_malloc_count;
65
extern struct st_irem *sf_malloc_root;
67
extern struct st_my_file_info my_file_info_default[MY_NFILE];
69
extern ulonglong query_performance_frequency, query_performance_offset;
72
extern sigset_t my_signals; /* signals blocked by mf_brkhant */