Home | History | Annotate | Download | only in cp

Lines Matching defs:to_fd

103 	int ch, checkch, from_fd, rcount, rval, to_fd, tolnk, wcount;
122 to_fd = -1;
158 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
160 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
163 if (to_fd == -1 && (fflag || tolnk)) {
169 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
173 if (to_fd == -1) {
221 if (write(to_fd, &p[fsize - remainder],
242 wcount = write(to_fd, buf, (size_t)rcount);
258 if (pflag && (fcpxattr(from_fd, to_fd) != 0))
262 if (pflag && preserve_fd_acls(from_fd, to_fd) != 0)
269 (void)close(to_fd);
273 if (pflag && setfile(fs, to_fd))
283 if (fstat(to_fd, &to_stat)) {
287 fchmod(to_fd, fs->st_mode & RETAINBITS & ~myumask)) {
292 if (close(to_fd)) {