Annotation of cci/usr/src/man/man2/utimes.2, revision 1.1.1.1

1.1       root        1: .TH UTIMES 2 "2 July 1983"
                      2: .UC 4
                      3: .SH NAME
                      4: utimes \- set file times
                      5: .SH SYNOPSIS
                      6: .nf
                      7: .ft B
                      8: #include <sys/time.h>
                      9: .PP
                     10: .ft B
                     11: utimes(file, tvp)
                     12: char *file;
                     13: struct timeval tvp[2];
                     14: .fi
                     15: .SH DESCRIPTION
                     16: The
                     17: .I utimes
                     18: call
                     19: uses the
                     20: \*(lqaccessed\*(rq and \*(lqupdated\*(rq times in that order
                     21: from the
                     22: .I tvp
                     23: vector
                     24: to set the corresponding recorded times for
                     25: .I file.
                     26: .PP
                     27: The caller must be the owner of the file or the super-user.
                     28: The \*(lqinode-changed\*(rq time of the file is set to the current time.
                     29: .SH "RETURN VALUE
                     30: Upon successful completion, a value of 0 is returned.
                     31: Otherwise, a value of \-1 is returned and
                     32: .I errno
                     33: is set to indicate the error.
                     34: .SH "ERRORS
                     35: .I Utime
                     36: will fail if one or more of the following are true:
                     37: .TP 15
                     38: [EPERM]
                     39: The pathname contained a character with the high-order bit set.
                     40: .TP 15
                     41: [ENOENT]
                     42: The pathname was too long.
                     43: .TP 15
                     44: [ENOENT]
                     45: The named file does not exist.
                     46: .TP 15
                     47: [ENOTDIR]
                     48: A component of the path prefix is not a directory.
                     49: .TP 15
                     50: [EACCES]
                     51: A component of the path prefix denies search permission.
                     52: .TP 15
                     53: [EPERM]
                     54: The process is not super-user and not the owner of the file.
                     55: .TP 15
                     56: [EACCES]
                     57: The effective user ID is not super-user and not the
                     58: owner of the file and \fItimes\fP is NULL and write access
                     59: is denied.
                     60: .TP 15
                     61: [EROFS]
                     62: The file system containing the file is mounted read-only.
                     63: .TP 15
                     64: [EFAULT]
                     65: .I Tvp
                     66: points outside the process's allocated address space.
                     67: .TP 15
                     68: [ELOOP]
                     69: Too many symbolic links were encountered in translating the pathname.
                     70: .SH SEE ALSO
                     71: stat(2)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.