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

/freebsd-11-stable/contrib/nvi/ex/
H A Dtag.h27 int from_fd; /* from cscope: file descriptor. */ member in struct:_csc
H A Dex_cscope.c444 csc->from_fd = from_cs[0];
/freebsd-11-stable/bin/mv/
H A Dmv.c280 int nread, from_fd, to_fd; local
283 if ((from_fd = open(from, O_RDONLY, 0)) < 0) {
289 (void)close(from_fd);
297 (void)close(from_fd);
300 while ((nread = read(from_fd, bp, (size_t)blen)) > 0)
309 (void)close(from_fd);
332 preserve_fd_acls(from_fd, to_fd, from, to);
333 (void)close(from_fd);
/freebsd-11-stable/bin/cp/
H A Dutils.c84 int ch, checkch, from_fd, rcount, rval, to_fd; local
90 from_fd = to_fd = -1;
92 (from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) {
167 MAP_SHARED, from_fd, (off_t)0)) != MAP_FAILED) {
213 while ((rcount = read(from_fd, buf, bufsize)) > 0) {
263 if (pflag && preserve_fd_acls(from_fd, to_fd) != 0)
272 if (from_fd != -1)
273 (void)close(from_fd);
/freebsd-11-stable/usr.bin/xinstall/
H A Dxinstall.c753 int devnull, files_match, from_fd, serrno, stripped, target; local
760 from_fd = -1;
810 if (!devnull && (from_fd = open(from_name, O_RDONLY, 0)) < 0)
820 files_match = !(compare(from_fd, from_name,
848 digestresult = copy(from_fd, from_name, to_fd,
1030 (void)close(from_fd);
1043 compare(int from_fd, const char *from_name __unused, size_t from_len, argument
1062 if (trymmap(from_fd) && trymmap(to_fd)) {
1064 from_fd, (off_t)0);
1088 lseek(from_fd,
1199 copy(int from_fd, const char *from_name, int to_fd, const char *to_name, off_t size) argument
[all...]
/freebsd-11-stable/usr.sbin/config/
H A Dmain.c597 int from_fd, to_fd; local
601 if ((from_fd = open(from_name, O_RDONLY)) < 0)
607 if (!changed && fstat(from_fd, &from_sb) < 0)
619 p = mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, (off_t)0);
/freebsd-11-stable/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c697 int from_fd, rcount, to_fd, wcount; local
699 if ((from_fd = open(from, O_RDONLY, 0)) < 0)
703 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) {
/freebsd-11-stable/usr.sbin/nfsd/
H A Dnfsd.c1074 copy_stable(int from_fd, int to_fd) argument
1079 ret = lseek(from_fd, (off_t)0, SEEK_SET);
1086 cnt = read(from_fd, buf, 1024);
/freebsd-11-stable/contrib/llvm-project/libcxx/src/filesystem/
H A Doperations.cpp750 FileDescriptor from_fd = local
755 auto from_st = from_fd.get_status();
756 StatT const& from_stat = from_fd.get_stat();
825 if (!copy_file_impl(from_fd, to_fd, m_ec)) {

Completed in 196 milliseconds