2.9BSD/usr/man/cat2/utime.2

Compare this file to the similar file:
Show the results in this format:


UTIME(2)            UNIX Programmer's Manual             UTIME(2)

NAME
     utime - set file times

SYNOPSIS
     #include <sys/types.h>

     utime(file, timep)
     char *file;
     time_t timep[2];

DESCRIPTION
     The _u_t_i_m_e call uses the `accessed' and `updated' times in
     that order from the _t_i_m_e_p vector to set the corresponding
     recorded times for _f_i_l_e.

     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.

ERRORS
     _U_t_i_m_e will fail if one or more of the following is true:

     [EINVAL]            The path name contains a non-ASCII byte.

     [ENOENT]            The named file does not exist.

     [ENOTDIR]           A component of the path prefix is not a
                         directory.

     [EACCES]            A component of the path prefix denies
                         search permission.

     [EPERM]             The process's effective user ID is not
                         the super-user and not the same as the
                         owner of the file.

     [EROFS]             The named file is located on a read-only
                         file system.

     [EFAULT]            _T_i_m_e_p points to an address outside the
                         process's allocated address space.

     [ELOOP]             Too many symbolic links were encountered
                         in translating the path name.

SEE ALSO
     stat (2)

ASSEMBLER
     (utime = 30.)
     sys utime; file; timep

Printed 5/23/83                                                 1