Lines Matching refs:to_name
89 char *flags, *to_name, *group = NULL, *owner = NULL; in main() local
188 no_target = stat(to_name = argv[argc - 1], &to_sb); in main()
190 for (; *argv != to_name; ++argv) in main()
191 install(*argv, to_name, fset, iflags | DIRECTORY); in main()
204 errc(1, EFTYPE, "%s", to_name); in main()
207 errx(1, "%s and %s are the same file", *argv, to_name); in main()
209 install(*argv, to_name, fset, iflags); in main()
219 install(char *from_name, char *to_name, u_long fset, u_int flags) in install() argument
239 to_name, in install()
241 to_name = pathbuf; in install()
248 if (stat(to_name, &to_sb) == 0) { in install()
252 warnc(EFTYPE, "%s", to_name); in install()
264 to_fd = create_tempfile(to_name, tempfile, sizeof(tempfile)); in install()
281 err(1, "stripping %s", to_name); in install()
292 if ((to_fd = open(to_name, O_RDONLY)) == -1) in install()
293 err(1, "%s", to_name); in install()
302 to_name, to_sb.st_size) == 0) { in install()
315 target_name = to_name; in install()
375 (void)chflags(to_name, to_sb.st_flags & ~(NOCHANGEBITS)); in install()
378 (void)snprintf(backup, PATH_MAX, "%s%s", to_name, in install()
381 if (rename(to_name, backup) == -1 && errno != ENOENT) { in install()
384 errx(1, "rename: %s to %s: %s", to_name, in install()
388 if (rename(tempfile, to_name) == -1 ) { in install()
392 to_name, strerror(serrno)); in install()
402 copy(int from_fd, char *from_name, int to_fd, char *to_name, off_t size, in copy() argument
416 err(1, "lseek: %s", to_name); in copy()
429 (void)unlink(to_name); in copy()
436 (void)unlink(to_name); in copy()
438 to_name, strerror(nw > 0 ? EIO : serrno)); in copy()
462 (void)unlink(to_name); in copy()
464 to_name, strerror(nw > 0 ? EIO : serrno)); in copy()
471 (void)unlink(to_name); in copy()
483 const char *to_name, off_t to_len) in compare() argument
511 err(1, "%s", to_name); in compare()
535 strip(char *to_name) in strip() argument
547 (void)unlink(to_name); in strip()
550 execl(path_strip, "strip", "--", to_name, (char *)NULL); in strip()
559 (void)unlink(to_name); in strip()