2004-02-17 06:12:40 +08:00
|
|
|
#ifndef QEMU_OSDEP_H
|
|
|
|
#define QEMU_OSDEP_H
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
2006-08-01 23:50:14 +08:00
|
|
|
#define qemu_printf printf
|
2004-02-17 06:12:40 +08:00
|
|
|
|
|
|
|
void *qemu_malloc(size_t size);
|
2004-03-15 05:48:47 +08:00
|
|
|
void *qemu_mallocz(size_t size);
|
2004-02-17 06:12:40 +08:00
|
|
|
void qemu_free(void *ptr);
|
2004-07-15 01:21:57 +08:00
|
|
|
char *qemu_strdup(const char *str);
|
2005-02-11 05:59:25 +08:00
|
|
|
|
|
|
|
void *qemu_vmalloc(size_t size);
|
|
|
|
void qemu_vfree(void *ptr);
|
2004-02-17 06:12:40 +08:00
|
|
|
|
|
|
|
void *get_mmap_addr(unsigned long size);
|
|
|
|
|
|
|
|
#endif
|