]> git.proxmox.com Git - qemu.git/blame - osdep.h
Update Sparc parts in documentation
[qemu.git] / osdep.h
CommitLineData
ea88812f
FB
1#ifndef QEMU_OSDEP_H
2#define QEMU_OSDEP_H
3
4#include <stdarg.h>
5
d62ca2bb 6#define qemu_printf printf
ea88812f
FB
7
8void *qemu_malloc(size_t size);
0fb48229 9void *qemu_mallocz(size_t size);
ea88812f 10void qemu_free(void *ptr);
2571929a 11char *qemu_strdup(const char *str);
49b470eb
FB
12
13void *qemu_vmalloc(size_t size);
14void qemu_vfree(void *ptr);
ea88812f
FB
15
16void *get_mmap_addr(unsigned long size);
17
aa26bb2d
TS
18int qemu_create_pidfile(const char *filename);
19
29b3a662
PB
20#ifdef _WIN32
21typedef struct {
22 long tv_sec;
23 long tv_usec;
24} qemu_timeval;
25int qemu_gettimeofday(qemu_timeval *tp);
26#else
27typedef struct timeval qemu_timeval;
28#define qemu_gettimeofday(tp) gettimeofday(tp, NULL);
29#endif /* !_WIN32 */
30
ea88812f 31#endif