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

/freebsd-13-stable/bin/mv/
H A Dmv.c282 int nread, from_fd, to_fd; local
294 while ((to_fd =
303 if (write(to_fd, bp, (size_t)nread) != nread) {
312 (void)close(to_fd);
317 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
327 if (fchmod(to_fd, sbp->st_mode))
334 preserve_fd_acls(from_fd, to_fd, from, to);
343 if (fstat(to_fd, &tsb) == 0) {
346 if (fchflags(to_fd,
358 if (futimens(to_fd, t
[all...]
/freebsd-13-stable/bin/cp/
H A Dutils.c78 copy_fallback(int from_fd, int to_fd, char *buf, size_t bufsize) argument
87 wcount = write(to_fd, bufp, wresid);
105 int ch, checkch, from_fd, rval, to_fd; local
112 from_fd = to_fd = -1;
156 to_fd = open(to.p_path,
162 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
165 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
169 if (!lflag && !sflag && to_fd == -1) {
193 wcount = write(to_fd, bufp, wresid);
238 to_fd, NUL
[all...]
/freebsd-13-stable/usr.bin/xinstall/
H A Dxinstall.c771 int tempcopy, temp_fd, to_fd; local
778 to_fd = -1;
834 if ((to_fd = open(to_name, O_RDONLY, 0)) < 0)
840 (size_t)from_sb.st_size, to_fd,
845 (void)close(to_fd);
850 to_fd = create_tempfile(to_name, tempfile,
852 if (to_fd < 0)
855 if ((to_fd = create_newfile(to_name, target,
865 to_fd, from_name, &digestresult);
867 digestresult = copy(from_fd, from_name, to_fd,
1071 compare(int from_fd, const char *from_name __unused, size_t from_len, int to_fd, const char *to_name __unused, size_t to_len, char **dresp) argument
1233 copy(int from_fd, const char *from_name, int to_fd, const char *to_name, off_t size) argument
1314 strip(const char *to_name, int to_fd, const char *from_name, char **dresp) argument
[all...]
/freebsd-13-stable/contrib/nvi/ex/
H A Dtag.h27 int to_fd; /* to cscope: file descriptor. */ member in struct:_csc
H A Dex_cscope.c436 csc->to_fd = to_cs[1];
/freebsd-13-stable/usr.sbin/config/
H A Dmain.c605 int from_fd, to_fd; local
612 if ((to_fd = open(to_name, O_RDONLY)) < 0)
618 if (!changed && fstat(to_fd, &to_sb) < 0)
630 q = mmap(NULL, tsize, PROT_READ, MAP_SHARED, to_fd, (off_t)0);
/freebsd-13-stable/usr.sbin/nfsd/
H A Dnfsd.c1126 copy_stable(int from_fd, int to_fd) argument
1133 ret = lseek(to_fd, (off_t)0, SEEK_SET);
1135 ret = ftruncate(to_fd, (off_t)0);
1140 ret = write(to_fd, buf, cnt);
1145 ret = fsync(to_fd);
/freebsd-13-stable/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c588 int from_fd, rcount, to_fd, wcount; local
592 if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) < 0)
595 wcount = write(to_fd, buf, rcount);
/freebsd-13-stable/contrib/llvm-project/libcxx/src/filesystem/
H A Doperations.cpp802 FileDescriptor to_fd = FileDescriptor::create_with_status( local
811 if (!detail::stat_equivalent(to_stat_path, to_fd.get_stat()))
815 if (detail::posix_fchmod(to_fd, from_stat, m_ec))
817 if (detail::posix_ftruncate(to_fd, 0, m_ec))
821 if (!copy_file_impl(from_fd, to_fd, m_ec)) {

Completed in 204 milliseconds