//
// SPDX-License-Identifier: BSD-2-Clause
-#include <common/errno.h>
-
#include <sys/stat.h>
#include <wasi/api.h>
__wasi_timestamp_t st_mtim;
__wasi_fstflags_t flags;
if (!utimens_get_timestamps(times, &st_atim, &st_mtim, &flags)) {
- errno = EINVAL;
return -1;
}
// Perform system call.
__wasi_errno_t error =
- __wasi_path_filestat_set_times(fd, lookup_flags, path, strlen(path), st_atim, st_mtim, flags);
+ __wasi_path_filestat_set_times(fd, lookup_flags, path, st_atim, st_mtim, flags);
if (error != 0) {
- errno = errno_fixup_directory(fd, error);
return -1;
}
return 0;