]> git.proxmox.com Git - qemu.git/blob - osdep.h
16148da1b1a2633e5db4abf1b9f3aef7c67650f8
[qemu.git] / osdep.h
1 #ifndef QEMU_OSDEP_H
2 #define QEMU_OSDEP_H
3
4 #include <stdarg.h>
5
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, ...);
9
10 void *qemu_malloc(size_t size);
11 void qemu_free(void *ptr);
12
13 void *get_mmap_addr(unsigned long size);
14
15 /* specific kludges for OS compatibility (should be moved elsewhere) */
16 #if defined(__i386__) && !defined(CONFIG_SOFTMMU) && !defined(CONFIG_USER_ONLY)
17
18 /* disabled pthread version of longjmp which prevent us from using an
19 alternative signal stack */
20 extern void __longjmp(jmp_buf env, int val);
21 #define longjmp __longjmp
22
23 #endif
24
25 #endif