+
+int
+setimes(path, statp)
+ char *path;
+ struct stat *statp;
+{
+ struct timeval tv[2];
+
+ tv[0].tv_sec = statp->st_atime;
+ tv[1].tv_sec = statp->st_mtime;
+ tv[0].tv_usec = tv[1].tv_usec = 0;
+ if (utimes(path, tv) < 0) {
+ Perror(path);
+ return (1);
+ }
+ return (0);
+}
+
+Perror(s)
+ char *s;
+{
+
+ fprintf(stderr, "cp: ");
+ perror(s);
+}