~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to mysys/my_static.h

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
C_MODE_START
 
22
#include <signal.h>
 
23
 
 
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
 
28
 
 
29
struct st_remember {
 
30
  int number;
 
31
  sig_handler (*func)(int number);
 
32
};
 
33
 
 
34
/*
 
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.
 
40
*/
 
41
 
 
42
struct st_irem
 
43
{
 
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           */
 
50
};
 
51
 
 
52
 
 
53
extern char curr_dir[FN_REFLEN], home_dir_buff[FN_REFLEN];
 
54
 
 
55
extern volatile int _my_signals;
 
56
extern struct st_remember _my_sig_remember[MAX_SIGNALS];
 
57
 
 
58
extern const char *soundex_map;
 
59
 
 
60
extern USED_MEM* my_once_root_block;
 
61
extern uint      my_once_extra;
 
62
 
 
63
extern uchar    *sf_min_adress,*sf_max_adress;
 
64
extern uint     sf_malloc_count;
 
65
extern struct st_irem *sf_malloc_root;
 
66
 
 
67
extern struct st_my_file_info my_file_info_default[MY_NFILE];
 
68
 
 
69
extern ulonglong query_performance_frequency, query_performance_offset;
 
70
 
 
71
#if defined(THREAD)
 
72
extern sigset_t my_signals;             /* signals blocked by mf_brkhant */
 
73
#endif
 
74
C_MODE_END