1
/* Copyright (C) 2003 MySQL AB
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.
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.
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 */
19
#include <my_config.h>
20
#include <ndb_types.h>
22
#define NDB_PORT "@ndb_port@"
23
#define NDB_TCP_BASE_PORT "@ndb_port_base@"
25
#if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(WIN32)
29
#define DIR_SEPARATOR "\\"
30
#define MYSQLCLUSTERDIR "c:\\mysql\\mysql-cluster"
31
#define HAVE_STRCASECMP
32
#define strcasecmp _strcmpi
33
#pragma warning(disable: 4503 4786)
36
#define DIR_SEPARATOR "/"
39
#include <my_global.h>
41
#if ! (NDB_SIZEOF_CHAR == SIZEOF_CHAR)
42
#error "Invalid define for Uint8"
45
#if ! (NDB_SIZEOF_INT == SIZEOF_INT)
46
#error "Invalid define for Uint32"
49
#if ! (NDB_SIZEOF_LONG_LONG == SIZEOF_LONG_LONG)
50
#error "Invalid define for Uint64"
66
#ifdef TIME_WITH_SYS_TIME
74
#ifdef HAVE_SYS_PARAM_H
75
#include <sys/param.h>
78
#ifdef HAVE_SYS_STAT_H
79
#if defined(__cplusplus) && defined(_APP32_64BIT_OFF_T) && defined(_INCLUDE_AES_SOURCE)
80
#undef _INCLUDE_AES_SOURCE
82
#define _INCLUDE_AES_SOURCE
88
#ifdef HAVE_SYS_RESOURCE_H
89
#include <sys/resource.h>
92
#ifdef HAVE_SYS_WAIT_H
96
#ifdef HAVE_SYS_MMAN_H
101
extern char * strdup(const char *s);
104
#ifndef HAVE_STRCASECMP
105
extern int strcasecmp(const char *s1, const char *s2);
106
extern int strncasecmp(const char *s1, const char *s2, size_t n);
109
static const char table_name_separator = '/';
111
#if defined(_AIX) || defined(WIN32) || defined(NDB_VC98)
112
#define STATIC_CONST(x) enum { x }
114
#define STATIC_CONST(x) static const Uint32 x
127
#include "ndb_init.h"
130
#define PATH_MAX 1024
133
#if defined(_lint) || defined(FORCE_INIT_OF_VARS)
134
#define LINT_SET_PTR = {0,0}
140
#define MIN(x,y) (((x)<(y))?(x):(y))
144
#define MAX(x,y) (((x)>(y))?(x):(y))
147
#define NDB_O_DIRECT_WRITE_ALIGNMENT 512