1 /* Common header file that is included by all of qemu. */
5 /* we put basic includes here to avoid repeating them in device drivers */
27 #define ENOMEDIUM ENODEV
33 #define lseek _lseeki64
35 extern int qemu_ftruncate64(int, int64_t);
36 #define ftruncate qemu_ftruncate64
39 static inline char *realpath(const char *path, char *resolved_path)
41 _fullpath(resolved_path, path, _MAX_PATH);
51 /* FIXME: Remove NEED_CPU_H. */
54 #include "config-host.h"
63 #endif /* !defined(NEED_CPU_H) */
66 typedef struct QEMUBH QEMUBH;
68 typedef void QEMUBHFunc(void *opaque);
70 QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque);
71 void qemu_bh_schedule(QEMUBH *bh);
72 void qemu_bh_cancel(QEMUBH *bh);
73 void qemu_bh_delete(QEMUBH *bh);
74 int qemu_bh_poll(void);
77 void pstrcpy(char *buf, int buf_size, const char *str);
78 char *pstrcat(char *buf, int buf_size, const char *s);
79 int strstart(const char *str, const char *val, const char **ptr);
80 int stristart(const char *str, const char *val, const char **ptr);
81 time_t mktimegm(struct tm *tm);