/netbsd-current/bin/mv/ |
H A D | 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, sb [all...] |
/netbsd-current/bin/cp/ |
H A D | 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) ! [all...] |
/netbsd-current/external/bsd/nvi/dist/ex/ |
H A D | tag.h | 30 int to_fd; /* to cscope: file descriptor. */ member in struct:_csc
|
H A D | ex_cscope.c | 430 csc->to_fd = to_cs[1];
|
/netbsd-current/usr.bin/xinstall/ |
H A D | 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 860 copy(int from_fd, char *from_name, int to_fd, char *to_name, off_t size) argument [all...] |
/netbsd-current/lib/libc/gen/ |
H A D | extattr.c | 100 extattr_copy_fd(int from_fd, int to_fd, int namespace) argument 156 if (extattr_set_fd(to_fd, namespace, aname, 325 fcpxattr(int from_fd, int to_fd) argument 334 if ((error = extattr_copy_fd(from_fd, to_fd, *ns)) != 0)
|
/netbsd-current/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 641 int from_fd, to_fd; local 646 if ((to_fd = open(to, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) { 651 wcount = write(to_fd, buf, (size_t)rcount); 654 (void)close(to_fd); 660 if (close(to_fd))
|
/netbsd-current/external/apache2/llvm/dist/libcxx/src/filesystem/ |
H A D | 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)) {
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/ |
H A D | darwin-nat.c | 1838 scoped_fd to_fd (gdb_mkostemp_cloexec (&temp_name[0])); 1841 if (to_fd.get () < 0) 1845 if (fcopyfile (from_fd.get (), to_fd.get (), nullptr,
|
/netbsd-current/external/gpl3/gdb/dist/gdb/ |
H A D | darwin-nat.c | 1857 scoped_fd to_fd = gdb_mkostemp_cloexec (&temp_name[0]); local 1860 if (to_fd.get () < 0) 1864 if (fcopyfile (from_fd.get (), to_fd.get (), nullptr,
|