• Home
  • Raw
  • Download

Lines Matching refs:to

97 	const char *to;  member
108 fi->from, fi->to, written, fi->size, pcent); in progress()
142 (void)fprintf(stderr, "overwrite %s? ", to.p_path); in copy_file()
153 lstat(to.p_path, &sb) : stat(to.p_path, &sb); in copy_file()
155 warn("stat: %s", to.p_path); in copy_file()
161 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0); in copy_file()
163 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT, in copy_file()
171 (void)unlink(to.p_path); in copy_file()
172 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT, in copy_file()
177 warn("%s", to.p_path); in copy_file()
188 (void)unlink(to.p_path); in copy_file()
189 if (link(entp->fts_path, to.p_path)) { in copy_file()
190 warn("%s", to.p_path); in copy_file()
205 fi.to = to.p_path; in copy_file()
242 warn("%s", to.p_path); in copy_file()
263 warn("%s", to.p_path); in copy_file()
280 warn("%s: error copying extended attributes", to.p_path); in copy_file()
301 warn("%s", to.p_path); in copy_file()
305 warn("%s", to.p_path); in copy_file()
310 warn("%s", to.p_path); in copy_file()
314 if (pflag && set_utimes(to.p_path, fs)) { in copy_file()
331 if (exists && unlink(to.p_path)) { in copy_link()
332 warn("unlink: %s", to.p_path); in copy_link()
335 if (symlink(target, to.p_path)) { in copy_link()
345 if (exists && unlink(to.p_path)) { in copy_fifo()
346 warn("unlink: %s", to.p_path); in copy_fifo()
349 if (mkfifo(to.p_path, from_stat->st_mode)) { in copy_fifo()
350 warn("mkfifo: %s", to.p_path); in copy_fifo()
359 if (exists && unlink(to.p_path)) { in copy_special()
360 warn("unlink: %s", to.p_path); in copy_special()
363 if (mknod(to.p_path, from_stat->st_mode, from_stat->st_rdev)) { in copy_special()
364 warn("mknod: %s", to.p_path); in copy_special()
396 lchown(to.p_path, fs->st_uid, fs->st_gid)) {
398 warn("chown: %s", to.p_path);
404 if (fd ? fchmod(fd, fs->st_mode) : chmod(to.p_path, fs->st_mode)) {
406 if (fd ? fchmod(fd, fs->st_mode) : lchmod(to.p_path, fs->st_mode)) {
408 warn("chmod: %s", to.p_path);
425 chflags(to.p_path, fflags)) == -1)
427 warn("chflags: %s", to.p_path);
433 if (fd == 0 && set_utimes(to.p_path, fs))