Unix |
Unix v7 |
|
![]() |
utime(2) |
![]() |
utime − set file times
#include
<sys/types.h>
utime(file, timep)
char *file;
time_t timep[2];
The utime call uses the ’accessed’ and ’updated’ times in that order from the timep vector to set the corresponding recorded times for file.
The caller must be the owner of the file or the super-user. The ’inode-changed’ time of the file is set to the current time.
stat (2)
(utime = 30.)
sys utime; file; timep
![]() |
utime(2) | ![]() |