Return to util.c CVS log | Up to [local] / src / usr.bin / make |
version 1.25, 2010/07/19 19:46:44 | version 1.26, 2011/12/10 04:12:36 | ||
---|---|---|---|
|
|
||
int | int | ||
utimes(file, tvp) | utimes(file, tvp) | ||
char *file; | char *file; | ||
struct timeval tvp[2]; | struct timeval *tvp; | ||
{ | { | ||
struct utimbuf t; | struct utimbuf t; | ||
if (tvp == NULL) | |||
return utime(file, NULL); | |||
t.actime = tvp[0].tv_sec; | t.actime = tvp[0].tv_sec; | ||
t.modtime = tvp[1].tv_sec; | t.modtime = tvp[1].tv_sec; | ||
return utime(file, &t); | return utime(file, &t); |