Home
last modified time | relevance | path

Searched refs:from_fd (Results 1 – 9 of 9) sorted by relevance

/freebsd-12-stable/bin/mv/
Dmv.c282 int nread, from_fd, to_fd; in fastcopy() local
285 if ((from_fd = open(from, O_RDONLY, 0)) < 0) { in fastcopy()
291 (void)close(from_fd); in fastcopy()
299 (void)close(from_fd); in fastcopy()
302 while ((nread = read(from_fd, bp, (size_t)blen)) > 0) in fastcopy()
311 (void)close(from_fd); in fastcopy()
334 preserve_fd_acls(from_fd, to_fd, from, to); in fastcopy()
335 (void)close(from_fd); in fastcopy()
/freebsd-12-stable/bin/cp/
Dutils.c86 int ch, checkch, from_fd, rcount, rval, to_fd; in copy_file() local
92 from_fd = to_fd = -1; in copy_file()
94 (from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) { in copy_file()
169 MAP_SHARED, from_fd, (off_t)0)) != MAP_FAILED) { in copy_file()
215 while ((rcount = read(from_fd, buf, bufsize)) > 0) { in copy_file()
265 if (pflag && preserve_fd_acls(from_fd, to_fd) != 0) in copy_file()
274 if (from_fd != -1) in copy_file()
275 (void)close(from_fd); in copy_file()
/freebsd-12-stable/usr.bin/xinstall/
Dxinstall.c759 int devnull, files_match, from_fd, serrno, stripped, target; in install() local
766 from_fd = -1; in install()
818 if (!devnull && (from_fd = open(from_name, O_RDONLY, 0)) < 0) in install()
828 files_match = !(compare(from_fd, from_name, in install()
856 digestresult = copy(from_fd, from_name, to_fd, in install()
1047 (void)close(from_fd); in install()
1060 compare(int from_fd, const char *from_name __unused, size_t from_len, in compare() argument
1079 if (trymmap(from_fd) && trymmap(to_fd)) { in compare()
1081 from_fd, (off_t)0); in compare()
1105 lseek(from_fd, 0, SEEK_SET); in compare()
[all …]
/freebsd-12-stable/usr.sbin/config/
Dmain.c596 int from_fd, to_fd; in moveifchanged() local
600 if ((from_fd = open(from_name, O_RDONLY)) < 0) in moveifchanged()
606 if (!changed && fstat(from_fd, &from_sb) < 0) in moveifchanged()
618 p = mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, (off_t)0); in moveifchanged()
/freebsd-12-stable/contrib/nvi/ex/
Dtag.h25 int from_fd; /* from cscope: file descriptor. */ member
Dex_cscope.c445 csc->from_fd = from_cs[0]; in run_cscope()
/freebsd-12-stable/usr.sbin/pwd_mkdb/
Dpwd_mkdb.c599 int from_fd, rcount, to_fd, wcount; in cp() local
601 if ((from_fd = open(from, O_RDONLY, 0)) < 0) in cp()
605 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) { in cp()
/freebsd-12-stable/usr.sbin/nfsd/
Dnfsd.c1126 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()
/freebsd-12-stable/contrib/llvm-project/libcxx/src/filesystem/
Doperations.cpp900 FileDescriptor from_fd = FileDescriptor::create_with_status( in __copy_file() local
905 auto from_st = from_fd.get_status(); in __copy_file()
906 StatT const& from_stat = from_fd.get_stat(); in __copy_file()
975 if (!copy_file_impl(from_fd, to_fd, m_ec)) { in __copy_file()