Lines Matching defs:ifd
377 copy_file_contents(int ifd,
386 while ((cnt = sss_atomic_read_s(ifd, buf, sizeof(buf))) != 0) {
440 /* Copy bytes from input file descriptor ifd into file named
445 copy_file(int ifd,
474 ret = copy_file_contents(ifd, ofd, statp->st_mode, uid, gid);
498 int ifd = -1;
524 ifd = sss_open_cloexec(src, O_RDONLY | O_NOFOLLOW, &ret);
525 if (ifd < 0) {
532 ret = copy_file_contents(ifd, ofd, mode, uid, gid);
535 if (ifd != -1) close(ifd);
558 int ifd = -1;
576 ifd = sss_openat_cloexec(src_dir_fd, ent_name,
578 if (ifd == -1 && ret != ELOOP) {
583 } else if (ifd == -1 && ret == ELOOP) {
603 ret = fstat(ifd, &st);
613 ret = copy_dir(cctx, ifd, src_ent_path,
625 ret = copy_file(ifd, dest_dir_fd, ent_name, dest_ent_path,
642 if (ifd != -1) close(ifd);