368
368
#define my_print_open_files()
371
extern void my_remember_signal(int signal_number,RETSIGTYPE (*func)(int));
371
extern void my_remember_signal(int signal_number,void (*func)(int));
372
372
extern size_t dirname_part(char * to,const char *name, size_t *to_res_length);
373
373
extern size_t dirname_length(const char *name);
374
374
#define base_name(A) (A+dirname_length(A))
410
410
extern int write_cache_record(RECORD_CACHE *info,my_off_t filepos,
411
411
const unsigned char *record,size_t length);
412
412
extern int flush_write_cache(RECORD_CACHE *info);
413
extern RETSIGTYPE sigtstp_handler(int signal_number);
413
extern void sigtstp_handler(int signal_number);
414
414
extern void handle_recived_signals(void);
416
extern RETSIGTYPE my_set_alarm_variable(int signo);
416
extern void my_set_alarm_variable(int signo);
417
417
extern void my_string_ptr_sort(unsigned char *base,uint32_t items,size_t size);
418
418
extern void radixsort_for_str_ptr(unsigned char* base[], uint32_t number_of_elements,
419
419
size_t size_of_element,unsigned char *buffer[]);
420
extern RETQSORTTYPE my_qsort(void *base_ptr, size_t total_elems, size_t size,
422
extern RETQSORTTYPE my_qsort2(void *base_ptr, size_t total_elems, size_t size,
423
qsort2_cmp cmp, void *cmp_argument);
420
extern void my_qsort(void *base_ptr, size_t total_elems, size_t size,
422
extern void my_qsort2(void *base_ptr, size_t total_elems, size_t size,
423
qsort2_cmp cmp, void *cmp_argument);
424
424
extern qsort2_cmp get_ptr_compare(size_t);
425
425
void my_store_ptr(unsigned char *buff, size_t pack_length, my_off_t pos);
426
426
my_off_t my_get_ptr(unsigned char *ptr, size_t pack_length);