~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_sys.h

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
#include "drizzled/qsort_cmp.h"
55
55
 
 
56
namespace drizzled
 
57
{
 
58
namespace internal
 
59
{
 
60
 
56
61
#ifndef MAP_NOSYNC
57
62
#define MAP_NOSYNC      0
58
63
#endif
60
65
#define MAP_NORESERVE 0         /* For irix and AIX */
61
66
#endif
62
67
 
 
68
/*
 
69
  EDQUOT is used only in 3 C files only in mysys/. If it does not exist on
 
70
  system, we set it to some value which can never happen.
 
71
*/
 
72
#ifndef EDQUOT
 
73
#define EDQUOT (-1)
 
74
#endif
63
75
 
64
76
/* Sun Studio does not inject this into main namespace yet */
65
77
#if defined(__cplusplus)
66
78
  using std::FILE;
67
79
#endif
68
80
 
69
 
#define MY_INIT(name);          { my_progname= name; my_init(); }
 
81
#define MY_INIT(name);          { ::drizzled::internal::my_progname= name; ::drizzled::internal::my_init(); }
70
82
 
71
83
 
72
84
        /* General bitmaps for my_func's */
130
142
#define GETDATE_GMT             8
131
143
#define GETDATE_FIXEDLENGTH     16
132
144
 
133
 
#ifdef __cplusplus
134
 
extern "C" {
135
 
#endif
136
145
 
137
146
typedef uint64_t my_off_t;
138
147
 
349
358
extern void thd_increment_bytes_received(uint32_t length);
350
359
extern void thd_increment_net_big_packet_count(uint32_t length);
351
360
 
352
 
#ifdef __cplusplus
353
 
}
354
 
#endif
 
361
} /* namespace internal */
 
362
} /* namespace drizzled */
355
363
 
356
364
#endif /* DRIZZLED_INTERNAL_MY_SYS_H */