~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
1802.10.2 by Monty Taylor
Update all of the copyright headers to include the correct address.
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
1 by brian
clean slate
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
1848.2.1 by tdavies
File:drizzled/internal/my_static.h; Converted struct 'st_irem' to c++ class and renamed it 'irem'. Also added constructor, and made the changed name consistant in my_static.cc
44
class irem
1 by brian
clean slate
45
{
1848.2.1 by tdavies
File:drizzled/internal/my_static.h; Converted struct 'st_irem' to c++ class and renamed it 'irem'. Also added constructor, and made the changed name consistant in my_static.cc
46
public:
1891.2.1 by Monty Taylor
Fixed things to make things compile with clang
47
  irem *next;		/* Linked list of structures	   */
48
  irem *prev;		/* Other link			   */
1 by brian
clean slate
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	   */
1848.2.1 by tdavies
File:drizzled/internal/my_static.h; Converted struct 'st_irem' to c++ class and renamed it 'irem'. Also added constructor, and made the changed name consistant in my_static.cc
53
54
  irem():
55
    next(NULL),
56
	prev(NULL),
57
	filename(0),
58
	linenum(0),
59
	datasize(0),
60
	SpecialValue(0)
61
  {}
1 by brian
clean slate
62
};
63
64
65
extern char curr_dir[FN_REFLEN], home_dir_buff[FN_REFLEN];
66
67
extern volatile int _my_signals;
68
481 by Brian Aker
Remove all of uchar.
69
extern unsigned char	*sf_min_adress,*sf_max_adress;
1 by brian
clean slate
70
extern uint	sf_malloc_count;
1848.2.1 by tdavies
File:drizzled/internal/my_static.h; Converted struct 'st_irem' to c++ class and renamed it 'irem'. Also added constructor, and made the changed name consistant in my_static.cc
71
extern class irem *sf_malloc_root;
1 by brian
clean slate
72
151 by Brian Aker
Ulonglong to uint64_t
73
extern uint64_t query_performance_frequency, query_performance_offset;
1 by brian
clean slate
74
75
extern sigset_t my_signals;		/* signals blocked by mf_brkhant */
398.1.9 by Monty Taylor
Cleaned up stuff out of global.h.
76
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
77
} /* namespace internal */
78
} /* namespace drizzled */
398.1.9 by Monty Taylor
Cleaned up stuff out of global.h.
79
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
80
#endif /* DRIZZLED_INTERNAL_MY_STATIC_H */