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" |
1241.9.57
by Monty Taylor
Oy. Bigger change than I normally like - but this stuff is all intertwined. |
40 |
#include "drizzled/my_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 |
|
52 |
#include <sys/mman.h> |
|
53 |
||
1241.9.45
by Monty Taylor
Added a header for qsort_cmp. |
54 |
#include "drizzled/qsort_cmp.h" |
55 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
56 |
namespace drizzled |
57 |
{
|
|
58 |
namespace internal |
|
59 |
{
|
|
60 |
||
1241.9.1
by Monty Taylor
Removed global.h. Fixed all the headers. |
61 |
#ifndef MAP_NOSYNC
|
62 |
#define MAP_NOSYNC 0
|
|
63 |
#endif
|
|
64 |
#ifndef MAP_NORESERVE
|
|
65 |
#define MAP_NORESERVE 0 /* For irix and AIX */ |
|
66 |
#endif
|
|
67 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
68 |
/*
|
69 |
EDQUOT is used only in 3 C files only in mysys/. If it does not exist on
|
|
70 |
system, we set it to some value which can never happen.
|
|
71 |
*/
|
|
72 |
#ifndef EDQUOT
|
|
73 |
#define EDQUOT (-1)
|
|
74 |
#endif
|
|
1241.9.1
by Monty Taylor
Removed global.h. Fixed all the headers. |
75 |
|
520.4.43
by mordred
A set of Solaris fixes. |
76 |
/* Sun Studio does not inject this into main namespace yet */
|
77 |
#if defined(__cplusplus)
|
|
78 |
using std::FILE; |
|
660.1.3
by Eric Herman
removed trailing whitespace with simple script: |
79 |
#endif
|
520.4.43
by mordred
A set of Solaris fixes. |
80 |
|
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
81 |
#define MY_INIT(name); { ::drizzled::internal::my_progname= name; ::drizzled::internal::my_init(); }
|
1
by brian
clean slate |
82 |
|
83 |
||
84 |
/* General bitmaps for my_func's */
|
|
85 |
#define MY_FFNF 1 /* Fatal if file not found */ |
|
86 |
#define MY_FNABP 2 /* Fatal if not all bytes read/writen */ |
|
87 |
#define MY_NABP 4 /* Error if not all bytes read/writen */ |
|
88 |
#define MY_FAE 8 /* Fatal if any error */ |
|
89 |
#define MY_WME 16 /* Write message on error */ |
|
90 |
#define MY_WAIT_IF_FULL 32 /* Wait and try again if disk full error */ |
|
91 |
#define MY_IGNORE_BADFD 32 /* my_sync: ignore 'bad descriptor' errors */ |
|
92 |
#define MY_SYNC_DIR 1024 /* my_create/delete/rename: sync directory */ |
|
93 |
#define MY_FULL_IO 512 /* For my_read - loop intil I/O is complete */ |
|
94 |
#define MY_DONT_CHECK_FILESIZE 128 /* Option to init_io_cache() */ |
|
95 |
#define MY_LINK_WARNING 32 /* my_redel() gives warning if links */ |
|
96 |
#define MY_COPYTIME 64 /* my_redel() copys time */ |
|
97 |
#define MY_DELETE_OLD 256 /* my_create_with_symlink() */ |
|
98 |
#define MY_HOLD_ORIGINAL_MODES 128 /* my_copy() holds to file modes */ |
|
99 |
#define MY_REDEL_MAKE_BACKUP 256
|
|
100 |
#define MY_DONT_WAIT 64 /* my_lock() don't wait if can't lock */ |
|
101 |
#define MY_DONT_OVERWRITE_FILE 1024 /* my_copy: Don't overwrite file */ |
|
102 |
#define MY_THREADSAFE 2048 /* my_seek(): lock fd mutex */ |
|
103 |
||
104 |
#define ME_HIGHBYTE 8 /* Shift for colours */ |
|
105 |
#define ME_NOCUR 1 /* Don't use curses message */ |
|
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_WAITTOT 16 /* Wait for errtime secs of for a action */ |
|
110 |
#define ME_WAITTANG 32 /* Wait for a user action */ |
|
111 |
#define ME_NOREFRESH 64 /* Dont refresh screen */ |
|
112 |
#define ME_NOINPUT 128 /* Dont use the input libary */ |
|
113 |
#define ME_COLOUR1 ((1 << ME_HIGHBYTE)) /* Possibly error-colours */ |
|
114 |
#define ME_COLOUR2 ((2 << ME_HIGHBYTE))
|
|
115 |
#define ME_COLOUR3 ((3 << ME_HIGHBYTE))
|
|
116 |
||
117 |
/* Bits in last argument to fn_format */
|
|
118 |
#define MY_REPLACE_DIR 1 /* replace dir in name with 'dir' */ |
|
119 |
#define MY_REPLACE_EXT 2 /* replace extension with 'ext' */ |
|
120 |
#define MY_UNPACK_FILENAME 4 /* Unpack name (~ -> home) */ |
|
121 |
#define MY_PACK_FILENAME 8 /* Pack name (home -> ~) */ |
|
122 |
#define MY_RESOLVE_SYMLINKS 16 /* Resolve all symbolic links */ |
|
123 |
#define MY_RETURN_REAL_PATH 32 /* return full path for file */ |
|
124 |
#define MY_SAFE_PATH 64 /* Return NULL if too long path */ |
|
125 |
#define MY_RELATIVE_PATH 128 /* name is relative to 'dir' */ |
|
126 |
#define MY_APPEND_EXT 256 /* add 'ext' as additional extension*/ |
|
127 |
||
128 |
||
129 |
/* Some constants */
|
|
130 |
#define MY_WAIT_FOR_USER_TO_FIX_PANIC 60 /* in seconds */ |
|
131 |
#define MY_WAIT_GIVE_USER_A_MESSAGE 10 /* Every 10 times of prev */ |
|
132 |
#define DFLT_INIT_HITS 3
|
|
133 |
||
134 |
/* Internal error numbers (for assembler functions) */
|
|
135 |
#define MY_ERRNO_EDOM 33
|
|
136 |
#define MY_ERRNO_ERANGE 34
|
|
137 |
||
138 |
/* Bits for get_date timeflag */
|
|
139 |
#define GETDATE_DATE_TIME 1
|
|
140 |
#define GETDATE_SHORT_DATE 2
|
|
141 |
#define GETDATE_HHMMSSTIME 4
|
|
142 |
#define GETDATE_GMT 8
|
|
143 |
#define GETDATE_FIXEDLENGTH 16
|
|
144 |
||
398.1.9
by Monty Taylor
Cleaned up stuff out of global.h. |
145 |
|
1241.13.1
by Monty Taylor
Put my_off_t back... but this time localized only to myisam and mysys. |
146 |
typedef uint64_t my_off_t; |
147 |
||
1
by brian
clean slate |
148 |
#define TRASH(A,B) /* nothing */ |
149 |
||
150 |
extern char *home_dir; /* Home directory for user */ |
|
151 |
extern const char *my_progname; /* program-name (printed in errors) */ |
|
482
by Brian Aker
Remove uint. |
152 |
extern uint32_t my_file_limit; |
1
by brian
clean slate |
153 |
|
154 |
/* statistics */
|
|
298
by Brian Aker
ulong conversion. |
155 |
extern uint32_t my_file_opened,my_stream_opened, my_tmp_file_created; |
156 |
extern uint32_t my_file_total_opened; |
|
1
by brian
clean slate |
157 |
extern uint mysys_usage_id; |
146
by Brian Aker
my_bool cleanup. |
158 |
extern bool my_init_done; |
1
by brian
clean slate |
159 |
|
160 |
/* Executed when comming from shell */
|
|
161 |
extern int my_umask, /* Default creation mask */ |
|
162 |
my_umask_dir, |
|
163 |
my_recived_signals, /* Signals we have got */ |
|
164 |
my_safe_to_handle_signal, /* Set when allowed to SIGTSTP */ |
|
165 |
my_dont_interrupt; /* call remember_intr when set */ |
|
146
by Brian Aker
my_bool cleanup. |
166 |
extern bool mysys_uses_curses, my_use_symdir; |
298
by Brian Aker
ulong conversion. |
167 |
extern uint32_t sf_malloc_cur_memory, sf_malloc_max_memory; |
1
by brian
clean slate |
168 |
|
298
by Brian Aker
ulong conversion. |
169 |
extern uint32_t my_default_record_cache_size; |
77.1.96
by Monty Taylor
Removed skip-external-locking. |
170 |
extern bool my_disable_async_io, |
1
by brian
clean slate |
171 |
my_disable_flush_key_blocks, my_disable_symlinks; |
172 |
extern char wild_many, wild_one, wild_prefix; |
|
173 |
extern const char *charsets_dir; |
|
174 |
/* from default.c */
|
|
175 |
extern char *my_defaults_extra_file; |
|
176 |
extern const char *my_defaults_group_suffix; |
|
177 |
extern const char *my_defaults_file; |
|
178 |
||
146
by Brian Aker
my_bool cleanup. |
179 |
extern bool timed_mutexes; |
1
by brian
clean slate |
180 |
|
181 |
typedef struct wild_file_pack /* Struct to hold info when selecting files */ |
|
182 |
{
|
|
183 |
uint wilds; /* How many wildcards */ |
|
184 |
uint not_pos; /* Start of not-theese-files */ |
|
185 |
char * *wild; /* Pointer to wildcards */ |
|
186 |
} WF_PACK; |
|
187 |
||
188 |
enum cache_type |
|
189 |
{
|
|
190 |
TYPE_NOT_SET= 0, READ_CACHE, WRITE_CACHE, |
|
191 |
SEQ_READ_APPEND /* sequential read or append */, |
|
192 |
READ_FIFO, READ_NET,WRITE_NET}; |
|
193 |
||
194 |
typedef struct st_record_cache /* Used when cacheing records */ |
|
195 |
{
|
|
1241.9.1
by Monty Taylor
Removed global.h. Fixed all the headers. |
196 |
int file; |
1
by brian
clean slate |
197 |
int rc_seek,error,inited; |
198 |
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. |
199 |
my_off_t rc_record_pos,end_of_file; |
481
by Brian Aker
Remove all of uchar. |
200 |
unsigned char *rc_buff,*rc_buff2,*rc_pos,*rc_end,*rc_request_pos; |
1
by brian
clean slate |
201 |
#ifdef HAVE_AIOWAIT
|
202 |
int use_async_io; |
|
203 |
my_aio_result aio_result; |
|
204 |
#endif
|
|
205 |
enum cache_type type; |
|
206 |
} RECORD_CACHE; |
|
207 |
||
208 |
||
209 |
/* defines for mf_iocache */
|
|
210 |
||
211 |
/* Test if buffer is inited */
|
|
212 |
#define my_b_clear(info) (info)->buffer=0
|
|
213 |
#define my_b_inited(info) (info)->buffer
|
|
214 |
#define my_b_EOF INT_MIN
|
|
215 |
||
216 |
#define my_b_read(info,Buffer,Count) \
|
|
217 |
((info)->read_pos + (Count) <= (info)->read_end ?\
|
|
218 |
(memcpy(Buffer,(info)->read_pos,(size_t) (Count)), \
|
|
219 |
((info)->read_pos+=(Count)),0) :\
|
|
220 |
(*(info)->read_function)((info),Buffer,Count))
|
|
221 |
||
222 |
#define my_b_write(info,Buffer,Count) \
|
|
223 |
((info)->write_pos + (Count) <=(info)->write_end ?\
|
|
224 |
(memcpy((info)->write_pos, (Buffer), (size_t)(Count)),\
|
|
225 |
((info)->write_pos+=(Count)),0) : \
|
|
226 |
(*(info)->write_function)((info),(Buffer),(Count)))
|
|
227 |
||
228 |
#define my_b_get(info) \
|
|
229 |
((info)->read_pos != (info)->read_end ?\
|
|
481
by Brian Aker
Remove all of uchar. |
230 |
((info)->read_pos++, (int) (unsigned char) (info)->read_pos[-1]) :\
|
1
by brian
clean slate |
231 |
_my_b_get(info))
|
232 |
||
233 |
#define my_b_tell(info) ((info)->pos_in_file + \
|
|
234 |
(size_t) (*(info)->current_pos - (info)->request_pos))
|
|
235 |
||
660.1.3
by Eric Herman
removed trailing whitespace with simple script: |
236 |
#define my_b_get_buffer_start(info) (info)->request_pos
|
1
by brian
clean slate |
237 |
|
238 |
||
239 |
#define my_b_bytes_in_cache(info) (size_t) (*(info)->current_end - \
|
|
240 |
*(info)->current_pos)
|
|
241 |
||
205
by Brian Aker
uint32 -> uin32_t |
242 |
typedef uint32_t ha_checksum; |
1
by brian
clean slate |
243 |
|
244 |
/* Define the type of function to be passed to process_default_option_files */
|
|
245 |
typedef int (*Process_option_func)(void *ctx, const char *group_name, |
|
246 |
const char *option); |
|
247 |
||
632.1.11
by Monty Taylor
Fixed Sun Studio warnings in mysys. |
248 |
int handle_default_option(void *in_ctx, const char *group_name, |
249 |
const char *option); |
|
250 |
||
1241.13.1
by Monty Taylor
Put my_off_t back... but this time localized only to myisam and mysys. |
251 |
|
1
by brian
clean slate |
252 |
|
253 |
/* Prototypes for mysys and my_func functions */
|
|
254 |
||
255 |
extern int my_copy(const char *from,const char *to,myf MyFlags); |
|
256 |
extern int my_delete(const char *name,myf MyFlags); |
|
1241.9.1
by Monty Taylor
Removed global.h. Fixed all the headers. |
257 |
extern int my_open(const char *FileName,int Flags,myf MyFlags); |
258 |
extern int my_register_filename(int fd, const char *FileName, |
|
482
by Brian Aker
Remove uint. |
259 |
uint32_t error_message_number, myf MyFlags); |
1241.9.1
by Monty Taylor
Removed global.h. Fixed all the headers. |
260 |
extern int my_create(const char *FileName,int CreateFlags, |
1
by brian
clean slate |
261 |
int AccessFlags, myf MyFlags); |
1241.9.1
by Monty Taylor
Removed global.h. Fixed all the headers. |
262 |
extern int my_close(int Filedes,myf MyFlags); |
1
by brian
clean slate |
263 |
extern int my_mkdir(const char *dir, int Flags, myf MyFlags); |
264 |
extern int my_realpath(char *to, const char *filename, myf MyFlags); |
|
1241.9.1
by Monty Taylor
Removed global.h. Fixed all the headers. |
265 |
extern int my_create_with_symlink(const char *linkname, const char *filename, |
1
by brian
clean slate |
266 |
int createflags, int access_flags, |
267 |
myf MyFlags); |
|
268 |
extern int my_delete_with_symlink(const char *name, myf MyFlags); |
|
269 |
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. |
270 |
extern size_t my_read(int Filedes,unsigned char *Buffer,size_t Count,myf MyFlags); |
1
by brian
clean slate |
271 |
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. |
272 |
extern size_t my_write(int Filedes,const unsigned char *Buffer,size_t Count, |
1
by brian
clean slate |
273 |
myf MyFlags); |
482
by Brian Aker
Remove uint. |
274 |
extern int _sanity(const char *sFile, uint32_t uLine); |
1
by brian
clean slate |
275 |
|
276 |
extern int check_if_legal_filename(const char *path); |
|
277 |
extern int check_if_legal_tablename(const char *path); |
|
278 |
||
279 |
#define my_delete_allow_opened(fname,flags) my_delete((fname),(flags))
|
|
280 |
||
1241.9.1
by Monty Taylor
Removed global.h. Fixed all the headers. |
281 |
extern int my_sync(int fd, myf my_flags); |
1
by brian
clean slate |
282 |
extern int my_sync_dir(const char *dir_name, myf my_flags); |
283 |
extern int my_sync_dir_by_file(const char *file_name, myf my_flags); |
|
146
by Brian Aker
my_bool cleanup. |
284 |
extern bool my_init(void); |
1235.3.14
by Stewart Smith
my_end() no longer requires an argument (we removed them all) |
285 |
extern void my_end(void); |
1
by brian
clean slate |
286 |
extern int my_redel(const char *from, const char *to, int MyFlags); |
287 |
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. |
288 |
extern char * my_filename(int fd); |
1
by brian
clean slate |
289 |
|
779.2.11
by Monty Taylor
General build cleanup - removed cruft, removed depreated checks. |
290 |
extern void my_remember_signal(int signal_number,void (*func)(int)); |
1
by brian
clean slate |
291 |
extern size_t dirname_part(char * to,const char *name, size_t *to_res_length); |
292 |
extern size_t dirname_length(const char *name); |
|
293 |
#define base_name(A) (A+dirname_length(A))
|
|
1022.2.29
by Monty Taylor
Fixed some no-inline warnings. |
294 |
bool test_if_hard_path(const char *dir_name); |
779.1.19
by Monty Taylor
Removed stuff that gcov showed we weren't using. |
295 |
|
1
by brian
clean slate |
296 |
extern char *convert_dirname(char *to, const char *from, const char *from_end); |
297 |
extern char * fn_ext(const char *name); |
|
298 |
extern char * fn_same(char * toname,const char *name,int flag); |
|
299 |
extern char * fn_format(char * to,const char *name,const char *dir, |
|
482
by Brian Aker
Remove uint. |
300 |
const char *form, uint32_t flag); |
1
by brian
clean slate |
301 |
extern size_t strlength(const char *str); |
302 |
extern size_t unpack_dirname(char * to,const char *from); |
|
303 |
extern size_t unpack_filename(char * to,const char *from); |
|
304 |
extern char * intern_filename(char * to,const char *from); |
|
305 |
extern int pack_filename(char * to, const char *name, size_t max_length); |
|
306 |
extern char * my_load_path(char * to, const char *path, |
|
307 |
const char *own_path_prefix); |
|
308 |
extern int wild_compare(const char *str,const char *wildstr, |
|
154
by Brian Aker
Removed oddball types in my_global.h |
309 |
bool str_is_pattern); |
1
by brian
clean slate |
310 |
extern WF_PACK *wf_comp(char * str); |
311 |
extern int wf_test(struct wild_file_pack *wf_pack,const char *name); |
|
312 |
extern void wf_end(struct wild_file_pack *buffer); |
|
146
by Brian Aker
my_bool cleanup. |
313 |
extern bool array_append_string_unique(const char *str, |
1
by brian
clean slate |
314 |
const char **array, size_t size); |
315 |
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. |
316 |
extern int init_record_cache(RECORD_CACHE *info,size_t cachesize,int file, |
1
by brian
clean slate |
317 |
size_t reclength,enum cache_type type, |
154
by Brian Aker
Removed oddball types in my_global.h |
318 |
bool use_async_io); |
481
by Brian Aker
Remove all of uchar. |
319 |
extern int read_cache_record(RECORD_CACHE *info,unsigned char *to); |
1
by brian
clean slate |
320 |
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. |
321 |
extern int write_cache_record(RECORD_CACHE *info,my_off_t filepos, |
481
by Brian Aker
Remove all of uchar. |
322 |
const unsigned char *record,size_t length); |
1
by brian
clean slate |
323 |
extern int flush_write_cache(RECORD_CACHE *info); |
779.2.11
by Monty Taylor
General build cleanup - removed cruft, removed depreated checks. |
324 |
extern void sigtstp_handler(int signal_number); |
1
by brian
clean slate |
325 |
extern void handle_recived_signals(void); |
326 |
||
779.2.11
by Monty Taylor
General build cleanup - removed cruft, removed depreated checks. |
327 |
extern void my_set_alarm_variable(int signo); |
482
by Brian Aker
Remove uint. |
328 |
extern void my_string_ptr_sort(unsigned char *base,uint32_t items,size_t size); |
329 |
extern void radixsort_for_str_ptr(unsigned char* base[], uint32_t number_of_elements, |
|
481
by Brian Aker
Remove all of uchar. |
330 |
size_t size_of_element,unsigned char *buffer[]); |
779.2.11
by Monty Taylor
General build cleanup - removed cruft, removed depreated checks. |
331 |
extern void my_qsort(void *base_ptr, size_t total_elems, size_t size, |
332 |
qsort_cmp cmp); |
|
333 |
extern void my_qsort2(void *base_ptr, size_t total_elems, size_t size, |
|
334 |
qsort2_cmp cmp, void *cmp_argument); |
|
1
by brian
clean slate |
335 |
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. |
336 |
void my_store_ptr(unsigned char *buff, size_t pack_length, my_off_t pos); |
337 |
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. |
338 |
int create_temp_file(char *to, const char *dir, const char *pfx, myf MyFlags); |
1
by brian
clean slate |
339 |
|
340 |
extern int get_defaults_options(int argc, char **argv, |
|
341 |
char **defaults, char **extra_defaults, |
|
342 |
char **group_suffix); |
|
343 |
extern int load_defaults(const char *conf_file, const char **groups, |
|
344 |
int *argc, char ***argv); |
|
345 |
extern int my_search_option_files(const char *conf_file, int *argc, |
|
482
by Brian Aker
Remove uint. |
346 |
char ***argv, uint32_t *args_used, |
1
by brian
clean slate |
347 |
Process_option_func func, void *func_ctx); |
348 |
extern void free_defaults(char **argv); |
|
349 |
extern void my_print_default_files(const char *conf_file); |
|
350 |
extern void print_defaults(const char *conf_file, const char **groups); |
|
481
by Brian Aker
Remove all of uchar. |
351 |
extern ha_checksum my_checksum(ha_checksum crc, const unsigned char *mem, |
1
by brian
clean slate |
352 |
size_t count); |
298
by Brian Aker
ulong conversion. |
353 |
extern void my_sleep(uint32_t m_seconds); |
1
by brian
clean slate |
354 |
|
1241.9.57
by Monty Taylor
Oy. Bigger change than I normally like - but this stuff is all intertwined. |
355 |
|
1
by brian
clean slate |
356 |
|
298
by Brian Aker
ulong conversion. |
357 |
extern void thd_increment_bytes_sent(uint32_t length); |
358 |
extern void thd_increment_bytes_received(uint32_t length); |
|
359 |
extern void thd_increment_net_big_packet_count(uint32_t length); |
|
1
by brian
clean slate |
360 |
|
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
361 |
} /* namespace internal */ |
362 |
} /* namespace drizzled */ |
|
398.1.9
by Monty Taylor
Cleaned up stuff out of global.h. |
363 |
|
1241.9.64
by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal. |
364 |
#endif /* DRIZZLED_INTERNAL_MY_SYS_H */ |