Searched refs:to_fd (Results 1 - 7 of 7) sorted by relevance
/netbsd-6-1-5-RELEASE/bin/cp/ |
H A D | utils.c | 98 int ch, checkch, from_fd, rcount, rval, to_fd, tolnk, wcount; local 107 to_fd = -1; 143 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0); 145 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT, 148 if (to_fd == -1 && (fflag || tolnk)) { 154 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT, 158 if (to_fd == -1) { 169 (void)close(to_fd); 222 if (write(to_fd, &p[fsize - remainder], 243 wcount = write(to_fd, bu [all...] |
/netbsd-6-1-5-RELEASE/bin/mv/ |
H A D | mv.c | 261 int nread, from_fd, to_fd; local 267 if ((to_fd = 277 (void)close(to_fd); 281 if (write(to_fd, bp, nread) != nread) { 290 (void)close(to_fd); 294 if (fcpxattr(from_fd, to_fd) == -1) 310 if (futimes(to_fd, tval)) 313 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) { 318 if (fchmod(to_fd, sbp->st_mode)) 320 if (fchflags(to_fd, sb [all...] |
/netbsd-6-1-5-RELEASE/dist/nvi/ex/ |
H A D | tag.h | 31 int to_fd; /* to cscope: file descriptor. */ member in struct:_csc
|
H A D | ex_cscope.c | 425 csc->to_fd = to_cs[1];
|
/netbsd-6-1-5-RELEASE/usr.bin/xinstall/ |
H A D | xinstall.c | 626 int devnull, from_fd, to_fd, serrno, tmpmode; local 696 if ((to_fd = mkstemp(to_name)) == -1) 699 if ((to_fd = open(to_name, 710 copy(from_fd, from_name, to_fd, to_name, from_sb.st_size); 721 close(to_fd); 722 if ((to_fd = open(to_name, O_RDONLY, S_IRUSR | S_IWUSR)) < 0) 728 if (fstat(to_fd, &to_sb) != 0) 732 copy(to_fd, to_name, -1, NULL, size); 743 close(to_fd); 744 if ((to_fd 812 copy(int from_fd, char *from_name, int to_fd, char *to_name, off_t size) argument [all...] |
/netbsd-6-1-5-RELEASE/lib/libc/gen/ |
H A D | extattr.c | 100 extattr_copy_fd(int from_fd, int to_fd, int namespace) argument 156 if (extattr_set_fd(to_fd, namespace, aname, 333 fcpxattr(int from_fd, int to_fd) argument 342 if ((error = extattr_copy_fd(from_fd, to_fd, *ns)) != 0)
|
/netbsd-6-1-5-RELEASE/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 643 int from_fd, to_fd; local 648 if ((to_fd = open(to, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) { 653 wcount = write(to_fd, buf, (size_t)rcount); 656 (void)close(to_fd); 662 if (close(to_fd))
|
Completed in 128 milliseconds