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

/macosx-10.10/file_cmds-242/install/
H A Dxinstall.c283 int tempcopy, temp_fd, to_fd=0; local
325 if ((to_fd = open(to_name, O_RDONLY, 0)) < 0)
331 (size_t)from_sb.st_size, to_fd,
336 (void)close(to_fd);
341 to_fd = create_tempfile(to_name, tempfile,
343 if (to_fd < 0)
346 if ((to_fd = create_newfile(to_name, target,
354 copy(from_fd, from_name, to_fd,
365 close(to_fd);
366 to_fd
542 compare(int from_fd, const char *from_name, size_t from_len, int to_fd, const char *to_name, size_t to_len) argument
[all...]
/macosx-10.10/file_cmds-242/cp/
H A Dutils.c74 int ch, checkch, from_fd, rval, to_fd; local
123 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
124 if (to_fd == -1) {
128 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
137 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
141 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
144 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
147 if (to_fd == -1) {
163 if (fstatfs(to_fd, &sfs) == 0 &&
172 (void) fcntl(to_fd, F_PREALLOCAT
[all...]
/macosx-10.10/file_cmds-242/mv/
H A Dmv.c329 int from_fd, to_fd; local
345 while ((to_fd =
361 if (fstatfs(to_fd, &sfs) == 0 &&
370 (void) fcntl(to_fd, F_PREALLOCATE, &fst);
375 if (write(to_fd, bp, (size_t)nread) != nread) {
384 (void)close(to_fd);
388 /* XATTR can fail if to_fd has mode 000 */
389 if (fcopyfile(from_fd, to_fd, NULL, COPYFILE_ACL | COPYFILE_XATTR) < 0) {
397 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
407 if (fchmod(to_fd, sb
[all...]
/macosx-10.10/copyfile-118.1.2/
H A Dcopyfile.h56 int fcopyfile(int from_fd, int to_fd, copyfile_state_t, copyfile_flags_t flags);
/macosx-10.10/Heimdal-398.1.2/appl/kx/
H A Dkrb5.c240 * Copy from the unix socket `from_fd' encrypting to `to_fd'.
245 copy_out (kx_context *kc, int from_fd, int to_fd) argument
257 return krb5_write (kc, to_fd, buf, len);
261 * Copy from the socket `from_fd' decrypting to `to_fd'.
266 copy_in (kx_context *kc, int from_fd, int to_fd) argument
280 return krb5_net_write (CONTEXT(kc), &to_fd, buf, len);
/macosx-10.10/llvmCore-3425.0.34/lib/Support/Unix/
H A DPathV2.inc165 AutoFD to_fd(to_file);
175 if ((sz = ::write(to_fd, buffer + sz_write, sz_read - sz_write)) < 0) {
186 if (::close(to_fd.take()) < 0) sz_read = -1;
/macosx-10.10/system_cmds-643.1.1/pwd_mkdb.tproj/
H A Dpwd_mkdb.c391 int from_fd, rcount, to_fd, wcount; local
395 if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) < 0)
398 wcount = write(to_fd, buf, rcount);
/macosx-10.10/xnu-2782.1.97/bsd/hfs/
H A Dhfs_readwrite.c1675 u_int32_t to_fd = *(u_int32_t *)ap->a_data; local
1682 if ((error = fp_getfvp(p, to_fd, &to_fp, &to_vp)) != 0) {
1683 //printf("could not get the vnode for fd %d (err %d)\n", to_fd, error);
1687 file_drop(to_fd);
1791 file_drop(to_fd);

Completed in 161 milliseconds