utime(3)

DESCRIPTION

Updates path's modification time to the current kernel realtime. The value argument is ignored by the current implementation.

SYNOPSIS

#include <sys/stat.h>

int utime(const char *path, const time_t *value);

RETURN VALUE

  • Returns zero, or -1 and sets errno.

ERRORS

  • -EFAULT
    • Path is null or cannot be read.
  • -EINVAL
    • Path resolution fails.
  • -ENOENT
    • The path does not exist.
  • -EROFS
    • The filesystem does not support timestamp updates.

NOTES

Implemented as utimensat(AT_FDCWD, path, NULL, 0).