/netbsd-current/usr.bin/xinstall/ |
H A D | xinstall.c | 672 int devnull, from_fd, to_fd, serrno, tmpmode; local 751 if ((from_fd = open(from_name, O_RDONLY, 0)) < 0) { 756 copy(from_fd, from_name, to_fd, to_name, from_sb.st_size); 757 (void)close(from_fd); 860 copy(int from_fd, char *from_name, int to_fd, char *to_name, off_t size) argument 912 MAP_FILE|MAP_SHARED, from_fd, (off_t)0)) 953 while ((nr = read(from_fd, buf, sizeof(buf))) > 0) {
|
/netbsd-current/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 641 int from_fd, to_fd; local 644 if ((from_fd = open(from, O_RDONLY, 0)) < 0) 647 (void)close(from_fd); 650 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) { 653 (void)close(from_fd); 659 close(from_fd);
|
/netbsd-current/bin/cp/ |
H A D | utils.c | 103 int ch, checkch, from_fd, rcount, rval, to_fd, tolnk, wcount; local 117 if ((from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) { 144 (void)close(from_fd); 153 (void)close(from_fd); 175 (void)close(from_fd); 201 from_fd, (off_t)0); 241 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) { 258 if (pflag && (fcpxattr(from_fd, to_fd) != 0)) 262 if (pflag && preserve_fd_acls(from_fd, to_fd) != 0) 266 (void)close(from_fd); [all...] |
/netbsd-current/external/gpl3/gdb/dist/gdb/ |
H A D | darwin-nat.c | 1846 scoped_fd from_fd = gdb_open_cloexec (shell, O_RDONLY, 0); local 1847 if (from_fd.get () < 0) 1864 if (fcopyfile (from_fd.get (), to_fd.get (), nullptr,
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/ |
H A D | darwin-nat.c | 1827 scoped_fd from_fd (gdb_open_cloexec (shell, O_RDONLY, 0)); 1828 if (from_fd.get () < 0) 1845 if (fcopyfile (from_fd.get (), to_fd.get (), nullptr,
|
/netbsd-current/external/apache2/llvm/dist/libcxx/src/filesystem/ |
H A D | operations.cpp | 900 FileDescriptor from_fd = FileDescriptor::create_with_status( local 905 auto from_st = from_fd.get_status(); 906 StatT const& from_stat = from_fd.get_stat(); 975 if (!copy_file_impl(from_fd, to_fd, m_ec)) {
|
/netbsd-current/bin/mv/ |
H A D | mv.c | 278 int from_fd, to_fd; local 282 if ((from_fd = open(from, O_RDONLY, 0)) < 0) { 289 (void)close(from_fd); 295 (void)close(from_fd); 299 while ((nread = read(from_fd, bp, blen)) > 0) { 318 (void)close(from_fd); 323 if (fcpxattr(from_fd, to_fd) == -1) 326 (void)close(from_fd);
|
/netbsd-current/external/bsd/nvi/dist/ex/ |
H A D | ex_cscope.c | 432 csc->from_fd = from_cs[0];
|
H A D | tag.h | 28 int from_fd; /* from cscope: file descriptor. */ member in struct:_csc
|
/netbsd-current/lib/libc/gen/ |
H A D | extattr.c | 100 extattr_copy_fd(int from_fd, int to_fd, int namespace) argument 109 llen = extattr_list_fd(from_fd, namespace, NULL, 0); 125 llen = extattr_list_fd(from_fd, namespace, alist, (size_t)llen); 142 vlen = extattr_get_fd(from_fd, namespace, aname, NULL, 0); 152 if ((vlen = extattr_get_fd(from_fd, namespace, aname, 325 fcpxattr(int from_fd, int to_fd) argument 334 if ((error = extattr_copy_fd(from_fd, to_fd, *ns)) != 0)
|