~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_sys.h

  • Committer: Brian Aker
  • Date: 2009-05-23 16:15:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1038.
  • Revision ID: brian@gaz-20090523161500-nldnoav8b7x1iz1b
Remove locks around my_open(). Open file counts are now "best effort" (not
that they were ever exact, since Innodb didn't use the calls).

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
  enum cache_type type;
221
221
} RECORD_CACHE;
222
222
 
223
 
enum file_type
224
 
{
225
 
  UNOPEN = 0, FILE_BY_OPEN, FILE_BY_CREATE, STREAM_BY_FOPEN, STREAM_BY_FDOPEN,
226
 
  FILE_BY_MKSTEMP, FILE_BY_DUP
227
 
};
228
 
 
229
 
struct st_my_file_info
230
 
{
231
 
  char *                name;
232
 
  enum file_type        type;
233
 
};
234
 
 
235
 
extern struct st_my_file_info *my_file_info;
236
 
 
237
223
typedef struct st_dynamic_array
238
224
{
239
225
  unsigned char *buffer;
308
294
extern int my_delete(const char *name,myf MyFlags);
309
295
extern File my_open(const char *FileName,int Flags,myf MyFlags);
310
296
extern File my_register_filename(File fd, const char *FileName,
311
 
                                 enum file_type type_of_file,
312
297
                                 uint32_t error_message_number, myf MyFlags);
313
298
extern File my_create(const char *FileName,int CreateFlags,
314
299
                      int AccessFlags, myf MyFlags);
423
408
extern qsort2_cmp get_ptr_compare(size_t);
424
409
void my_store_ptr(unsigned char *buff, size_t pack_length, my_off_t pos);
425
410
my_off_t my_get_ptr(unsigned char *ptr, size_t pack_length);
426
 
File create_temp_file(char *to, const char *dir, const char *pfx,
427
 
                      int mode, myf MyFlags);
 
411
File create_temp_file(char *to, const char *dir, const char *pfx, myf MyFlags);
428
412
#define my_init_dynamic_array(A,B,C,D) init_dynamic_array2(A,B,NULL,C,D)
429
413
#define my_init_dynamic_array_ci(A,B,C,D) init_dynamic_array2(A,B,NULL,C,D)
430
414
#define my_init_dynamic_array2(A,B,C,D,E) init_dynamic_array2(A,B,C,D,E)