Lines Matching refs:source

392 lnkfil(char *source, char *target)  in lnkfil()  argument
407 len = strlen(target) + strlen(dname(source)) + 4; in lnkfil()
411 "to %s %s\n"), cmd, cmd, source); in lnkfil()
415 target, dname(source)); in lnkfil()
461 if (symlink(source, target) < 0) { in lnkfil()
475 switch (chkfiles(source, &target)) { in lnkfil()
488 gettext("%s: %s is a directory\n"), cmd, source); in lnkfil()
496 if (link(source, target) < 0) { in lnkfil()
518 cpymve(char *source, char *target) in cpymve() argument
528 switch (chkfiles(source, &target)) { in cpymve()
563 cmd, source); in cpymve()
565 Perror(source); in cpymve()
571 rc = copydir(source, target); in cpymve()
583 Perror(source); in cpymve()
601 if (rename(source, target) >= 0) in cpymve()
607 cmd, source); in cpymve()
612 cmd, source, target); in cpymve()
626 " %s \n"), cmd, source, target); in cpymve()
644 if ((n = copydir(source, target)) == 0) in cpymve()
645 (void) rmdir(source); in cpymve()
653 "across file systems\n"), cmd, source); in cpymve()
661 "across file systems\n"), cmd, source); in cpymve()
683 if ((m = readlink(source, symln, in cpymve()
685 Perror(source); in cpymve()
761 m = readlink(source, symln, sizeof (symln) - 1); in cpymve()
764 Perror(source); in cpymve()
796 fi = open(source, O_RDONLY); in cpymve()
800 cmd, source); in cpymve()
864 cmd, source); in cpymve()
871 cmd, source, target); in cpymve()
875 if (writefile(fi, fo, source, target, NULL, in cpymve()
888 attret = copyattributes(source, target); in cpymve()
893 " %s\n"), cmd, source); in cpymve()
897 sattret = copy_sysattr(source, target); in cpymve()
944 source, (s1.st_mode & S_IFMT)); in cpymve()
948 if (unlink(source) < 0) { in cpymve()
952 cmd, source); in cpymve()
992 chkfiles(char *source, char **to) in chkfiles() argument
1003 if ((*statf)(source, &s1) < 0) { in chkfiles()
1010 (void) fprintf(stderr, "%s: %s: %s\n", cmd, source, in chkfiles()
1014 gettext("%s: cannot access %s\n"), cmd, source); in chkfiles()
1026 if ((error = acl_get(source, ACL_NO_TRIVIAL, &s1acl)) != 0) { in chkfiles()
1028 "%s: failed to get acl entries: %s\n", source, in chkfiles()
1053 len = strlen(target) + strlen(dname(source)) + 4; in chkfiles()
1057 "%s %s\n "), cmd, cmd, source); in chkfiles()
1061 target, dname(source)); in chkfiles()
1084 cmd, source, target); in chkfiles()
1097 if (!chk_different(source, target)) { in chkfiles()
1194 chk_different(char *source, char *target) in chk_different() argument
1203 if ((getrealpath(source, rsource) == 0) || in chk_different()
1210 cmd, source, target); in chk_different()
1466 copydir(char *source, char *target) argument
1480 gettext("%s: %s: is a directory\n"), cmd, source);
1531 ret = rcopy(source, target);
1572 attret = copyattributes(source, target);
1576 " %s\n"), cmd, source);
1585 sattret = copy_sysattr(source, target);
1590 "of directory %s\n"), cmd, source);
1632 copyattributes(char *source, char *target) argument
1644 if (pathconf(source, _PC_XATTR_EXISTS) != 1)
1657 if (open_source(source) != 0)
1659 if (open_target_srctarg_attrdirs(source, target) != 0)
1661 if (open_attrdirp(source) != 0)
1713 source, acl_strerror(aclerror));
1736 if ((ret = traverse_attrfile(dp, source, target, 1)) == -1)
1751 source, acl_strerror(aclerror));
1774 if (writefile(srcattrfd, targattrfd, source, target,
1871 copy_sysattr(char *source, char *target) argument
1878 if (sysattr_support(source, _PC_SATTR_EXISTS) != 1)
1881 if (open_source(source) != 0)
1890 response = sysattr_list(cmd, srcfd, source);
1908 if (open_target_srctarg_attrdirs(source,
1913 if (open_attrdirp(source) != 0) {
1924 if ((ret = traverse_attrfile(dp, source, target,
1953 dp->d_name, source, target);
1971 "%s to %s\n"), cmd, source, target);
2081 open_attrdirp(char *source) argument
2101 " file descriptor for %s: "), cmd, source);
2115 " directory for %s: "), cmd, source);
2128 traverse_attrfile(struct dirent *dp, char *source, char *target, int first) argument
2146 " file %s: "), cmd, dp->d_name, source);
2158 " %s: "), cmd, dp->d_name, source);