blob: 1c14de4c5ee15a68a9427c693a14dffc63f458b5 [file] [log] [blame]
bellardea888122004-02-16 22:12:40 +00001#ifndef QEMU_OSDEP_H
2#define QEMU_OSDEP_H
3
4#include <stdarg.h>
5
6int qemu_vsnprintf(char *buf, int buflen, const char *fmt, va_list args);
7void qemu_vprintf(const char *fmt, va_list ap);
8void qemu_printf(const char *fmt, ...);
9
10void *qemu_malloc(size_t size);
bellard0fb48222004-03-14 21:48:47 +000011void *qemu_mallocz(size_t size);
bellardea888122004-02-16 22:12:40 +000012void qemu_free(void *ptr);
13
14void *get_mmap_addr(unsigned long size);
15
16/* specific kludges for OS compatibility (should be moved elsewhere) */
17#if defined(__i386__) && !defined(CONFIG_SOFTMMU) && !defined(CONFIG_USER_ONLY)
18
19/* disabled pthread version of longjmp which prevent us from using an
20 alternative signal stack */
21extern void __longjmp(jmp_buf env, int val);
22#define longjmp __longjmp
23
24#endif
25
26#endif