| /freebsd-12.1/bin/mv/ |
| H A D | mv.c | 282 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-12.1/bin/cp/ |
| H A D | utils.c | 86 int ch, checkch, from_fd, rcount, rval, to_fd; in copy_file() local 92 from_fd = to_fd = -1; in copy_file() 94 (from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) { in copy_file() 169 MAP_SHARED, from_fd, (off_t)0)) != MAP_FAILED) { in copy_file() 215 while ((rcount = read(from_fd, buf, bufsize)) > 0) { in copy_file() 265 if (pflag && preserve_fd_acls(from_fd, to_fd) != 0) in copy_file() 274 if (from_fd != -1) in copy_file() 275 (void)close(from_fd); in copy_file()
|
| /freebsd-12.1/usr.bin/xinstall/ |
| H A D | xinstall.c | 765 from_fd = -1; in install() 827 files_match = !(compare(from_fd, from_name, in install() 851 digestresult = copy(from_fd, from_name, to_fd, in install() 1041 (void)close(from_fd); in install() 1069 if (trymmap(from_fd) && trymmap(to_fd)) { in compare() 1071 from_fd, (off_t)0); in compare() 1095 lseek(from_fd, 0, SEEK_SET); in compare() 1098 n1 = read(from_fd, buf1, sizeof(buf1)); in compare() 1111 lseek(from_fd, 0, SEEK_SET); in compare() 1235 if (size <= 8 * 1048576 && trymmap(from_fd) && in copy() [all …]
|
| /freebsd-12.1/usr.sbin/config/ |
| H A D | main.c | 568 int from_fd, to_fd; in moveifchanged() local 572 if ((from_fd = open(from_name, O_RDONLY)) < 0) in moveifchanged() 578 if (!changed && fstat(from_fd, &from_sb) < 0) in moveifchanged() 590 p = mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, (off_t)0); in moveifchanged()
|
| /freebsd-12.1/contrib/nvi/ex/ |
| H A D | tag.h | 27 int from_fd; /* from cscope: file descriptor. */ member
|
| H A D | ex_cscope.c | 444 csc->from_fd = from_cs[0]; in run_cscope()
|
| /freebsd-12.1/usr.sbin/pwd_mkdb/ |
| H A D | pwd_mkdb.c | 596 int from_fd, rcount, to_fd, wcount; in cp() local 598 if ((from_fd = open(from, O_RDONLY, 0)) < 0) in cp() 602 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) { in cp()
|
| /freebsd-12.1/usr.sbin/nfsd/ |
| H A D | nfsd.c | 1120 copy_stable(int from_fd, int to_fd) in copy_stable() argument 1125 ret = lseek(from_fd, (off_t)0, SEEK_SET); in copy_stable() 1132 cnt = read(from_fd, buf, 1024); in copy_stable()
|
| /freebsd-12.1/contrib/libc++/src/filesystem/ |
| H A D | operations.cpp | 739 FileDescriptor from_fd = in __copy_file() local 744 auto from_st = from_fd.get_status(); in __copy_file() 745 StatT const& from_stat = from_fd.get_stat(); in __copy_file() 814 if (!copy_file_impl(from_fd, to_fd, m_ec)) { in __copy_file()
|