266
266
/* Length of decimal number represented by INT64. */
267
267
#define MY_INT64_NUM_DECIMAL_DIGITS 21
269
#define PROTOCOL_VERSION 10
271
Io buffer size; Must be a power of 2 and
272
a multiple of 512. May be
273
smaller what the disk page size. This influences the speed of the
274
isam btree library. eg to big to slow.
277
/* Max file name len */
279
/* Max length of extension (part of FN_LEN) */
281
/* Max length of full path-name */
282
#define FN_REFLEN 512
283
/* File extension character */
284
#define FN_EXTCHAR '.'
285
/* ~ is used as abbrev for home dir */
286
#define FN_HOMELIB '~'
287
/* ./ is used as abbrev for current dir */
288
#define FN_CURLIB '.'
289
/* Parent directory; Must be a string */
290
#define FN_PARENTDIR ".."
292
/* Quote argument (before cpp) */
294
# define QUOTE_ARG(x) #x
296
/* Quote argument, (after cpp) */
297
#ifndef STRINGIFY_ARG
298
# define STRINGIFY_ARG(x) QUOTE_ARG(x)
302
* The macros below are borrowed from include/linux/compiler.h in the
303
* Linux kernel. Use them to indicate the likelyhood of the truthfulness
304
* of a condition. This serves two purposes - newer versions of gcc will be
305
* able to optimize for branch predication, which could yield siginficant
306
* performance gains in frequently executed sections of the code, and the
307
* other reason to use them is for documentation
309
#if !defined(__GNUC__)
310
#define __builtin_expect(x, expected_value) (x)
313
#define likely(x) __builtin_expect((x),1)
314
#define unlikely(x) __builtin_expect((x),0)
270
318
Only Linux is known to need an explicit sync of the directory to make sure a
271
319
file creation/deletion/renaming in(from,to) this directory durable.