HomeSort by: relevance | last modified time | path
    Searched defs:to_fd (Results 1 - 8 of 8) sorted by relevancy

  /src/bin/mv/
mv.c 278 int from_fd, to_fd; local
286 if ((to_fd =
296 (void)close(to_fd);
300 if (write(to_fd, bp, nread) != nread) {
319 (void)close(to_fd);
323 if (fcpxattr(from_fd, to_fd) == -1)
345 if (futimens(to_fd, ts))
347 if (futimes(to_fd, tval))
351 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
356 if (fchmod(to_fd, sbp->st_mode)
    [all...]
  /src/external/bsd/nvi/dist/ex/
tag.h 30 int to_fd; /* to cscope: file descriptor. */ member in struct:_csc
  /src/bin/cp/
utils.c 103 int ch, checkch, from_fd, rcount, rval, to_fd, tolnk, wcount; local
122 to_fd = -1;
158 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
160 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
163 if (to_fd == -1 && (fflag || tolnk)) {
169 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
173 if (to_fd == -1) {
221 if (write(to_fd, &p[fsize - remainder],
242 wcount = write(to_fd, buf, (size_t)rcount);
258 if (pflag && (fcpxattr(from_fd, to_fd) != 0)
    [all...]
  /src/usr.sbin/pwd_mkdb/
pwd_mkdb.c 640 int from_fd, to_fd; local
645 if ((to_fd = open(to, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) {
650 wcount = write(to_fd, buf, (size_t)rcount);
653 (void)close(to_fd);
659 if (close(to_fd))
  /src/usr.bin/xinstall/
xinstall.c 672 int devnull, from_fd, to_fd, serrno, tmpmode; local
742 if ((to_fd = mkstemp(to_name)) == -1)
745 if ((to_fd = open(to_name,
756 copy(from_fd, from_name, to_fd, to_name, from_sb.st_size);
767 close(to_fd);
768 if ((to_fd = open(to_name, O_RDONLY, S_IRUSR | S_IWUSR)) < 0)
774 if (fstat(to_fd, &to_sb) != 0)
778 copy(to_fd, to_name, -1, NULL, size);
789 close(to_fd);
790 if ((to_fd = open(to_name, O_RDONLY, S_IRUSR | S_IWUSR)) < 0
    [all...]
  /src/external/apache2/llvm/dist/libcxx/src/filesystem/
operations.cpp 956 FileDescriptor to_fd = FileDescriptor::create_with_status( local
965 if (!detail::stat_equivalent(to_stat_path, to_fd.get_stat()))
969 if (detail::posix_fchmod(to_fd, from_stat, m_ec))
971 if (detail::posix_ftruncate(to_fd, 0, m_ec))
975 if (!copy_file_impl(from_fd, to_fd, m_ec)) {
  /src/external/gpl3/gdb/dist/gdb/
darwin-nat.c 1862 scoped_fd to_fd = gdb_mkostemp_cloexec (&temp_name[0]); local
1865 if (to_fd.get () < 0)
1869 if (fcopyfile (from_fd.get (), to_fd.get (), nullptr,
  /src/external/gpl3/gdb.old/dist/gdb/
darwin-nat.c 1859 scoped_fd to_fd = gdb_mkostemp_cloexec (&temp_name[0]); local
1862 if (to_fd.get () < 0)
1866 if (fcopyfile (from_fd.get (), to_fd.get (), nullptr,

Completed in 36 milliseconds