mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysys / my_static.h
blobe3004e9b482852c93c771207ad41713beabb3ab0
1 /* Copyright (c) 2000, 2002-2004, 2007, 2008 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
17 Static variables for mysys library. All definied here for easy making of
18 a shared library
21 C_MODE_START
22 #include <signal.h>
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
29 struct st_remember {
30 int number;
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
39 boundary.
42 struct st_irem
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 size_t datasize; /* Size requested */
48 uint32 linenum; /* Line number in above file */
49 uint32 SpecialValue; /* Underrun marker value */
53 extern char NEAR curr_dir[FN_REFLEN],NEAR 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;
71 #if defined(THREAD) && !defined(__WIN__)
72 extern sigset_t my_signals; /* signals blocked by mf_brkhant */
73 #endif
74 C_MODE_END