summaryrefslogtreecommitdiff
path: root/qemu-os-posix.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-11-21 09:29:11 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-11-28 11:36:27 -0600
commitae0f940e6b4f5177892dd6a12762282fa9089972 (patch)
tree3e855a839233c0d0cc2e52daa6e4c30911da5fc5 /qemu-os-posix.h
parent13bd0b5026265611809e99749bd74c2fd095247d (diff)
9pfs: improve portability to older systems
Small requirements on "new" features have percolated to virtio-9p-local.c. In particular, the utimensat wrapper actually only supports dirfd = AT_FDCWD and flags = AT_SYMLINK_NOFOLLOW in the fallback code. Remove the arguments so that virtio-9p-local.c will not use AT_* constants. At the same time, fail local_ioc_getversion if the ioctl is not supported by the host. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-os-posix.h')
-rw-r--r--qemu-os-posix.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/qemu-os-posix.h b/qemu-os-posix.h
index 920499d83..8e1149d96 100644
--- a/qemu-os-posix.h
+++ b/qemu-os-posix.h
@@ -44,7 +44,6 @@ typedef struct timeval qemu_timeval;
#endif
#endif
typedef struct timespec qemu_timespec;
-int qemu_utimensat(int dirfd, const char *path, const qemu_timespec *times,
- int flags);
+int qemu_utimens(const char *path, const qemu_timespec *times);
#endif