Commit | Line | Data |
---|---|---|
ae59e04c CL |
1 | .\" Copyright (c) 1980, 1991 Regents of the University of California. |
2 | .\" All rights reserved. | |
280f9990 | 3 | .\" |
ae59e04c | 4 | .\" %sccs.include.redist.man% |
280f9990 | 5 | .\" |
8c40fd74 | 6 | .\" @(#)utime.3 6.8 (Berkeley) %G% |
ae59e04c CL |
7 | .\" |
8 | .Dd | |
9 | .Dt UTIME 3 | |
10 | .Os BSD 4 | |
11 | .Sh NAME | |
12 | .Nm utime | |
13 | .Nd set file times | |
14 | .Sh SYNOPSIS | |
15 | .Fd #include <sys/types.h> | |
5145b1d0 | 16 | .Fd #include <utime.h> |
ae59e04c CL |
17 | .Ft int |
18 | .Fn utime "const char *file" "const struct utimbuf *timep" | |
19 | .Sh DESCRIPTION | |
20 | .Bf -symbolic | |
21 | This interface is obsoleted by utimes(2) . | |
ae59e04c CL |
22 | .Ef |
23 | .Pp | |
280f9990 | 24 | The |
ae59e04c CL |
25 | .Fn utime |
26 | function sets the access and modification times of the named file from | |
27 | the structures in the argument array | |
28 | .Fa timep . | |
29 | .Pp | |
20a9a8c4 KB |
30 | If the times are specified (the |
31 | .Fa timep | |
32 | argument is | |
33 | .Pf non- Dv NULL ) | |
34 | the caller must be the owner of the file or be the super-user. | |
35 | .Pp | |
36 | If the times are not specified (the | |
37 | .Fa timep | |
38 | argument is | |
39 | .Dv NULL ) | |
40 | the caller must be the owner of the file, have permission to write | |
41 | the file, or be the super-user. | |
21847623 KB |
42 | .Sh ERRORS |
43 | The | |
44 | .Fn utime | |
45 | function may fail and set | |
46 | .Va errno | |
47 | for any of the errors specified for the library function | |
48 | .Xr utimes 2 . | |
ae59e04c CL |
49 | .Sh SEE ALSO |
50 | .Xr utimes 2 , | |
51 | .Xr stat 2 | |
52 | .Sh HISTORY | |
53 | A | |
54 | .Fn utime | |
55 | function appeared in | |
56 | .At v7 . | |
8c40fd74 | 57 | .Sh STANDARDS |
21847623 KB |
58 | The |
59 | .Nm utime | |
60 | function conforms to | |
8c40fd74 | 61 | .St -p1003.1-88 . |