~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_sys.h

Merge Andrew - Enable boost filesystem requirement and fix linking requirements for it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
 
172
172
extern bool timed_mutexes;
173
173
 
174
 
typedef class wild_file_pack    /* Struct to hold info when selecting files */
 
174
typedef struct wild_file_pack   /* Struct to hold info when selecting files */
175
175
{
176
 
public:
177
176
  uint          wilds;          /* How many wildcards */
178
177
  uint          not_pos;        /* Start of not-theese-files */
179
178
  char *        *wild;          /* Pointer to wildcards */
180
 
 
181
 
  wild_file_pack():
182
 
    wilds(0),
183
 
    not_pos(0),
184
 
    wild(NULL)
185
 
  {}
186
 
 
187
179
} WF_PACK;
188
180
 
189
181
enum cache_type
196
188
  WRITE_NET
197
189
};
198
190
 
199
 
typedef struct record_cache     /* Used when cacheing records */
 
191
typedef struct st_record_cache  /* Used when cacheing records */
200
192
{
201
 
public:
202
193
  int file;
203
194
  int   rc_seek,error,inited;
204
195
  uint  rc_length,read_length,reclength;
209
200
  my_aio_result aio_result;
210
201
#endif
211
202
  enum cache_type type;
212
 
 
213
 
  record_cache():
214
 
    file(0),
215
 
    rc_seek(0),
216
 
    error(0),
217
 
    inited(0),
218
 
    rc_length(0),
219
 
    read_length(0),
220
 
    reclength(0),
221
 
    rc_record_pos(0),
222
 
    end_of_file(0),
223
 
    rc_buff(NULL),
224
 
    rc_buff2(NULL),
225
 
    rc_pos(NULL),
226
 
    rc_end(NULL),
227
 
    rc_request_pos(NULL)
228
 
  {}
229
 
 
230
203
} RECORD_CACHE;
231
204
 
232
205
 
329
302
extern int wild_compare(const char *str,const char *wildstr,
330
303
                        bool str_is_pattern);
331
304
extern WF_PACK *wf_comp(char * str);
332
 
extern int wf_test(wild_file_pack *wf_pack,const char *name);
333
 
extern void wf_end(wild_file_pack *buffer);
 
305
extern int wf_test(struct wild_file_pack *wf_pack,const char *name);
 
306
extern void wf_end(struct wild_file_pack *buffer);
334
307
extern bool array_append_string_unique(const char *str,
335
308
                                          const char **array, size_t size);
336
309
extern void get_date(char * to,int timeflag,time_t use_time);