Lines Matching refs:source

396 lnkfil(char *source, char *target)  in lnkfil()  argument
411 len = strlen(target) + strlen(dname(source)) + 4; in lnkfil()
415 "to %s %s\n"), cmd, cmd, source); in lnkfil()
419 target, dname(source)); in lnkfil()
465 if (symlink(source, target) < 0) { in lnkfil()
479 switch (chkfiles(source, &target)) { in lnkfil()
492 gettext("%s: %s is a directory\n"), cmd, source); in lnkfil()
500 if (link(source, target) < 0) { in lnkfil()
522 cpymve(char *source, char *target) in cpymve() argument
532 switch (chkfiles(source, &target)) { in cpymve()
567 cmd, source); in cpymve()
569 Perror(source); in cpymve()
575 rc = copydir(source, target); in cpymve()
587 Perror(source); in cpymve()
605 if (rename(source, target) >= 0) in cpymve()
611 cmd, source); in cpymve()
616 cmd, source, target); in cpymve()
630 " %s \n"), cmd, source, target); in cpymve()
648 if ((n = copydir(source, target)) == 0) in cpymve()
649 (void) rmdir(source); in cpymve()
657 "across file systems\n"), cmd, source); in cpymve()
665 "across file systems\n"), cmd, source); in cpymve()
687 if ((m = readlink(source, symln, in cpymve()
689 Perror(source); in cpymve()
765 m = readlink(source, symln, sizeof (symln) - 1); in cpymve()
768 Perror(source); in cpymve()
800 fi = open(source, O_RDONLY); in cpymve()
804 cmd, source); in cpymve()
868 cmd, source); in cpymve()
875 cmd, source, target); in cpymve()
879 if (writefile(fi, fo, source, target, NULL, in cpymve()
892 attret = copyattributes(source, target); in cpymve()
897 " %s\n"), cmd, source); in cpymve()
901 sattret = copy_sysattr(source, target); in cpymve()
948 source, (s1.st_mode & S_IFMT)); in cpymve()
952 if (unlink(source) < 0) { in cpymve()
956 cmd, source); in cpymve()
996 chkfiles(char *source, char **to) in chkfiles() argument
1007 if ((*statf)(source, &s1) < 0) { in chkfiles()
1014 (void) fprintf(stderr, "%s: %s: %s\n", cmd, source, in chkfiles()
1018 gettext("%s: cannot access %s\n"), cmd, source); in chkfiles()
1030 if ((error = acl_get(source, ACL_NO_TRIVIAL, &s1acl)) != 0) { in chkfiles()
1032 "%s: failed to get acl entries: %s\n", source, in chkfiles()
1057 len = strlen(target) + strlen(dname(source)) + 4; in chkfiles()
1061 "%s %s\n "), cmd, cmd, source); in chkfiles()
1065 target, dname(source)); in chkfiles()
1088 cmd, source, target); in chkfiles()
1101 if (!chk_different(source, target)) { in chkfiles()
1198 chk_different(char *source, char *target) in chk_different() argument
1207 if ((getrealpath(source, rsource) == 0) || in chk_different()
1214 cmd, source, target); in chk_different()
1475 copydir(char *source, char *target) argument
1489 gettext("%s: %s: is a directory\n"), cmd, source);
1540 ret = rcopy(source, target);
1581 attret = copyattributes(source, target);
1585 " %s\n"), cmd, source);
1594 sattret = copy_sysattr(source, target);
1599 "of directory %s\n"), cmd, source);
1641 copyattributes(char *source, char *target) argument
1653 if (pathconf(source, _PC_XATTR_EXISTS) != 1)
1666 if (open_source(source) != 0)
1668 if (open_target_srctarg_attrdirs(source, target) != 0)
1670 if (open_attrdirp(source) != 0)
1722 source, acl_strerror(aclerror));
1745 if ((ret = traverse_attrfile(dp, source, target, 1)) == -1)
1760 source, acl_strerror(aclerror));
1783 if (writefile(srcattrfd, targattrfd, source, target,
1880 copy_sysattr(char *source, char *target) argument
1887 if (sysattr_support(source, _PC_SATTR_EXISTS) != 1)
1890 if (open_source(source) != 0)
1899 response = sysattr_list(cmd, srcfd, source);
1917 if (open_target_srctarg_attrdirs(source,
1922 if (open_attrdirp(source) != 0) {
1933 if ((ret = traverse_attrfile(dp, source, target,
1961 dp->d_name, source, target);
1979 "%s to %s\n"), cmd, source, target);
2089 open_attrdirp(char *source) argument
2109 " file descriptor for %s: "), cmd, source);
2123 " directory for %s: "), cmd, source);
2136 traverse_attrfile(struct dirent *dp, char *source, char *target, int first) argument
2154 " file %s: "), cmd, dp->d_name, source);
2166 " %s: "), cmd, dp->d_name, source);