drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
my_static.cc
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
14 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
15
16/*
17 Static variables for mysys library. All definied here for easy making of
18 a shared library
19*/
20
21#include <config.h>
22
23#include <drizzled/internal/my_sys.h>
24#include <drizzled/error.h>
25#include "my_static.h"
26#include <stdlib.h>
27
28#include <drizzled/visibility.h>
29
30namespace drizzled
31{
32namespace internal
33{
34
35 /* from my_init */
36char * home_dir=0;
37const char *my_progname=0;
38char curr_dir[FN_REFLEN]= {0},
39 home_dir_buff[FN_REFLEN]= {0};
40int my_umask=0664;
41int get_my_umask() { return my_umask; }
42int my_umask_dir=0777;
43int get_my_umask_dir() { return my_umask_dir; }
44
45 /* From mf_brkhant */
46volatile int _my_signals=0;
47sigset_t my_signals; /* signals blocked by mf_brkhant */
48
49 /* from mf_reccache.c */
50uint32_t my_default_record_cache_size=RECORD_CACHE_SIZE;
51
52 /* from my_alarm */
53int volatile my_have_got_alarm=0; /* declare variable to reset */
54uint32_t my_time_to_wait_for_lock=2; /* In seconds */
55
56 /* How to disable options */
57bool my_disable_symlinks=0;
58
59} /* namespace internal */
60} /* namespace drizzled */
TODO: Rename this file - func.h is stupid.
Visibility Control Macros.