Lines Matching refs:ifd

2238 webdav_fcopyfile_sz (int ifd, int ofd, off_t isz)  in webdav_fcopyfile_sz()  argument
2254 if (0 == fcopyfile(ifd, ofd, NULL, COPYFILE_ALL)) in webdav_fcopyfile_sz()
2257 if (0 != lseek(ifd, 0, SEEK_SET)) return -1; in webdav_fcopyfile_sz()
2263 if (0 == elftc_copyfile(ifd, ofd)) in webdav_fcopyfile_sz()
2266 if (0 != lseek(ifd, 0, SEEK_SET)) return -1; in webdav_fcopyfile_sz()
2276 while (offset < isz && sendfile(ifd,ofd,&offset,(size_t)(isz-offset)) >= 0); in webdav_fcopyfile_sz()
2279 && sendfile(ifd, ofd, &offset, in webdav_fcopyfile_sz()
2298 rd = read(ifd, buf, sizeof(buf)); in webdav_fcopyfile_sz()
2726 const int ifd = fdevent_open_cloexec(src->path.ptr, 0, O_RDONLY, 0); in webdav_copytmp_rename() local
2727 if (ifd < 0) in webdav_copytmp_rename()
2729 if (0 != fstat(ifd, &st) || !S_ISREG(st.st_mode)) { in webdav_copytmp_rename()
2730 close(ifd); in webdav_copytmp_rename()
2750 close(ifd); in webdav_copytmp_rename()
2759 close(ifd); in webdav_copytmp_rename()
2780 wr = copy_file_range(ifd, &ioff, ofd, &ooff, (size_t)ilen, 0); in webdav_copytmp_rename()
2782 wr = copy_file_range(ifd, &ioff, ofd, &ooff, in webdav_copytmp_rename()
2819 rc = ioctl(ofd, FICLONE, ifd); in webdav_copytmp_rename()
2837 rc = webdav_fcopyfile_sz(ifd, ofd, st.st_size); in webdav_copytmp_rename()
2842 close(ifd); in webdav_copytmp_rename()
4775 const int ifd = fdevent_open_cloexec(r->physical.path.ptr, 0, in mod_webdav_put_range() local
4777 if (ifd < 0) { in mod_webdav_put_range()
4781 int fd = ifd; in mod_webdav_put_range()
4786 || 0 != fstat(ifd,&st) || st.st_size != offset || st.st_nlink > 1)){ in mod_webdav_put_range()
4798 close(ifd); in mod_webdav_put_range()
4807 close(ifd); in mod_webdav_put_range()
4813 close(ifd); /*(close ifd after opening temporary file so (fd != ifd))*/ in mod_webdav_put_range()
4852 if (fd != ifd) in mod_webdav_put_range()
4865 if (fd != ifd) { in mod_webdav_put_range()