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