~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_sys.h

  • Committer: Stewart Smith
  • Date: 2009-12-02 05:17:48 UTC
  • mto: (1237.1.2 push)
  • mto: This revision was merged to the branch mainline in revision 1238.
  • Revision ID: stewart@flamingspork.com-20091202051748-vbyduoof36eaobul
remove final bits of my_end(MY_CHECK_ERROR) and associated code. Mostly all dead, would do the (now absent) my_print_open_files() which valgrind (or a simple LD_PRELOAD) does for us anyway..

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
#define MY_DONT_OVERWRITE_FILE 1024     /* my_copy: Don't overwrite file */
67
67
#define MY_THREADSAFE 2048      /* my_seek(): lock fd mutex */
68
68
 
69
 
#define MY_CHECK_ERROR  1       /* Params to my_end; Check open-close */
70
69
#define MY_GIVE_INFO    2       /* Give time info about process*/
71
70
 
72
71
#define ME_HIGHBYTE     8       /* Shift for colours */
115
114
#define GETDATE_GMT             8
116
115
#define GETDATE_FIXEDLENGTH     16
117
116
 
118
 
        /* defines when allocating data */
119
 
#undef TERMINATE
120
 
#define TERMINATE(A,B) {}
121
 
 
122
117
#ifdef __cplusplus
123
118
extern "C" {
124
119
#endif
290
285
 
291
286
#define my_delete_allow_opened(fname,flags)  my_delete((fname),(flags))
292
287
 
293
 
#ifndef TERMINATE
294
 
extern void TERMINATE(FILE *file, uint32_t flag);
295
 
#endif
296
288
extern void init_glob_errs(void);
297
289
extern int my_sync(File fd, myf my_flags);
298
290
extern int my_sync_dir(const char *dir_name, myf my_flags);
311
303
extern int my_copystat(const char *from, const char *to, int MyFlags);
312
304
extern char * my_filename(File fd);
313
305
 
314
 
#ifdef EXTRA_DEBUG
315
 
void my_print_open_files(void);
316
 
#else
317
 
#define my_print_open_files()
318
 
#endif
319
 
 
320
306
extern void my_remember_signal(int signal_number,void (*func)(int));
321
307
extern size_t dirname_part(char * to,const char *name, size_t *to_res_length);
322
308
extern size_t dirname_length(const char *name);