/* Detecting file changes using modification times.
- Copyright (C) 2017-2021 Free Software Foundation, Inc.
+ Copyright (C) 2017-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
{
file->size = st->st_size;
file->ino = st->st_ino;
- file->mtime = st->st_mtim;
- file->ctime = st->st_ctim;
+ file->mtime = (struct __timespec64) { st->st_mtim.tv_sec,
+ st->st_mtim.tv_nsec };
+ file->ctime = (struct __timespec64) { st->st_ctim.tv_sec,
+ st->st_ctim.tv_nsec };
}
}
libc_hidden_def (__file_change_detection_for_stat)
/* Other errors are fatal. */
return false;
}
- else /* stat64 was successfull. */
+ else /* stat64 was successful. */
{
__file_change_detection_for_stat (file, &st);
return true;