int utimes(int dir, const char *path, struct timespec *times, int flags);
This syscall changes the access and modification time of the passed file to the
2 first values contained in the times
array. All the standard options
for dir
are accepted and flags
takes AT_EMPTY_PATH
and
AT_SYMLINK_NOFOLLOW
.
EFAULT
path
or times
point to non accessible memory.
EACCES
MAC did not allow this.
EINVAL
An argument is not valid.