Home
last modified time | relevance | path

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

/freebsd/bin/mv/
H A Dmv.c263 int from_fd, to_fd; in fastcopy() local
266 if ((from_fd = open(from, O_RDONLY, 0)) < 0) { in fastcopy()
272 (void)close(from_fd); in fastcopy()
280 (void)close(from_fd); in fastcopy()
283 while ((nread = read(from_fd, bp, blen)) > 0) in fastcopy()
292 (void)close(from_fd); in fastcopy()
315 preserve_fd_acls(from_fd, to_fd, from, to); in fastcopy()
316 (void)close(from_fd); in fastcopy()
/freebsd/usr.bin/xinstall/
H A Dxinstall.c806 int devnull, files_match, from_fd, serrno, stripped, target; in install() local
813 from_fd = -1; in install()
849 if (!devnull && (from_fd = open(from_name, O_RDONLY, 0)) < 0) 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()
1082 compare(int from_fd, const char *from_name __unused, size_t from_len, in compare() argument
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()
[all …]
/freebsd/usr.sbin/config/
H A Dmain.cc589 int from_fd, to_fd; in moveifchanged() local
595 if ((from_fd = open(from_path, O_RDONLY)) < 0) in moveifchanged()
601 if (!changed && fstat(from_fd, &from_sb) < 0) in moveifchanged()
613 p = (char *)mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, in moveifchanged()
635 close(from_fd); in moveifchanged()
/freebsd/contrib/nvi/ex/
H A Dtag.h25 int from_fd; /* from cscope: file descriptor. */ member
H A Dex_cscope.c445 csc->from_fd = from_cs[0]; in run_cscope()
/freebsd/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c577 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 Doperations.cpp264 …FileDescriptor from_fd = FileDescriptor::create_with_status(&from, m_ec, O_RDONLY | O_NONBLOCK | O… in __copy_file() local
268 auto from_st = from_fd.get_status(); in __copy_file()
269 StatT const& from_stat = from_fd.get_stat(); in __copy_file()
335 if (!detail::copy_file_impl(from_fd, to_fd, m_ec)) { in __copy_file()
/freebsd/usr.sbin/nfsd/
H A Dnfsd.c1154 copy_stable(int from_fd, int to_fd) in copy_stable() argument
1159 ret = lseek(from_fd, (off_t)0, SEEK_SET); in copy_stable()
1166 cnt = read(from_fd, buf, 1024); in copy_stable()