version 1.15, 2000/06/30 16:00:18 |
version 1.16, 2001/01/16 05:36:08 |
|
|
|
|
if (stat(name, &sbuf) < 0) |
if (stat(name, &sbuf) < 0) |
return(0); |
return(0); |
return (S_ISDIR(sbuf.st_mode)); |
return(S_ISDIR(sbuf.st_mode)); |
} |
} |
|
|
/* |
/* |
|
|
return; |
return; |
(void) gettimeofday(&tv[0], (struct timezone *)0); |
(void) gettimeofday(&tv[0], (struct timezone *)0); |
tv[0].tv_sec++; |
tv[0].tv_sec++; |
|
#ifdef TIMESPEC_TO_TIMEVAL |
TIMESPEC_TO_TIMEVAL(&tv[1], &sb.st_mtimespec); |
TIMESPEC_TO_TIMEVAL(&tv[1], &sb.st_mtimespec); |
|
#else |
|
tv[1].tv_sec = sb.st_mtime; |
|
#endif |
(void)utimes(name, tv); |
(void)utimes(name, tv); |
} |
} |
|
|