X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qemu-os-posix.h;h=81fd9ab389c648c448685adec5ff473fd87527ce;hb=9e8dd45164af05a5dab00324dd10b037f5bd1e2a;hp=ed5c058bc3e551e648cb669b8257f533143b3042;hpb=a4673e276248ada38f40d39191a197e7e35d3f8b;p=qemu.git diff --git a/qemu-os-posix.h b/qemu-os-posix.h index ed5c058bc..81fd9ab38 100644 --- a/qemu-os-posix.h +++ b/qemu-os-posix.h @@ -36,4 +36,19 @@ 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