UTIME(2)
NAME
utime − set file times
SYNOPSIS
#include <sys/types.h>
utime(file, timep)
char *file;
time_t timep[2];
DESCRIPTION
The utime call uses the ’accessed’ and ’updated’ times in that order from the timep vector to set the corresponding recorded times for file.
The caller must be the owner of the file or the superuser. The ’inode-changed’ time of the file is set to the current time.
DIAGNOSTICS
Utime will fail if one or more of the following is true:
[EACCES] A component of the path prefix denies search permission.
[EFAULT] Timep points to an address outside the process’s allocated address space.
[ENFILE] Insufficient system space to contain i-node.
[ENOENT] The named file, or an element within the named file, does not exist.
[ENOTDIR] A component of the path prefix is not a directory.
[EPERM] The process’s effective user ID is not the superuser and not the same as the owner of the file.
[EROFS] The named file is located on a read-only file system.
SEE ALSO
stat (2)
ASSEMBLER
(utime = 30.)
sys utime; file; timep