/freebsd-10.0-release/usr.bin/xinstall/ |
H A D | xinstall.c | 721 int tempcopy, temp_fd, to_fd; local 727 to_fd = -1; 784 if ((to_fd = open(to_name, O_RDONLY, 0)) < 0) 790 (size_t)from_sb.st_size, to_fd, 795 (void)close(to_fd); 800 to_fd = create_tempfile(to_name, tempfile, 802 if (to_fd < 0) 805 if ((to_fd = create_newfile(to_name, target, 813 digestresult = copy(from_fd, from_name, to_fd, 826 close(to_fd); 1001 compare(int from_fd, const char *from_name __unused, size_t from_len, int to_fd, const char *to_name __unused, size_t to_len, char **dresp) argument 1144 copy(int from_fd, const char *from_name, int to_fd, const char *to_name, off_t size) argument [all...] |
/freebsd-10.0-release/bin/mv/ |
H A D | mv.c | 280 int nread, from_fd, to_fd; local 290 while ((to_fd = 299 if (write(to_fd, bp, (size_t)nread) != nread) { 308 (void)close(to_fd); 313 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) { 323 if (fchmod(to_fd, sbp->st_mode)) 330 preserve_fd_acls(from_fd, to_fd, from, to); 340 if (fchflags(to_fd, sbp->st_flags)) 350 if (close(to_fd)) {
|
/freebsd-10.0-release/contrib/nvi/ex/ |
H A D | tag.h | 29 int to_fd; /* to cscope: file descriptor. */ member in struct:_csc
|
H A D | ex_cscope.c | 442 csc->to_fd = to_cs[1];
|
/freebsd-10.0-release/bin/cp/ |
H A D | utils.c | 80 int ch, checkch, from_fd = 0, rcount, rval, to_fd = 0; local 126 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT, 131 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0); 135 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT, 139 if (to_fd == -1) { 163 wcount = write(to_fd, bufp, wresid); 208 wcount = write(to_fd, bufp, wresid); 248 if (pflag && setfile(fs, to_fd)) 250 if (pflag && preserve_fd_acls(from_fd, to_fd) != 0) 252 if (close(to_fd)) { [all...] |
/freebsd-10.0-release/contrib/llvm/lib/Support/Unix/ |
H A D | PathV2.inc | 165 AutoFD to_fd(to_file); 175 if ((sz = ::write(to_fd, buffer + sz_write, sz_read - sz_write)) < 0) { 186 if (::close(to_fd.take()) < 0) sz_read = -1;
|
/freebsd-10.0-release/usr.sbin/config/ |
H A D | main.c | 540 int from_fd, to_fd; local 547 if ((to_fd = open(to_name, O_RDONLY)) < 0) 553 if (!changed && fstat(to_fd, &to_sb) < 0) 565 q = mmap(NULL, tsize, PROT_READ, MAP_SHARED, to_fd, (off_t)0);
|
/freebsd-10.0-release/usr.sbin/nfsd/ |
H A D | nfsd.c | 1109 copy_stable(int from_fd, int to_fd) argument 1116 ret = lseek(to_fd, (off_t)0, SEEK_SET); 1118 ret = ftruncate(to_fd, (off_t)0); 1123 ret = write(to_fd, buf, cnt); 1128 ret = fsync(to_fd);
|
/freebsd-10.0-release/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 687 int from_fd, rcount, to_fd, wcount; local 691 if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) < 0) 694 wcount = write(to_fd, buf, rcount);
|