Home
last modified time | relevance | path

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

/freebsd-13.1/bin/cp/
H A Dutils.c78 copy_fallback(int from_fd, int to_fd, char *buf, size_t bufsize) in copy_fallback() argument
83 rcount = read(from_fd, buf, bufsize); in copy_fallback()
105 int ch, checkch, from_fd, rval, to_fd; in copy_file() local
112 from_fd = to_fd = -1; in copy_file()
114 (from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) { in copy_file()
189 MAP_SHARED, from_fd, (off_t)0)) != MAP_FAILED) { in copy_file()
237 rcount = copy_file_range(from_fd, NULL, in copy_file()
245 rcount = copy_fallback(from_fd, to_fd, in copy_file()
284 if (pflag && preserve_fd_acls(from_fd, to_fd) != 0) in copy_file()
293 if (from_fd != -1) in copy_file()
[all …]
/freebsd-13.1/bin/mv/
H A 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-13.1/usr.bin/xinstall/
H A Dxinstall.c777 from_fd = -1; in install()
839 files_match = !(compare(from_fd, from_name, in install()
867 digestresult = copy(from_fd, from_name, to_fd, in install()
1058 (void)close(from_fd); in install()
1092 from_fd, (off_t)0); in compare()
1116 lseek(from_fd, 0, SEEK_SET); in compare()
1119 n1 = read(from_fd, buf1, sizeof(buf1)); in compare()
1133 lseek(from_fd, 0, SEEK_SET); in compare()
1244 if (lseek(from_fd, (off_t)0, SEEK_SET) == (off_t)-1) in copy()
1254 from_fd, (off_t)0)) != MAP_FAILED) { in copy()
[all …]
/freebsd-13.1/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-13.1/usr.sbin/config/
H A Dmain.c605 int from_fd, to_fd; in moveifchanged() local
609 if ((from_fd = open(from_name, O_RDONLY)) < 0) in moveifchanged()
615 if (!changed && fstat(from_fd, &from_sb) < 0) in moveifchanged()
627 p = mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, (off_t)0); in moveifchanged()
/freebsd-13.1/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c588 int from_fd, rcount, to_fd, wcount; in cp() local
590 if ((from_fd = open(from, O_RDONLY, 0)) < 0) in cp()
594 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) { in cp()
/freebsd-13.1/usr.sbin/nfsd/
H A 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-13.1/contrib/llvm-project/libcxx/src/filesystem/
H A 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()