Lines Matching refs:file_copy
66 const char *file_copy);
1103 docopytruncate(struct opts *opts, const char *file, const char *file_copy)
1116 (void) out("# copy %s to %s\n", file, file_copy);
1136 if ((fo = open(file_copy, O_CREAT|O_TRUNC|O_WRONLY, s.st_mode)) < 0) {
1137 err(EF_SYS, "cannot create file: %s", file_copy);
1167 (void) remove(file_copy);
1207 err(EF_SYS, "cannot write into file %s", file_copy);
1210 (void) remove(file_copy);
1225 err(EF_SYS, "cannot write into file %s", file_copy);
1230 (void) remove(file_copy);
1249 (void) utime(file_copy, ×);