~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_static.cc

  • Committer: Brian Aker
  • Date: 2009-02-07 21:33:55 UTC
  • Revision ID: brian@tangent.org-20090207213355-j2zrs4f569g0az9m
SmallĀ formattingĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
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 */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/*
17
17
  Static variables for mysys library. All definied here for easy making of
18
18
  a shared library
19
19
*/
20
20
 
21
 
#include "config.h"
22
 
 
23
 
#include "drizzled/internal/my_sys.h"
24
 
#include "drizzled/error.h"
 
21
#include "mysys_priv.h"
 
22
#include <mysys/mysys_err.h>
25
23
#include "my_static.h"
26
24
#include <stdlib.h>
27
25
 
28
 
#include "drizzled/visibility.h"
29
 
 
30
 
namespace drizzled
31
 
{
32
 
namespace internal
33
 
{
34
 
 
35
26
bool timed_mutexes= 0;
36
27
 
37
28
        /* from my_init */
39
30
const char      *my_progname=0;
40
31
char curr_dir[FN_REFLEN]= {0},
41
32
     home_dir_buff[FN_REFLEN]= {0};
42
 
DRIZZLED_API int my_umask=0664;
43
 
int my_umask_dir=0777;
 
33
uint32_t                my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0;
 
34
uint32_t           my_file_total_opened= 0;
 
35
int my_umask=0664, my_umask_dir=0777;
 
36
struct st_my_file_info my_file_info_default[MY_NFILE]= {{0,UNOPEN}};
44
37
uint32_t   my_file_limit= MY_NFILE;
 
38
struct st_my_file_info *my_file_info= my_file_info_default;
45
39
 
46
40
        /* From mf_brkhant */
47
41
int my_dont_interrupt=0;
48
42
volatile int            _my_signals=0;
 
43
struct st_remember _my_sig_remember[MAX_SIGNALS]={{0,0}};
49
44
sigset_t my_signals;                    /* signals blocked by mf_brkhant */
50
45
 
51
46
        /* from mf_reccache.c */
67
62
unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
68
63
     *sf_max_adress= (unsigned char*) 0L;
69
64
/* Root of the linked list of struct st_irem */
70
 
irem *sf_malloc_root = NULL;
 
65
struct st_irem *sf_malloc_root = NULL;
71
66
 
72
67
        /* from my_alarm */
73
68
int volatile my_have_got_alarm=0;       /* declare variable to reset */
74
69
uint32_t my_time_to_wait_for_lock=2;    /* In seconds */
75
70
 
 
71
        /* from errors.c */
 
72
void_ptr_int_func my_abort_hook= (void_ptr_int_func)exit;
 
73
error_handler_func error_handler_hook= NULL;
 
74
 
76
75
        /* How to disable options */
77
 
bool my_disable_async_io= true;
 
76
bool my_disable_async_io=0;
78
77
bool my_disable_flush_key_blocks=0;
79
78
bool my_disable_symlinks=0;
80
79
bool mysys_uses_curses=0;
81
 
 
82
 
} /* namespace internal */
83
 
} /* namespace drizzled */