| /freebsd-14.2/bin/cp/ |
| H A D | utils.c | 77 copy_fallback(int from_fd, int to_fd) in copy_fallback() argument 93 rcount = read(from_fd, buf, bufsize); in copy_fallback() 112 int ch, checkch, from_fd, rval, to_fd; in copy_file() local 116 from_fd = to_fd = -1; in copy_file() 118 if ((from_fd = open(entp->fts_path, O_RDONLY, 0)) < 0 || in copy_file() 119 fstat(from_fd, &sb) != 0) { in copy_file() 206 wcount = copy_file_range(from_fd, NULL, in copy_file() 214 wcount = copy_fallback(from_fd, to_fd); in copy_file() 238 if (pflag && preserve_fd_acls(from_fd, to_fd) != 0) in copy_file() 246 if (from_fd != -1) in copy_file() [all …]
|
| /freebsd-14.2/bin/mv/ |
| H A D | mv.c | 280 int nread, from_fd, to_fd; in fastcopy() local 283 if ((from_fd = open(from, O_RDONLY, 0)) < 0) { in fastcopy() 289 (void)close(from_fd); in fastcopy() 297 (void)close(from_fd); in fastcopy() 300 while ((nread = read(from_fd, bp, (size_t)blen)) > 0) in fastcopy() 309 (void)close(from_fd); in fastcopy() 332 preserve_fd_acls(from_fd, to_fd, from, to); in fastcopy() 333 (void)close(from_fd); in fastcopy()
|
| /freebsd-14.2/usr.bin/xinstall/ |
| H A D | xinstall.c | 818 int devnull, files_match, from_fd, serrno, stripped, target; in install() local 825 from_fd = -1; in install() 871 files_match = !(compare(from_fd, from_name, in install() 891 digestresult = copy(from_fd, from_name, to_fd, in install() 1081 (void)close(from_fd); in install() 1132 lseek(from_fd, 0, SEEK_SET); in compare() 1135 n1 = read(from_fd, buf1, bufsize); in compare() 1149 lseek(from_fd, 0, SEEK_SET); in compare() 1203 if (lseek(from_fd, 0, SEEK_SET) < 0) in copy() 1212 ret = copy_file_range(from_fd, NULL, to_fd, NULL, in copy() [all …]
|
| /freebsd-14.2/usr.sbin/config/ |
| H A D | main.cc | 596 int from_fd, to_fd; in moveifchanged() local 602 if ((from_fd = open(from_path, O_RDONLY)) < 0) in moveifchanged() 608 if (!changed && fstat(from_fd, &from_sb) < 0) in moveifchanged() 620 p = (char *)mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, in moveifchanged() 642 close(from_fd); in moveifchanged()
|
| /freebsd-14.2/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-14.2/usr.sbin/pwd_mkdb/ |
| H A D | pwd_mkdb.c | 589 int from_fd, rcount, to_fd, wcount; in cp() local 591 if ((from_fd = open(from, O_RDONLY, 0)) < 0) in cp() 595 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) { in cp()
|
| /freebsd-14.2/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-14.2/usr.sbin/nfsd/ |
| H A D | nfsd.c | 1162 copy_stable(int from_fd, int to_fd) in copy_stable() argument 1167 ret = lseek(from_fd, (off_t)0, SEEK_SET); in copy_stable() 1174 cnt = read(from_fd, buf, 1024); in copy_stable()
|