Lines Matching refs:to

16  *    may be used to endorse or promote products derived from this software
97 const char *to;
108 fi->from, fi->to, written, fi->size, pcent);
131 * If the file DNE, set the mode to be the from file, minus setuid
142 (void)fprintf(stderr, "overwrite %s? ", to.p_path);
153 lstat(to.p_path, &sb) : stat(to.p_path, &sb);
155 warn("stat: %s", to.p_path);
161 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
163 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
168 * attempt to remove existing destination file name and
171 (void)unlink(to.p_path);
172 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
177 warn("%s", to.p_path);
188 (void)unlink(to.p_path);
189 if (link(entp->fts_path, to.p_path)) {
190 warn("%s", to.p_path);
198 * There's no reason to do anything other than close the file
205 fi.to = to.p_path;
229 * Write out the data in small chunks to
242 warn("%s", to.p_path);
263 warn("%s", to.p_path);
280 warn("%s: error copying extended attributes", to.p_path);
301 warn("%s", to.p_path);
305 warn("%s", to.p_path);
310 warn("%s", to.p_path);
314 if (pflag && set_utimes(to.p_path, fs)) {
331 if (exists && unlink(to.p_path)) {
332 warn("unlink: %s", to.p_path);
335 if (symlink(target, to.p_path)) {
345 if (exists && unlink(to.p_path)) {
346 warn("unlink: %s", to.p_path);
349 if (mkfifo(to.p_path, from_stat->st_mode)) {
350 warn("mkfifo: %s", to.p_path);
359 if (exists && unlink(to.p_path)) {
360 warn("unlink: %s", to.p_path);
363 if (mknod(to.p_path, from_stat->st_mode, from_stat->st_rdev)) {
364 warn("mknod: %s", to.p_path);
375 * Set the owner/group/permissions for the "to" file to the information
376 * in the stat structure. If fd is zero, also call set_utimes() to set
392 * the mode; current BSD behavior is to remove all setuid bits on
396 lchown(to.p_path, fs->st_uid, fs->st_gid)) {
398 warn("chown: %s", to.p_path);
404 if (fd ? fchmod(fd, fs->st_mode) : chmod(to.p_path, fs->st_mode)) {
406 if (fd ? fchmod(fd, fs->st_mode) : lchmod(to.p_path, fs->st_mode)) {
408 warn("chmod: %s", to.p_path);
418 * there's reason to believe we're losing bits.
420 * supports flags and we were trying to *remove* flags
425 chflags(to.p_path, fflags)) == -1)
427 warn("chflags: %s", to.p_path);
433 if (fd == 0 && set_utimes(to.p_path, fs))