Lines Matching refs:source

623 lnkfil(const char *source, char *target)  in lnkfil()  argument
637 len = strlen(target) + strlen(dname(source)) + 4; in lnkfil()
641 "to %s %s\n"), cmd, cmd, source); in lnkfil()
645 target, dname(source)); in lnkfil()
709 if (symlink(source, target) < 0) { in lnkfil()
723 switch (chkfiles(source, &target)) { in lnkfil()
738 gettext("%s: %s is a directory\n"), cmd, source); in lnkfil()
749 if (linkat(AT_FDCWD, source, AT_FDCWD, target, flags) < 0) { in lnkfil()
771 cpymve(const char *source, char *target) in cpymve() argument
780 switch (chkfiles(source, &target)) { in cpymve()
818 cmd, source); in cpymve()
820 Perror(source); in cpymve()
826 rc = copydir(source, target); in cpymve()
838 Perror(source); in cpymve()
856 if (rename(source, target) >= 0) in cpymve()
862 cmd, source); in cpymve()
867 cmd, source, target); in cpymve()
881 " %s \n"), cmd, source, target); in cpymve()
899 if ((n = copydir(source, target)) == 0) in cpymve()
900 (void) rmdir(source); in cpymve()
908 "across file systems\n"), cmd, source); in cpymve()
916 "across file systems\n"), cmd, source); in cpymve()
938 if ((m = readlink(source, symln, in cpymve()
940 Perror(source); in cpymve()
1016 m = readlink(source, symln, sizeof (symln) - 1); in cpymve()
1019 Perror(source); in cpymve()
1051 fi = open(source, O_RDONLY); in cpymve()
1055 cmd, source); in cpymve()
1119 cmd, source); in cpymve()
1126 cmd, source, target); in cpymve()
1130 if (writefile(fi, fo, source, target, NULL, in cpymve()
1143 attret = copyattributes(source, target); in cpymve()
1148 " %s\n"), cmd, source); in cpymve()
1152 sattret = copy_sysattr(source, target); in cpymve()
1199 source, (s1.st_mode & S_IFMT)); in cpymve()
1203 if (unlink(source) < 0) { in cpymve()
1207 cmd, source); in cpymve()
1247 chkfiles(const char *source, char **to) in chkfiles() argument
1267 if ((*statf)(source, &s1) < 0) { in chkfiles()
1274 (void) fprintf(stderr, "%s: %s: %s\n", cmd, source, in chkfiles()
1278 gettext("%s: cannot access %s\n"), cmd, source); in chkfiles()
1290 if ((error = acl_get(source, ACL_NO_TRIVIAL, &s1acl)) != 0) { in chkfiles()
1292 "%s: failed to get acl entries: %s\n", source, in chkfiles()
1317 len = strlen(target) + strlen(dname(source)) + 4; in chkfiles()
1321 "%s %s\n "), cmd, cmd, source); in chkfiles()
1325 target, dname(source)); in chkfiles()
1349 cmd, source, target); in chkfiles()
1362 if (!chk_different(source, target)) { in chkfiles()
1511 chk_different(const char *source, const char *target) in chk_different() argument
1520 if ((getrealpath(source, rsource) == 0) || in chk_different()
1527 cmd, source, target); in chk_different()
1789 copydir(const char *source, char *target) argument
1803 gettext("%s: %s: is a directory\n"), cmd, source);
1854 ret = rcopy(source, target);
1895 attret = copyattributes(source, target);
1899 " %s\n"), cmd, source);
1908 sattret = copy_sysattr(source, target);
1913 "of directory %s\n"), cmd, source);
1955 copyattributes(const char *source, const char *target) argument
1967 if (pathconf(source, _PC_XATTR_EXISTS) != 1)
1980 if (open_source(source) != 0)
1982 if (open_target_srctarg_attrdirs(source, target) != 0)
1984 if (open_attrdirp(source) != 0)
2036 source, acl_strerror(aclerror));
2059 if ((ret = traverse_attrfile(dp, source, target, 1)) == -1)
2074 source, acl_strerror(aclerror));
2097 if (writefile(srcattrfd, targattrfd, source, target,
2194 copy_sysattr(const char *source, const char *target) argument
2201 if (sysattr_support(source, _PC_SATTR_EXISTS) != 1)
2204 if (open_source(source) != 0)
2213 response = sysattr_list(cmd, srcfd, source);
2231 if (open_target_srctarg_attrdirs(source,
2236 if (open_attrdirp(source) != 0) {
2247 if ((ret = traverse_attrfile(dp, source, target,
2275 dp->d_name, source, target);
2293 "%s to %s\n"), cmd, source, target);
2403 open_attrdirp(const char *source) argument
2423 " file descriptor for %s: "), cmd, source);
2437 " directory for %s: "), cmd, source);
2450 traverse_attrfile(struct dirent *dp, const char *source, const char *target, argument
2469 " file %s: "), cmd, dp->d_name, source);
2481 " %s: "), cmd, dp->d_name, source);