X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qemu-os-posix.h;h=81fd9ab389c648c448685adec5ff473fd87527ce;hb=bb5df884db32114a4a0129c9927793ebcf7c089a;hp=ff5adb1b2b5bfe5a8e5b52f595f24172b936c7a0;hpb=86b645e753b9396f8cc5b74a9eadf2d36f76ae5c;p=qemu.git diff --git a/qemu-os-posix.h b/qemu-os-posix.h index ff5adb1b2..81fd9ab38 100644 --- a/qemu-os-posix.h +++ b/qemu-os-posix.h @@ -30,6 +30,25 @@ static inline void os_host_main_loop_wait(int *timeout) { } +void os_set_line_buffering(void); +void os_set_proc_name(const char *s); void os_setup_signal_handling(void); +void os_daemonize(void); +void os_setup_post(void); + +typedef struct timeval qemu_timeval; +#define qemu_gettimeofday(tp) gettimeofday(tp, NULL) + +#ifndef CONFIG_UTIMENSAT +#ifndef UTIME_NOW +# define UTIME_NOW ((1l << 30) - 1l) +#endif +#ifndef UTIME_OMIT +# define UTIME_OMIT ((1l << 30) - 2l) +#endif +#endif +typedef struct timespec qemu_timespec; +int qemu_utimensat(int dirfd, const char *path, const qemu_timespec *times, + int flags); #endif