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

/freebsd-current/bin/cp/
H A Dutils.c71 copy_fallback(int from_fd, int to_fd) argument
87 rcount = read(from_fd, buf, bufsize);
106 int ch, checkch, from_fd, rval, to_fd; local
110 from_fd = to_fd = -1;
112 if ((from_fd = open(entp->fts_path, O_RDONLY, 0)) < 0 ||
113 fstat(from_fd, &sb) != 0) {
115 if (from_fd >= 0)
116 (void)close(from_fd);
129 (void)close(from_fd);
203 wcount = copy_file_range(from_fd, NUL
[all...]
/freebsd-current/contrib/nvi/ex/
H A Dtag.h25 int from_fd; /* from cscope: file descriptor. */ member in struct:_csc
H A Dex_cscope.c445 csc->from_fd = from_cs[0];
/freebsd-current/bin/mv/
H A Dmv.c268 int nread, from_fd, to_fd; local
271 if ((from_fd = open(from, O_RDONLY, 0)) < 0) {
277 (void)close(from_fd);
285 (void)close(from_fd);
288 while ((nread = read(from_fd, bp, (size_t)blen)) > 0)
297 (void)close(from_fd);
320 preserve_fd_acls(from_fd, to_fd, from, to);
321 (void)close(from_fd);
/freebsd-current/usr.bin/xinstall/
H A Dxinstall.c806 int devnull, files_match, from_fd, serrno, stripped, target; local
813 from_fd = -1;
849 if (!devnull && (from_fd = open(from_name, O_RDONLY, 0)) < 0)
859 files_match = !(compare(from_fd, from_name,
879 digestresult = copy(from_fd, from_name, to_fd,
1069 (void)close(from_fd);
1082 compare(int from_fd, const char *from_name __unused, size_t from_len, argument
1120 lseek(from_fd, 0, SEEK_SET);
1123 n1 = read(from_fd, buf1, bufsize);
1137 lseek(from_fd,
1178 copy(int from_fd, const char *from_name, int to_fd, const char *to_name, off_t size) argument
[all...]
/freebsd-current/usr.sbin/config/
H A Dmain.cc584 int from_fd, to_fd; local
590 if ((from_fd = open(from_path, O_RDONLY)) < 0)
596 if (!changed && fstat(from_fd, &from_sb) < 0)
608 p = (char *)mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd,
630 close(from_fd);
/freebsd-current/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c577 int from_fd, rcount, to_fd, wcount; local
579 if ((from_fd = open(from, O_RDONLY, 0)) < 0)
583 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) {
/freebsd-current/contrib/llvm-project/libcxx/src/filesystem/
H A Doperations.cpp267 FileDescriptor from_fd = FileDescriptor::create_with_status(&from, m_ec, O_RDONLY | O_NONBLOCK | O_BINARY); local
271 auto from_st = from_fd.get_status();
272 StatT const& from_stat = from_fd.get_stat();
338 if (!detail::copy_file_impl(from_fd, to_fd, m_ec)) {
/freebsd-current/usr.sbin/nfsd/
H A Dnfsd.c1126 copy_stable(int from_fd, int to_fd) argument
1131 ret = lseek(from_fd, (off_t)0, SEEK_SET);
1138 cnt = read(from_fd, buf, 1024);

Completed in 110 milliseconds