]> Git Repo - qemu.git/blobdiff - oslib-posix.c
hw/sd.c: Handle CRC and locked-card errors in normal code path
[qemu.git] / oslib-posix.c
index 6f297626c7d2410151586e945f2a777749e98be1..ce755496b5baf3b7f334185db478f2871dbba249 100644 (file)
@@ -162,8 +162,7 @@ int qemu_pipe(int pipefd[2])
     return ret;
 }
 
-int qemu_utimensat(int dirfd, const char *path, const struct timespec *times,
-                   int flags)
+int qemu_utimens(const char *path, const struct timespec *times)
 {
     struct timeval tv[2], tv_now;
     struct stat st;
@@ -171,7 +170,7 @@ int qemu_utimensat(int dirfd, const char *path, const struct timespec *times,
 #ifdef CONFIG_UTIMENSAT
     int ret;
 
-    ret = utimensat(dirfd, path, times, flags);
+    ret = utimensat(AT_FDCWD, path, times, AT_SYMLINK_NOFOLLOW);
     if (ret != -1 || errno != ENOSYS) {
         return ret;
     }
This page took 0.020889 seconds and 4 git commands to generate.