~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_sys.h

  • Committer: Monty Taylor
  • Date: 2008-10-13 09:29:43 UTC
  • mfrom: (509 drizzle)
  • mto: (509.1.4 codestyle)
  • mto: This revision was merged to the branch mainline in revision 511.
  • Revision ID: monty@inaugust.com-20081013092943-rwvx4a6d85b5l2dh
MergedĀ inĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <mysys/typelib.h>
32
32
#include <mysys/aio_result.h>
33
33
 
 
34
#include <mysys/my_alloc.h>
 
35
 
34
36
#define MY_INIT(name);          { my_progname= name; my_init(); }
35
37
 
36
38
#define ERRMSGSIZE      (SC_MAXWIDTH)   /* Max length of a error message */
46
48
#define MY_WAIT_IF_FULL 32      /* Wait and try again if disk full error */
47
49
#define MY_IGNORE_BADFD 32      /* my_sync: ignore 'bad descriptor' errors */
48
50
#define MY_SYNC_DIR     1024    /* my_create/delete/rename: sync directory */
49
 
#define MY_RAID         64      /* Support for RAID */
50
51
#define MY_FULL_IO     512      /* For my_read - loop intil I/O is complete */
51
52
#define MY_DONT_CHECK_FILESIZE 128 /* Option to init_io_cache() */
52
53
#define MY_LINK_WARNING 32      /* my_redel() gives warning if links */
515
516
#define alloc_root_inited(A) ((A)->min_malloc != 0)
516
517
#define ALLOC_ROOT_MIN_BLOCK_SIZE (MALLOC_OVERHEAD + sizeof(USED_MEM) + 8)
517
518
#define clear_alloc_root(A) do { (A)->free= (A)->used= (A)->pre_alloc= 0; (A)->min_malloc=0;} while(0)
518
 
extern void init_alloc_root(MEM_ROOT *mem_root, size_t block_size,
519
 
                            size_t pre_alloc_size);
520
 
extern void *alloc_root(MEM_ROOT *mem_root, size_t Size);
521
 
extern void *multi_alloc_root(MEM_ROOT *mem_root, ...);
522
 
extern void free_root(MEM_ROOT *root, myf MyFLAGS);
523
 
extern void set_prealloc_root(MEM_ROOT *root, char *ptr);
524
 
extern void reset_root_defaults(MEM_ROOT *mem_root, size_t block_size,
525
 
                                size_t prealloc_size);
526
 
extern char *strdup_root(MEM_ROOT *root,const char *str);
527
 
extern char *strmake_root(MEM_ROOT *root,const char *str,size_t len);
528
 
extern void *memdup_root(MEM_ROOT *root,const void *str, size_t len);
529
519
extern int get_defaults_options(int argc, char **argv,
530
520
                                char **defaults, char **extra_defaults,
531
521
                                char **group_suffix);