Commit | Line | Data |
---|---|---|
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 | .\" | |
79e6b3c8 | 5 | .\" @(#)utime.3 6.2 (Berkeley) %G% |
280f9990 | 6 | .\" |
b6ba30bf | 7 | .TH UTIME 3C "" |
280f9990 KM |
8 | .UC 4 |
9 | .SH NAME | |
10 | utime \- 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 |
21 | This interface is obsoleted by utimes(2). | |
79e6b3c8 KB |
22 | .br |
23 | It is available from the compatibility library, libcompat. | |
4a8401dc KM |
24 | .ft R |
25 | .PP | |
280f9990 KM |
26 | The |
27 | .I utime | |
28 | call | |
29 | uses the | |
30 | `accessed' and `updated' times in that order | |
31 | from the | |
32 | .I timep | |
33 | vector | |
34 | to set the corresponding recorded times for | |
4a8401dc | 35 | .IR file . |
280f9990 KM |
36 | .PP |
37 | The caller must be the owner of the file or the super-user. | |
38 | The `inode-changed' time of the file is set to the current time. | |
39 | .SH SEE ALSO | |
4a8401dc | 40 | utimes(2), stat(2) |