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

/freebsd-13-stable/contrib/nvi/ex/
H A Dtag.h25 int from_fd; /* from cscope: file descriptor. */ member in struct:_csc
H A Dex_cscope.c438 csc->from_fd = from_cs[0];
/freebsd-13-stable/bin/cp/
H A Dutils.c78 copy_fallback(int from_fd, int to_fd, char *buf, size_t bufsize) argument
83 rcount = read(from_fd, buf, bufsize);
105 int ch, checkch, from_fd, rval, to_fd; local
112 from_fd = to_fd = -1;
114 (from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) {
189 MAP_SHARED, from_fd, (off_t)0)) != MAP_FAILED) {
237 rcount = copy_file_range(from_fd, NULL,
245 rcount = copy_fallback(from_fd, to_fd,
284 if (pflag && preserve_fd_acls(from_fd, to_fd) != 0)
293 if (from_fd !
[all...]
/freebsd-13-stable/bin/mv/
H A Dmv.c282 int nread, from_fd, to_fd; local
285 if ((from_fd = open(from, O_RDONLY, 0)) < 0) {
291 (void)close(from_fd);
299 (void)close(from_fd);
302 while ((nread = read(from_fd, bp, (size_t)blen)) > 0)
311 (void)close(from_fd);
334 preserve_fd_acls(from_fd, to_fd, from, to);
335 (void)close(from_fd);
/freebsd-13-stable/usr.bin/xinstall/
H A Dxinstall.c770 int devnull, files_match, from_fd, serrno, stripped, target; local
777 from_fd = -1;
829 if (!devnull && (from_fd = open(from_name, O_RDONLY, 0)) < 0)
839 files_match = !(compare(from_fd, from_name,
867 digestresult = copy(from_fd, from_name, to_fd,
1058 (void)close(from_fd);
1071 compare(int from_fd, const char *from_name __unused, size_t from_len, argument
1092 from_fd, (off_t)0);
1116 lseek(from_fd, 0, SEEK_SET);
1119 n1 = read(from_fd, buf
1233 copy(int from_fd, const char *from_name, int to_fd, const char *to_name, off_t size) argument
[all...]
/freebsd-13-stable/usr.sbin/config/
H A Dmain.c605 int from_fd, to_fd; local
609 if ((from_fd = open(from_name, O_RDONLY)) < 0)
615 if (!changed && fstat(from_fd, &from_sb) < 0)
627 p = mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, (off_t)0);
/freebsd-13-stable/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c588 int from_fd, rcount, to_fd, wcount; local
590 if ((from_fd = open(from, O_RDONLY, 0)) < 0)
594 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) {
/freebsd-13-stable/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);
/freebsd-13-stable/contrib/llvm-project/libcxx/src/filesystem/
H A Doperations.cpp746 FileDescriptor from_fd = local
751 auto from_st = from_fd.get_status();
752 StatT const& from_stat = from_fd.get_stat();
821 if (!copy_file_impl(from_fd, to_fd, m_ec)) {

Completed in 215 milliseconds