| 1 | .\" Copyright (c) 1980, 1991 Regents of the University of California. |
| 2 | .\" All rights reserved. |
| 3 | .\" |
| 4 | .\" %sccs.include.redist.man% |
| 5 | .\" |
| 6 | .\" @(#)utime.3 6.3 (Berkeley) %G% |
| 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> |
| 16 | .Ft int |
| 17 | .Fn utime "const char *file" "const struct utimbuf *timep" |
| 18 | .Sh DESCRIPTION |
| 19 | .Bf -symbolic |
| 20 | This interface is obsoleted by utimes(2) . |
| 21 | It is available from the compatibility library, libcompat. |
| 22 | .Ef |
| 23 | .Pp |
| 24 | .Sh DESCRIPTION |
| 25 | The |
| 26 | .Fn utime |
| 27 | function sets the access and modification times of the named file from |
| 28 | the structures in the argument array |
| 29 | .Fa timep . |
| 30 | .Pp |
| 31 | The calling process's effective user ID must match the owner of the |
| 32 | file or must be the super-user. |
| 33 | .Sh SEE ALSO |
| 34 | .Xr utimes 2 , |
| 35 | .Xr stat 2 |
| 36 | .Sh HISTORY |
| 37 | A |
| 38 | .Fn utime |
| 39 | function appeared in |
| 40 | .At v7 . |