All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)utimes.2 5.1 (Berkeley) 05/09/85
#include <sys/time.h>utimes(file, tvp) char *file; struct timeval *tvp[2];
The caller must be the owner of the file or the super-user. The \*(lqinode-changed\*(rq time of the file is set to the current time.
15 [EPERM] The pathname contained a character with the high-order bit set.
15 [ENOENT] The pathname was too long.
15 [ENOENT] The named file does not exist.
15 [ENOTDIR] A component of the path prefix is not a directory.
15 [EACCES] A component of the path prefix denies search permission.
15 [EPERM] The process is not super-user and not the owner of the file.
15 [EACCES] The effective user ID is not super-user and not the owner of the file and times is NULL and write access is denied.
15 [EROFS] The file system containing the file is mounted read-only.
15 [EFAULT] Tvp points outside the process's allocated address space.
15 [ELOOP] Too many symbolic links were encountered in translating the pathname.