~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_static.cc

  • Committer: Brian Aker
  • Date: 2009-03-12 14:38:12 UTC
  • mfrom: (910.4.20 sparc)
  • Revision ID: brian@tangent.org-20090312143812-g02zsr6krx54nxjp
Merge from Stewart.

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
 
namespace drizzled
29
 
{
30
 
namespace internal
31
 
{
32
 
 
33
26
bool timed_mutexes= 0;
34
27
 
35
28
        /* from my_init */
37
30
const char      *my_progname=0;
38
31
char curr_dir[FN_REFLEN]= {0},
39
32
     home_dir_buff[FN_REFLEN]= {0};
 
33
uint32_t                my_stream_opened=0,my_file_opened=0, my_tmp_file_created=0;
 
34
uint32_t           my_file_total_opened= 0;
40
35
int my_umask=0664, my_umask_dir=0777;
 
36
struct st_my_file_info my_file_info_default[MY_NFILE]= {{0,UNOPEN}};
41
37
uint32_t   my_file_limit= MY_NFILE;
 
38
struct st_my_file_info *my_file_info= my_file_info_default;
42
39
 
43
40
        /* From mf_brkhant */
44
41
int my_dont_interrupt=0;
45
42
volatile int            _my_signals=0;
 
43
struct st_remember _my_sig_remember[MAX_SIGNALS]={{0,0}};
46
44
sigset_t my_signals;                    /* signals blocked by mf_brkhant */
47
45
 
48
46
        /* from mf_reccache.c */
64
62
unsigned char *sf_min_adress= (unsigned char*) ~(unsigned long) 0L,
65
63
     *sf_max_adress= (unsigned char*) 0L;
66
64
/* Root of the linked list of struct st_irem */
67
 
irem *sf_malloc_root = NULL;
 
65
struct st_irem *sf_malloc_root = NULL;
68
66
 
69
67
        /* from my_alarm */
70
68
int volatile my_have_got_alarm=0;       /* declare variable to reset */
71
69
uint32_t my_time_to_wait_for_lock=2;    /* In seconds */
72
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
 
73
75
        /* How to disable options */
74
76
bool my_disable_async_io= true;
75
77
bool my_disable_flush_key_blocks=0;
76
78
bool my_disable_symlinks=0;
77
79
bool mysys_uses_curses=0;
78
 
 
79
 
} /* namespace internal */
80
 
} /* namespace drizzled */