X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/8847cfe8aa9d8f6b8648aafd5d929a57d836cc61..325b3ceff69c987e90acf9c8ef6f55e646b39767:/qemu-os-posix.h diff --git a/qemu-os-posix.h b/qemu-os-posix.h index 6d8cf79899..8e1149d964 100644 --- a/qemu-os-posix.h +++ b/qemu-os-posix.h @@ -26,11 +26,24 @@ #ifndef QEMU_OS_POSIX_H #define QEMU_OS_POSIX_H -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_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_utimens(const char *path, const qemu_timespec *times); #endif