]>
git.proxmox.com Git - qemu.git/blob - osdep.h
6 int qemu_vsnprintf(char *buf
, int buflen
, const char *fmt
, va_list args
);
7 void qemu_vprintf(const char *fmt
, va_list ap
);
8 void qemu_printf(const char *fmt
, ...);
10 void *qemu_malloc(size_t size
);
11 void *qemu_mallocz(size_t size
);
12 void qemu_free(void *ptr
);
13 char *qemu_strdup(const char *str
);
15 void *get_mmap_addr(unsigned long size
);
17 /* specific kludges for OS compatibility (should be moved elsewhere) */
18 #if defined(__i386__) && !defined(CONFIG_SOFTMMU) && !defined(CONFIG_USER_ONLY)
20 /* disabled pthread version of longjmp which prevent us from using an
21 alternative signal stack */
22 extern void __longjmp(jmp_buf env
, int val
);
23 #define longjmp __longjmp