~drizzle-trunk/drizzle/development

481.2.1 by Monty Taylor
Split iocache definitions into their own header.
1
/* - mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
4
 *  Copyright (C) 2008 MySQL
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
10
 *
11
 *  This program is distributed in the hope that it will be useful,
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *  GNU General Public License for more details.
15
 *
16
 *  You should have received a copy of the GNU General Public License
17
 *  along with this program; if not, write to the Free Software
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 */
1 by brian
clean slate
20
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
21
#ifndef DRIZZLED_INTERNAL_MY_SYS_H
22
#define DRIZZLED_INTERNAL_MY_SYS_H
1 by brian
clean slate
23
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
24
#ifdef __cplusplus
25
# include <cstdio>
26
#else
27
# include <stdio.h>
28
#endif
29
12.4.2 by Stewart Smith
my_errno => errno
30
#include <errno.h>
31
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
32
#include "drizzled/internal/my_pthread.h"
1 by brian
clean slate
33
1241.9.61 by Monty Taylor
No more mystrings in drizzled/
34
#include "drizzled/charset_info.h"                    /* for CHARSET_INFO */
1 by brian
clean slate
35
#include <stdarg.h>
1241.9.57 by Monty Taylor
Oy. Bigger change than I normally like - but this stuff is all intertwined.
36
#include "drizzled/typelib.h"
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
37
#include "drizzled/internal/aio_result.h"
1 by brian
clean slate
38
1241.9.56 by Monty Taylor
More mysys cleaning.
39
#include "drizzled/memory/root.h"
1271.5.3 by Tim Penhey
change the include files
40
#include "drizzled/error.h"
492.1.1 by Monty Taylor
Moved MEM_ROOT functions into my_alloc.h.
41
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
42
#ifndef errno				/* did we already get it? */
43
#ifdef HAVE_ERRNO_AS_DEFINE
44
#include <errno.h>			/* errno is a define */
45
#else
46
extern int errno;			/* declare errno */
47
#endif
48
#endif					/* #ifndef errno */
49
1241.9.57 by Monty Taylor
Oy. Bigger change than I normally like - but this stuff is all intertwined.
50
#include <drizzled/dynamic_array.h>
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
51
1702.1.1 by jobin
Support for cross platform compilation
52
#ifdef HAVE_SYS_MMAN_H 
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
53
#include <sys/mman.h>
1702.1.1 by jobin
Support for cross platform compilation
54
#endif
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
55
1241.9.45 by Monty Taylor
Added a header for qsort_cmp.
56
#include "drizzled/qsort_cmp.h"
57
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
58
namespace drizzled
59
{
60
namespace internal
61
{
62
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
63
#ifndef MAP_NOSYNC
64
#define MAP_NOSYNC      0
65
#endif
66
#ifndef MAP_NORESERVE
67
#define MAP_NORESERVE 0         /* For irix and AIX */
68
#endif
69
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
70
/*
71
  EDQUOT is used only in 3 C files only in mysys/. If it does not exist on
72
  system, we set it to some value which can never happen.
73
*/
74
#ifndef EDQUOT
75
#define EDQUOT (-1)
76
#endif
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
77
520.4.43 by mordred
A set of Solaris fixes.
78
/* Sun Studio does not inject this into main namespace yet */
79
#if defined(__cplusplus)
80
  using std::FILE;
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
81
#endif
520.4.43 by mordred
A set of Solaris fixes.
82
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
83
#define MY_INIT(name);		{ ::drizzled::internal::my_progname= name; ::drizzled::internal::my_init(); }
1 by brian
clean slate
84
85
86
	/* General bitmaps for my_func's */
87
#define MY_FFNF		1	/* Fatal if file not found */
88
#define MY_FNABP	2	/* Fatal if not all bytes read/writen */
89
#define MY_NABP		4	/* Error if not all bytes read/writen */
90
#define MY_FAE		8	/* Fatal if any error */
91
#define MY_WME		16	/* Write message on error */
92
#define MY_WAIT_IF_FULL 32	/* Wait and try again if disk full error */
93
#define MY_IGNORE_BADFD 32      /* my_sync: ignore 'bad descriptor' errors */
94
#define MY_SYNC_DIR     1024    /* my_create/delete/rename: sync directory */
95
#define MY_FULL_IO     512      /* For my_read - loop intil I/O is complete */
96
#define MY_DONT_CHECK_FILESIZE 128 /* Option to init_io_cache() */
97
#define MY_LINK_WARNING 32	/* my_redel() gives warning if links */
98
#define MY_COPYTIME	64	/* my_redel() copys time */
99
#define MY_DELETE_OLD	256	/* my_create_with_symlink() */
100
#define MY_HOLD_ORIGINAL_MODES 128  /* my_copy() holds to file modes */
101
#define MY_REDEL_MAKE_BACKUP 256
102
#define MY_DONT_WAIT	64	/* my_lock() don't wait if can't lock */
103
#define MY_DONT_OVERWRITE_FILE 1024	/* my_copy: Don't overwrite file */
104
#define MY_THREADSAFE 2048      /* my_seek(): lock fd mutex */
105
106
#define ME_OLDWIN	2	/* Use old window */
107
#define ME_BELL		4	/* Ring bell then printing message */
108
#define ME_HOLDTANG	8	/* Don't delete last keys */
109
#define ME_WAITTANG	32	/* Wait for a user action  */
110
#define ME_NOREFRESH	64	/* Dont refresh screen */
111
#define ME_NOINPUT	128	/* Dont use the input libary */
112
113
	/* Bits in last argument to fn_format */
114
#define MY_REPLACE_DIR		1	/* replace dir in name with 'dir' */
115
#define MY_REPLACE_EXT		2	/* replace extension with 'ext' */
116
#define MY_UNPACK_FILENAME	4	/* Unpack name (~ -> home) */
117
#define MY_RESOLVE_SYMLINKS	16	/* Resolve all symbolic links */
118
#define MY_RETURN_REAL_PATH	32	/* return full path for file */
119
#define MY_SAFE_PATH		64	/* Return NULL if too long path */
120
#define MY_RELATIVE_PATH	128	/* name is relative to 'dir' */
121
#define MY_APPEND_EXT           256     /* add 'ext' as additional extension*/
122
123
124
	/* Some constants */
125
#define MY_WAIT_FOR_USER_TO_FIX_PANIC	60	/* in seconds */
126
#define MY_WAIT_GIVE_USER_A_MESSAGE	10	/* Every 10 times of prev */
127
#define DFLT_INIT_HITS  3
128
129
	/* Internal error numbers (for assembler functions) */
130
#define MY_ERRNO_EDOM		33
131
#define MY_ERRNO_ERANGE		34
132
133
	/* Bits for get_date timeflag */
134
#define GETDATE_DATE_TIME	1
135
#define GETDATE_SHORT_DATE	2
136
#define GETDATE_HHMMSSTIME	4
137
#define GETDATE_GMT		8
138
#define GETDATE_FIXEDLENGTH	16
139
398.1.9 by Monty Taylor
Cleaned up stuff out of global.h.
140
1241.13.1 by Monty Taylor
Put my_off_t back... but this time localized only to myisam and mysys.
141
typedef uint64_t my_off_t;
142
1 by brian
clean slate
143
#define TRASH(A,B) /* nothing */
144
145
extern char *home_dir;			/* Home directory for user */
146
extern const char *my_progname;		/* program-name (printed in errors) */
482 by Brian Aker
Remove uint.
147
extern uint32_t my_file_limit;
1 by brian
clean slate
148
149
/* statistics */
150
extern uint	mysys_usage_id;
146 by Brian Aker
my_bool cleanup.
151
extern bool	my_init_done;
1 by brian
clean slate
152
153
					/* Executed when comming from shell */
154
extern int my_umask,		/* Default creation mask  */
155
	   my_umask_dir,
156
	   my_recived_signals,	/* Signals we have got */
157
	   my_safe_to_handle_signal, /* Set when allowed to SIGTSTP */
158
	   my_dont_interrupt;	/* call remember_intr when set */
146 by Brian Aker
my_bool cleanup.
159
extern bool mysys_uses_curses, my_use_symdir;
298 by Brian Aker
ulong conversion.
160
extern uint32_t sf_malloc_cur_memory, sf_malloc_max_memory;
1 by brian
clean slate
161
298 by Brian Aker
ulong conversion.
162
extern uint32_t	my_default_record_cache_size;
77.1.96 by Monty Taylor
Removed skip-external-locking.
163
extern bool my_disable_async_io,
1 by brian
clean slate
164
               my_disable_flush_key_blocks, my_disable_symlinks;
165
extern char	wild_many, wild_one, wild_prefix;
166
extern const char *charsets_dir;
167
/* from default.c */
168
extern char *my_defaults_extra_file;
169
extern const char *my_defaults_group_suffix;
170
extern const char *my_defaults_file;
171
146 by Brian Aker
my_bool cleanup.
172
extern bool timed_mutexes;
1 by brian
clean slate
173
1848.4.1 by tdavies
File:drizzled/internal/my_sys.h; converted struct wild_file_pack to c++ class, and added constructor. Coverted struct 'st_record_cache' to c++ class, changed name to 'record_cache' and added constructor.
174
typedef class wild_file_pack	/* Struct to hold info when selecting files */
1 by brian
clean slate
175
{
1848.4.1 by tdavies
File:drizzled/internal/my_sys.h; converted struct wild_file_pack to c++ class, and added constructor. Coverted struct 'st_record_cache' to c++ class, changed name to 'record_cache' and added constructor.
176
public:
1 by brian
clean slate
177
  uint		wilds;		/* How many wildcards */
178
  uint		not_pos;	/* Start of not-theese-files */
179
  char *	*wild;		/* Pointer to wildcards */
1848.4.1 by tdavies
File:drizzled/internal/my_sys.h; converted struct wild_file_pack to c++ class, and added constructor. Coverted struct 'st_record_cache' to c++ class, changed name to 'record_cache' and added constructor.
180
181
  wild_file_pack():
182
    wilds(0),
183
    not_pos(0),
184
    wild(NULL)
185
  {}
186
1 by brian
clean slate
187
} WF_PACK;
188
189
enum cache_type
190
{
1578.4.4 by Brian Aker
Remove pthread mutex that is no longer used (since IO_CACHE is single
191
  TYPE_NOT_SET= 0,
192
  READ_CACHE,
193
  WRITE_CACHE,
194
  READ_FIFO,
195
  READ_NET,
196
  WRITE_NET
197
};
1 by brian
clean slate
198
1848.4.1 by tdavies
File:drizzled/internal/my_sys.h; converted struct wild_file_pack to c++ class, and added constructor. Coverted struct 'st_record_cache' to c++ class, changed name to 'record_cache' and added constructor.
199
typedef struct record_cache	/* Used when cacheing records */
1 by brian
clean slate
200
{
1848.4.1 by tdavies
File:drizzled/internal/my_sys.h; converted struct wild_file_pack to c++ class, and added constructor. Coverted struct 'st_record_cache' to c++ class, changed name to 'record_cache' and added constructor.
201
public:
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
202
  int file;
1 by brian
clean slate
203
  int	rc_seek,error,inited;
204
  uint	rc_length,read_length,reclength;
1241.13.1 by Monty Taylor
Put my_off_t back... but this time localized only to myisam and mysys.
205
  my_off_t rc_record_pos,end_of_file;
481 by Brian Aker
Remove all of uchar.
206
  unsigned char *rc_buff,*rc_buff2,*rc_pos,*rc_end,*rc_request_pos;
1 by brian
clean slate
207
#ifdef HAVE_AIOWAIT
208
  int	use_async_io;
209
  my_aio_result aio_result;
210
#endif
211
  enum cache_type type;
1848.4.1 by tdavies
File:drizzled/internal/my_sys.h; converted struct wild_file_pack to c++ class, and added constructor. Coverted struct 'st_record_cache' to c++ class, changed name to 'record_cache' and added constructor.
212
213
  record_cache():
214
    file(0),
215
    rc_seek(0),
216
    error(0),
217
    inited(0),
218
    rc_length(0),
219
    read_length(0),
220
    reclength(0),
221
    rc_record_pos(0),
222
    end_of_file(0),
223
    rc_buff(NULL),
224
    rc_buff2(NULL),
225
    rc_pos(NULL),
226
    rc_end(NULL),
227
    rc_request_pos(NULL)
228
  {}
229
1 by brian
clean slate
230
} RECORD_CACHE;
231
232
233
	/* defines for mf_iocache */
234
235
	/* Test if buffer is inited */
236
#define my_b_clear(info) (info)->buffer=0
237
#define my_b_inited(info) (info)->buffer
238
#define my_b_EOF INT_MIN
239
240
#define my_b_read(info,Buffer,Count) \
241
  ((info)->read_pos + (Count) <= (info)->read_end ?\
242
   (memcpy(Buffer,(info)->read_pos,(size_t) (Count)), \
243
    ((info)->read_pos+=(Count)),0) :\
244
   (*(info)->read_function)((info),Buffer,Count))
245
246
#define my_b_write(info,Buffer,Count) \
247
 ((info)->write_pos + (Count) <=(info)->write_end ?\
248
  (memcpy((info)->write_pos, (Buffer), (size_t)(Count)),\
249
   ((info)->write_pos+=(Count)),0) : \
250
   (*(info)->write_function)((info),(Buffer),(Count)))
251
252
#define my_b_get(info) \
253
  ((info)->read_pos != (info)->read_end ?\
481 by Brian Aker
Remove all of uchar.
254
   ((info)->read_pos++, (int) (unsigned char) (info)->read_pos[-1]) :\
1 by brian
clean slate
255
   _my_b_get(info))
256
257
#define my_b_tell(info) ((info)->pos_in_file + \
258
			 (size_t) (*(info)->current_pos - (info)->request_pos))
259
260
#define my_b_bytes_in_cache(info) (size_t) (*(info)->current_end - \
261
					  *(info)->current_pos)
262
205 by Brian Aker
uint32 -> uin32_t
263
typedef uint32_t ha_checksum;
1 by brian
clean slate
264
265
/* Define the type of function to be passed to process_default_option_files */
266
typedef int (*Process_option_func)(void *ctx, const char *group_name,
267
                                   const char *option);
268
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
269
int handle_default_option(void *in_ctx, const char *group_name,
270
                          const char *option);
271
1241.13.1 by Monty Taylor
Put my_off_t back... but this time localized only to myisam and mysys.
272
1 by brian
clean slate
273
274
	/* Prototypes for mysys and my_func functions */
275
276
extern int my_copy(const char *from,const char *to,myf MyFlags);
277
extern int my_delete(const char *name,myf MyFlags);
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
278
extern int my_open(const char *FileName,int Flags,myf MyFlags);
279
extern int my_register_filename(int fd, const char *FileName,
482 by Brian Aker
Remove uint.
280
				 uint32_t error_message_number, myf MyFlags);
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
281
extern int my_create(const char *FileName,int CreateFlags,
1 by brian
clean slate
282
		      int AccessFlags, myf MyFlags);
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
283
extern int my_close(int Filedes,myf MyFlags);
1 by brian
clean slate
284
extern int my_mkdir(const char *dir, int Flags, myf MyFlags);
285
extern int my_realpath(char *to, const char *filename, myf MyFlags);
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
286
extern int my_create_with_symlink(const char *linkname, const char *filename,
1 by brian
clean slate
287
				   int createflags, int access_flags,
288
				   myf MyFlags);
289
extern int my_delete_with_symlink(const char *name, myf MyFlags);
290
extern int my_rename_with_symlink(const char *from,const char *to,myf MyFlags);
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
291
extern size_t my_read(int Filedes,unsigned char *Buffer,size_t Count,myf MyFlags);
1 by brian
clean slate
292
extern int my_rename(const char *from,const char *to,myf MyFlags);
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
293
extern size_t my_write(int Filedes,const unsigned char *Buffer,size_t Count,
1 by brian
clean slate
294
		     myf MyFlags);
482 by Brian Aker
Remove uint.
295
extern int _sanity(const char *sFile, uint32_t uLine);
1 by brian
clean slate
296
297
extern int check_if_legal_filename(const char *path);
298
extern int check_if_legal_tablename(const char *path);
299
300
#define my_delete_allow_opened(fname,flags)  my_delete((fname),(flags))
301
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
302
extern int my_sync(int fd, myf my_flags);
1 by brian
clean slate
303
extern int my_sync_dir(const char *dir_name, myf my_flags);
304
extern int my_sync_dir_by_file(const char *file_name, myf my_flags);
146 by Brian Aker
my_bool cleanup.
305
extern bool my_init(void);
1235.3.14 by Stewart Smith
my_end() no longer requires an argument (we removed them all)
306
extern void my_end(void);
1 by brian
clean slate
307
extern int my_redel(const char *from, const char *to, int MyFlags);
308
extern int my_copystat(const char *from, const char *to, int MyFlags);
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
309
extern char * my_filename(int fd);
1 by brian
clean slate
310
779.2.11 by Monty Taylor
General build cleanup - removed cruft, removed depreated checks.
311
extern void my_remember_signal(int signal_number,void (*func)(int));
1 by brian
clean slate
312
extern size_t dirname_part(char * to,const char *name, size_t *to_res_length);
313
extern size_t dirname_length(const char *name);
314
#define base_name(A) (A+dirname_length(A))
1022.2.29 by Monty Taylor
Fixed some no-inline warnings.
315
bool test_if_hard_path(const char *dir_name);
779.1.19 by Monty Taylor
Removed stuff that gcov showed we weren't using.
316
1 by brian
clean slate
317
extern char *convert_dirname(char *to, const char *from, const char *from_end);
318
extern char * fn_ext(const char *name);
319
extern char * fn_same(char * toname,const char *name,int flag);
320
extern char * fn_format(char * to,const char *name,const char *dir,
482 by Brian Aker
Remove uint.
321
			   const char *form, uint32_t flag);
1 by brian
clean slate
322
extern size_t strlength(const char *str);
323
extern size_t unpack_dirname(char * to,const char *from);
324
extern size_t unpack_filename(char * to,const char *from);
325
extern char * intern_filename(char * to,const char *from);
326
extern int pack_filename(char * to, const char *name, size_t max_length);
327
extern char * my_load_path(char * to, const char *path,
328
			      const char *own_path_prefix);
329
extern int wild_compare(const char *str,const char *wildstr,
154 by Brian Aker
Removed oddball types in my_global.h
330
                        bool str_is_pattern);
1 by brian
clean slate
331
extern WF_PACK *wf_comp(char * str);
1891.2.1 by Monty Taylor
Fixed things to make things compile with clang
332
extern int wf_test(wild_file_pack *wf_pack,const char *name);
333
extern void wf_end(wild_file_pack *buffer);
146 by Brian Aker
my_bool cleanup.
334
extern bool array_append_string_unique(const char *str,
1 by brian
clean slate
335
                                          const char **array, size_t size);
336
extern void get_date(char * to,int timeflag,time_t use_time);
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
337
extern int init_record_cache(RECORD_CACHE *info,size_t cachesize,int file,
1 by brian
clean slate
338
			     size_t reclength,enum cache_type type,
154 by Brian Aker
Removed oddball types in my_global.h
339
			     bool use_async_io);
481 by Brian Aker
Remove all of uchar.
340
extern int read_cache_record(RECORD_CACHE *info,unsigned char *to);
1 by brian
clean slate
341
extern int end_record_cache(RECORD_CACHE *info);
1241.13.1 by Monty Taylor
Put my_off_t back... but this time localized only to myisam and mysys.
342
extern int write_cache_record(RECORD_CACHE *info,my_off_t filepos,
481 by Brian Aker
Remove all of uchar.
343
			      const unsigned char *record,size_t length);
1 by brian
clean slate
344
extern int flush_write_cache(RECORD_CACHE *info);
779.2.11 by Monty Taylor
General build cleanup - removed cruft, removed depreated checks.
345
extern void sigtstp_handler(int signal_number);
1 by brian
clean slate
346
extern void handle_recived_signals(void);
347
779.2.11 by Monty Taylor
General build cleanup - removed cruft, removed depreated checks.
348
extern void my_set_alarm_variable(int signo);
482 by Brian Aker
Remove uint.
349
extern void my_string_ptr_sort(unsigned char *base,uint32_t items,size_t size);
350
extern void radixsort_for_str_ptr(unsigned char* base[], uint32_t number_of_elements,
481 by Brian Aker
Remove all of uchar.
351
				  size_t size_of_element,unsigned char *buffer[]);
779.2.11 by Monty Taylor
General build cleanup - removed cruft, removed depreated checks.
352
extern void my_qsort(void *base_ptr, size_t total_elems, size_t size,
353
                     qsort_cmp cmp);
354
extern void my_qsort2(void *base_ptr, size_t total_elems, size_t size,
355
                      qsort2_cmp cmp, void *cmp_argument);
1 by brian
clean slate
356
extern qsort2_cmp get_ptr_compare(size_t);
1241.13.1 by Monty Taylor
Put my_off_t back... but this time localized only to myisam and mysys.
357
void my_store_ptr(unsigned char *buff, size_t pack_length, my_off_t pos);
358
my_off_t my_get_ptr(unsigned char *ptr, size_t pack_length);
1241.9.1 by Monty Taylor
Removed global.h. Fixed all the headers.
359
int create_temp_file(char *to, const char *dir, const char *pfx, myf MyFlags);
1 by brian
clean slate
360
361
extern int get_defaults_options(int argc, char **argv,
362
                                char **defaults, char **extra_defaults,
363
                                char **group_suffix);
364
extern int load_defaults(const char *conf_file, const char **groups,
365
			 int *argc, char ***argv);
366
extern int my_search_option_files(const char *conf_file, int *argc,
482 by Brian Aker
Remove uint.
367
                                  char ***argv, uint32_t *args_used,
1 by brian
clean slate
368
                                  Process_option_func func, void *func_ctx);
369
extern void free_defaults(char **argv);
370
extern void my_print_default_files(const char *conf_file);
371
extern void print_defaults(const char *conf_file, const char **groups);
481 by Brian Aker
Remove all of uchar.
372
extern ha_checksum my_checksum(ha_checksum crc, const unsigned char *mem,
1 by brian
clean slate
373
                               size_t count);
298 by Brian Aker
ulong conversion.
374
extern void my_sleep(uint32_t m_seconds);
1 by brian
clean slate
375
1241.9.57 by Monty Taylor
Oy. Bigger change than I normally like - but this stuff is all intertwined.
376
1 by brian
clean slate
377
298 by Brian Aker
ulong conversion.
378
extern void thd_increment_bytes_sent(uint32_t length);
379
extern void thd_increment_bytes_received(uint32_t length);
380
extern void thd_increment_net_big_packet_count(uint32_t length);
1 by brian
clean slate
381
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
382
} /* namespace internal */
383
} /* namespace drizzled */
398.1.9 by Monty Taylor
Cleaned up stuff out of global.h.
384
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
385
#endif /* DRIZZLED_INTERNAL_MY_SYS_H */