UTIME(3C) — UNIX Programmer’s Manual
NAME
utime − set file times
SYNOPSIS
#include <sys/types.h>
utime(file, timep)
char ∗file;
time_t timep[2];
DESCRIPTION
This interface is obsoleted by utimes(2).
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 super-user. The ‘inode-changed’ time of the file is set to the current time.
RETURN VALUE
Upon successful completion, a value of 0 is returned. Otherwise, a value of −1 is returned and errno is set to indicate the error.
ERRORS
utime is a compatibility interface built on top of utimes; refer to the man page of utimes for a list of possible error values.
SEE ALSO
4BSD