Lines Matching refs:to
87 PATH_T to = { .p_end = to.p_path, .target_end = empty }; variable
212 if (strlcpy(to.p_path, target, sizeof(to.p_path)) >= sizeof(to.p_path)) in cp_main()
214 to.p_end = to.p_path + strlen(to.p_path); in cp_main()
215 have_trailing_slash = (to.p_end[-1] == '/'); in cp_main()
217 STRIP_TRAILING_SLASH(to); in cp_main()
218 to.target_end = to.p_end; in cp_main()
242 r = lstat(to.p_path, &to_stat); in cp_main()
244 r = stat(to.p_path, &to_stat); in cp_main()
246 err(EXIT_FAILURE, "%s", to.p_path); in cp_main()
282 to.p_path); in cp_main()
284 errx(1, "%s is not a directory", to.p_path); in cp_main()
365 to.target_end - to.p_path + 1) > MAXPATHLEN) { in copy()
367 to.p_path, curr->fts_name); in copy()
406 target_mid = to.target_end; in copy()
411 if (target_mid - to.p_path + nlen >= PATH_MAX) { in copy()
413 to.p_path, p); in copy()
418 to.p_end = target_mid + nlen; in copy()
419 *to.p_end = 0; in copy()
420 STRIP_TRAILING_SLASH(to); in copy()
423 sval = Pflag ? lstat(to.p_path, &to_stat) : stat(to.p_path, &to_stat); in copy()
431 to.p_path, curr->fts_path); in copy()
440 to.p_path, curr->fts_path); in copy()
486 if (mkdir(to.p_path, in copy()
489 to.p_path); in copy()
494 to.p_path); in copy()
509 (void)chmod(to.p_path, in copy()
544 (void)printf("%s -> %s\n", curr->fts_path, to.p_path); in copy()