Searched refs:to_fd (Results 1 – 7 of 7) sorted by relevance
/minix/bin/cp/ |
H A D | utils.c | 107 to_fd = -1; in copy_file() 148 if (to_fd == -1 && (fflag || tolnk)) { in copy_file() 158 if (to_fd == -1) { in copy_file() 169 (void)close(to_fd); in copy_file() 224 if (write(to_fd, &p[fsize - remainder], in copy_file() 245 wcount = write(to_fd, buf, (size_t)rcount); in copy_file() 263 if (pflag && (fcpxattr(from_fd, to_fd) != 0)) in copy_file() 270 (void)close(to_fd); in copy_file() 274 if (pflag && setfile(fs, to_fd)) in copy_file() 284 if (fstat(to_fd, &to_stat)) { in copy_file() [all …]
|
/minix/bin/mv/ |
H A D | mv.c | 265 int nread, from_fd, to_fd; in fastcopy() local 271 if ((to_fd = in fastcopy() 281 (void)close(to_fd); in fastcopy() 285 if (write(to_fd, bp, nread) != nread) { in fastcopy() 294 (void)close(to_fd); in fastcopy() 299 if (fcpxattr(from_fd, to_fd) == -1) in fastcopy() 322 if (futimens(to_fd, ts)) in fastcopy() 324 if (futimes(to_fd, tval)) in fastcopy() 328 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) { in fastcopy() 333 if (fchmod(to_fd, sbp->st_mode)) in fastcopy() [all …]
|
/minix/usr.bin/xinstall/ |
H A D | xinstall.c | 706 if ((to_fd = mkstemp(to_name)) == -1) in install() 709 if ((to_fd = open(to_name, in install() 731 close(to_fd); in install() 738 if (fstat(to_fd, &to_sb) != 0) in install() 753 close(to_fd); in install() 771 if (fchmod(to_fd, tmpmode) == -1) { in install() 782 if (futimes(to_fd, tv) == -1) in install() 790 (void)close(to_fd); in install() 857 if (to_fd < 0) in copy() 886 if (to_fd >= 0 && write(to_fd, p, size) != size) { in copy() [all …]
|
/minix/lib/libc/gen/ |
H A D | extattr.c | 100 extattr_copy_fd(int from_fd, int to_fd, int namespace) in extattr_copy_fd() argument 156 if (extattr_set_fd(to_fd, namespace, aname, in extattr_copy_fd() 333 fcpxattr(int from_fd, int to_fd) in fcpxattr() argument 342 if ((error = extattr_copy_fd(from_fd, to_fd, *ns)) != 0) in fcpxattr()
|
/minix/external/bsd/nvi/dist/ex/ |
H A D | tag.h | 30 int to_fd; /* to cscope: file descriptor. */ member
|
H A D | ex_cscope.c | 429 csc->to_fd = to_cs[1]; in run_cscope()
|
/minix/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 646 int from_fd, to_fd; in cp() local 651 if ((to_fd = open(to, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) { in cp() 656 wcount = write(to_fd, buf, (size_t)rcount); in cp() 659 (void)close(to_fd); in cp() 665 if (close(to_fd)) in cp()
|