]> git.proxmox.com Git - qemu.git/blobdiff - qemu-os-posix.h
xen: fix xen-mapcache build on non-Xen capable targets
[qemu.git] / qemu-os-posix.h
index 91c7b68fd2a1ee71956e34bfdad98184b21f8647..81fd9ab389c648c448685adec5ff473fd87527ce 100644 (file)
@@ -30,8 +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_change_process_uid(void);
-void os_change_root(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