/freebsd/bin/cp/ |
H A D | utils.c | 71 copy_fallback(int from_fd, int to_fd) in copy_fallback() argument 87 rcount = read(from_fd, buf, bufsize); in copy_fallback() 106 int ch, checkch, from_fd, rval, to_fd; in copy_file() local 110 from_fd = to_fd = -1; in copy_file() 113 fstat(from_fd, &sb) != 0) { in copy_file() 115 if (from_fd >= 0) in copy_file() 116 (void)close(from_fd); in copy_file() 129 (void)close(from_fd); in copy_file() 203 wcount = copy_file_range(from_fd, NULL, in copy_file() 243 if (from_fd != -1) in copy_file() [all …]
|
/freebsd/bin/mv/ |
H A D | mv.c | 268 int nread, from_fd, to_fd; in fastcopy() local 271 if ((from_fd = open(from, O_RDONLY, 0)) < 0) { in fastcopy() 277 (void)close(from_fd); in fastcopy() 285 (void)close(from_fd); in fastcopy() 288 while ((nread = read(from_fd, bp, (size_t)blen)) > 0) in fastcopy() 297 (void)close(from_fd); in fastcopy() 320 preserve_fd_acls(from_fd, to_fd, from, to); in fastcopy() 321 (void)close(from_fd); in fastcopy()
|
/freebsd/usr.bin/xinstall/ |
H A D | xinstall.c | 806 int devnull, files_match, from_fd, serrno, stripped, target; in install() local 813 from_fd = -1; in install() 859 files_match = !(compare(from_fd, from_name, in install() 879 digestresult = copy(from_fd, from_name, to_fd, in install() 1069 (void)close(from_fd); in install() 1120 lseek(from_fd, 0, SEEK_SET); in compare() 1123 n1 = read(from_fd, buf1, bufsize); in compare() 1137 lseek(from_fd, 0, SEEK_SET); in compare() 1191 if (lseek(from_fd, 0, SEEK_SET) < 0) in copy() 1200 ret = copy_file_range(from_fd, NULL, to_fd, NULL, in copy() [all …]
|
/freebsd/usr.sbin/config/ |
H A D | main.cc | 584 int from_fd, to_fd; in moveifchanged() local 590 if ((from_fd = open(from_path, O_RDONLY)) < 0) in moveifchanged() 596 if (!changed && fstat(from_fd, &from_sb) < 0) in moveifchanged() 608 p = (char *)mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, in moveifchanged() 630 close(from_fd); in moveifchanged()
|
/freebsd/contrib/nvi/ex/ |
H A D | tag.h | 25 int from_fd; /* from cscope: file descriptor. */ member
|
H A D | ex_cscope.c | 445 csc->from_fd = from_cs[0]; in run_cscope()
|
/freebsd/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 577 int from_fd, rcount, to_fd, wcount; in cp() local 579 if ((from_fd = open(from, O_RDONLY, 0)) < 0) in cp() 583 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) { in cp()
|
/freebsd/contrib/llvm-project/libcxx/src/filesystem/ |
H A D | operations.cpp | 267 …FileDescriptor from_fd = FileDescriptor::create_with_status(&from, m_ec, O_RDONLY | O_NONBLOCK | O… in __copy_file() local 271 auto from_st = from_fd.get_status(); in __copy_file() 272 StatT const& from_stat = from_fd.get_stat(); in __copy_file() 338 if (!detail::copy_file_impl(from_fd, to_fd, m_ec)) { in __copy_file()
|
/freebsd/usr.sbin/nfsd/ |
H A D | nfsd.c | 1126 copy_stable(int from_fd, int to_fd) in copy_stable() argument 1131 ret = lseek(from_fd, (off_t)0, SEEK_SET); in copy_stable() 1138 cnt = read(from_fd, buf, 1024); in copy_stable()
|