BSD 4_3 release
[unix-history] / usr / man / man3 / utime.3c
CommitLineData
280f9990
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
95f51977 5.\" @(#)utime.3c 6.1 (Berkeley) 5/9/85
280f9990 6.\"
95f51977 7.TH UTIME 3C "May 9, 1985"
280f9990
KM
8.UC 4
9.SH NAME
10utime \- set file times
11.SH SYNOPSIS
12.nf
13.B #include <sys/types.h>
14.PP
15.B utime(file, timep)
16.B char *file;
17.B time_t timep[2];
18.fi
19.SH DESCRIPTION
4a8401dc
KM
20.ft B
21This interface is obsoleted by utimes(2).
22.ft R
23.PP
280f9990
KM
24The
25.I utime
26call
27uses the
28`accessed' and `updated' times in that order
29from the
30.I timep
31vector
32to set the corresponding recorded times for
4a8401dc 33.IR file .
280f9990
KM
34.PP
35The caller must be the owner of the file or the super-user.
36The `inode-changed' time of the file is set to the current time.
37.SH SEE ALSO
4a8401dc 38utimes(2), stat(2)