Lines Matching defs:to

4  * The contents of this file are subject to the terms of the
24 * Use is subject to license terms.
106 static int Hflg = 0; /* follow cmd line arg symlink to dir */
296 * For BSD compatibility allow - to delimit the end of
400 "to %s %s\n"), cmd, cmd, source);
409 * Check to see if the file exists already.
418 * is used. If so, use unlink to remove the current
419 * target to replace with the new target, specified
447 * Create a symbolic link to the source.
538 * save the inode information to a search tree
539 * to avoid getting into an endless loop.
546 * to make sure we don't get into an
563 * Create a tnode to get an index to the matching
565 * then use the index to remove the matching node
600 gettext("%s: cannot rename %s to %s: "),
655 * File cannot be renamed, try to recreate the symbolic
759 * Copy the sym link to the target.
762 * with the source file, and return to
781 * Copy the file. If it happens to be a
819 * Set target's permissions to the source
836 "Failed to set "
880 "%s: Failed to preserve"
912 gettext("%s: Failed to "
981 chkfiles(char *source, char **to)
986 char *target = *to;
994 * Keep the old error message except when someone tries to
996 * points to a file.
1017 "%s: failed to get acl entries: %s\n", source,
1045 gettext("%s: Insufficient memory to "
1051 *to = target = buf;
1067 * hard links to the same file.
1084 * to same absolute pathname).
1103 * If the user does not have access to
1180 * return 0 when they are identical, or when unable to resolve a pathname
1225 rcopy(char *from, char *to)
1250 return (chg_time(to, s1save) + errs);
1268 errs += cpymve(fromname, to);
1286 * set name to start after last
1333 * Try to preserve modification and access time.
1339 * utimensat(2) is being used to achieve granularity in nanoseconds
1343 chg_time(char *to, struct stat ss)
1351 rc = utimensat(AT_FDCWD, to, times, 0);
1355 gettext("%s: cannot set times for %s: "), cmd, to);
1371 * Try to preserve the owner and group id. If chown() fails,
1373 * try to clear S_ISUID and S_ISGID bits in the target. If unable to clear
1376 * Try to preserve permissions.
1396 /* try to clear S_ISUID and S_ISGID */
1496 "Insufficient memory to save acl"
1505 "Insufficient memory to save acl"
1538 "%s: failed to set acl entries "
1557 (void) fprintf(stderr, gettext("%s: Failed to preserve"
1571 "%s: Failed to preserve "
1651 gettext("%s: failed to set file mode"
1662 gettext("%s: failed to set file"
1693 "%s: failed to get acl entries of"
1705 "%s: failed to set acl entries"
1731 "%s: failed to get acl entries of"
1747 "%s: failed to set acl entries on"
1779 /* try to clear S_ISUID and S_ISGID */
1816 "%s: failed to set acl entries on"
1851 /* Copy extended system attributes from source to target */
1869 * source file to copy to the target. The target has
1871 * to copy the defaults.
1916 * attribute file to copy to the target. The target has
1918 * to copy the defaults.
1933 "Failed to copy extended system "
1935 "%s of %s to %s\n"), cmd,
1949 /* Copy source file non default extended system attributes to target */
1953 (void) fprintf(stderr, gettext("%s: Failed to "
1955 "%s to %s\n"), cmd, source, target);
2085 "%s: unable to dup attribute directory"
2099 gettext("%s: failed to open attribute"
2215 "failed to rewind attribute dir\n"),