~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
/* Copyright (C) 2000 MySQL AB
2
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.
6
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.
11
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 */
15
16
/*
17
  Static variables for mysys library. All definied here for easy making of
18
  a shared library
19
*/
20
21
#include <signal.h>
22
23
#define MAX_SIGNALS	10		/* Max signals under a dont-allow */
24
#define MIN_KEYBLOCK	(min(IO_SIZE,1024))
25
#define MAX_KEYBLOCK	8192		/* Max keyblocklength == 8*IO_SIZE */
26
#define MAX_BLOCK_TYPES MAX_KEYBLOCK/MIN_KEYBLOCK
27
398.1.9 by Monty Taylor
Cleaned up stuff out of global.h.
28
#ifdef __cplusplus
29
extern "C" {
30
#endif
31
1 by brian
clean slate
32
struct st_remember {
33
  int number;
779.2.11 by Monty Taylor
General build cleanup - removed cruft, removed depreated checks.
34
  void (*func)(int number);
1 by brian
clean slate
35
};
36
37
/*
38
  Structure that stores information of a allocated memory block
39
  The data is at &struct_adr+sizeof(ALIGN_SIZE(sizeof(struct irem)))
40
  The lspecialvalue is at the previous 4 bytes from this, which may not
41
  necessarily be in the struct if the struct size isn't aligned at a 8 byte
42
  boundary.
43
*/
44
45
struct st_irem
46
{
47
  struct st_irem *next;		/* Linked list of structures	   */
48
  struct st_irem *prev;		/* Other link			   */
49
  char *filename;		/* File in which memory was new'ed */
205 by Brian Aker
uint32 -> uin32_t
50
  uint32_t linenum;		/* Line number in above file	   */
51
  uint32_t datasize;		/* Size requested		   */
52
  uint32_t SpecialValue;		/* Underrun marker value	   */
1 by brian
clean slate
53
};
54
55
56
extern char curr_dir[FN_REFLEN], home_dir_buff[FN_REFLEN];
57
58
extern volatile int _my_signals;
59
extern struct st_remember _my_sig_remember[MAX_SIGNALS];
60
61
extern const char *soundex_map;
62
481 by Brian Aker
Remove all of uchar.
63
extern unsigned char	*sf_min_adress,*sf_max_adress;
1 by brian
clean slate
64
extern uint	sf_malloc_count;
65
extern struct st_irem *sf_malloc_root;
66
151 by Brian Aker
Ulonglong to uint64_t
67
extern uint64_t query_performance_frequency, query_performance_offset;
1 by brian
clean slate
68
69
extern sigset_t my_signals;		/* signals blocked by mf_brkhant */
398.1.9 by Monty Taylor
Cleaned up stuff out of global.h.
70
71
#ifdef __cplusplus
72
}
73
#endif
74