~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
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
21
#ifndef DRIZZLED_INTERNAL_MY_STATIC_H
22
#define DRIZZLED_INTERNAL_MY_STATIC_H
1122.2.10 by Monty Taylor
Fixed all of the include guards.
23
1 by brian
clean slate
24
#include <signal.h>
25
26
#define MAX_SIGNALS	10		/* Max signals under a dont-allow */
27
#define MIN_KEYBLOCK	(min(IO_SIZE,1024))
28
#define MAX_KEYBLOCK	8192		/* Max keyblocklength == 8*IO_SIZE */
29
#define MAX_BLOCK_TYPES MAX_KEYBLOCK/MIN_KEYBLOCK
30
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
31
namespace drizzled
32
{
33
namespace internal
34
{
1 by brian
clean slate
35
36
/*
37
  Structure that stores information of a allocated memory block
38
  The data is at &struct_adr+sizeof(ALIGN_SIZE(sizeof(struct irem)))
39
  The lspecialvalue is at the previous 4 bytes from this, which may not
40
  necessarily be in the struct if the struct size isn't aligned at a 8 byte
41
  boundary.
42
*/
43
44
struct st_irem
45
{
46
  struct st_irem *next;		/* Linked list of structures	   */
47
  struct st_irem *prev;		/* Other link			   */
48
  char *filename;		/* File in which memory was new'ed */
205 by Brian Aker
uint32 -> uin32_t
49
  uint32_t linenum;		/* Line number in above file	   */
50
  uint32_t datasize;		/* Size requested		   */
51
  uint32_t SpecialValue;		/* Underrun marker value	   */
1 by brian
clean slate
52
};
53
54
55
extern char curr_dir[FN_REFLEN], home_dir_buff[FN_REFLEN];
56
57
extern volatile int _my_signals;
58
481 by Brian Aker
Remove all of uchar.
59
extern unsigned char	*sf_min_adress,*sf_max_adress;
1 by brian
clean slate
60
extern uint	sf_malloc_count;
61
extern struct st_irem *sf_malloc_root;
62
151 by Brian Aker
Ulonglong to uint64_t
63
extern uint64_t query_performance_frequency, query_performance_offset;
1 by brian
clean slate
64
65
extern sigset_t my_signals;		/* signals blocked by mf_brkhant */
398.1.9 by Monty Taylor
Cleaned up stuff out of global.h.
66
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
67
} /* namespace internal */
68
} /* namespace drizzled */
398.1.9 by Monty Taylor
Cleaned up stuff out of global.h.
69
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
70
#endif /* DRIZZLED_INTERNAL_MY_STATIC_H */