6 #define qemu_printf printf
8 void *qemu_malloc(size_t size
);
9 void *qemu_mallocz(size_t size
);
10 void qemu_free(void *ptr
);
11 char *qemu_strdup(const char *str
);
13 void *qemu_vmalloc(size_t size
);
14 void qemu_vfree(void *ptr
);
16 void *get_mmap_addr(unsigned long size
);
18 int qemu_create_pidfile(const char *filename
);
25 int qemu_gettimeofday(qemu_timeval
*tp
);
27 typedef struct timeval qemu_timeval
;
28 #define qemu_gettimeofday(tp) gettimeofday(tp, NULL);