Return to timestamp.c CVS log | Up to [local] / src / usr.bin / make |
version 1.6, 2010/07/19 19:46:44 | version 1.7, 2011/12/10 04:12:36 | ||
---|---|---|---|
|
|
||
set_times(const char *f) | set_times(const char *f) | ||
{ | { | ||
#ifdef USE_TIMESPEC | #ifdef USE_TIMESPEC | ||
struct timeval tv[2]; | return utimes(f, NULL); | ||
gettimeofday(&tv[0], NULL); | |||
tv[1] = tv[0]; | |||
return utimes(f, tv); | |||
#else | #else | ||
struct utimbuf times; | struct utimbuf times; | ||