Lines Matching refs:src

1902                       const buffer * const src,  in webdav_prop_move_uri()  argument
1913 sqlite3_bind_text(stmt, 2, BUF_PTR_LEN(src), SQLITE_STATIC); in webdav_prop_move_uri()
1927 UNUSED(src); in webdav_prop_move_uri()
1937 const buffer * const src, in webdav_prop_move_uri_col() argument
1948 force_assert(0 != src->used); in webdav_prop_move_uri_col()
1952 sqlite3_bind_int( stmt, 2, (int)src->used); in webdav_prop_move_uri_col()
1953 sqlite3_bind_int( stmt, 3, (int)src->used-1); in webdav_prop_move_uri_col()
1954 sqlite3_bind_text(stmt, 4, BUF_PTR_LEN(src), SQLITE_STATIC); in webdav_prop_move_uri_col()
1968 UNUSED(src); in webdav_prop_move_uri_col()
2010 const buffer * const src, in webdav_prop_copy_uri() argument
2021 sqlite3_bind_text(stmt, 2, BUF_PTR_LEN(src), SQLITE_STATIC); in webdav_prop_copy_uri()
2036 UNUSED(src); in webdav_prop_copy_uri()
2608 #define webdav_linktmp_rename(pconf, src, dst) -1 argument
2612 const buffer * const src, in webdav_linktmp_rename() argument
2626 && 0 == linkat(AT_FDCWD, src->ptr, AT_FDCWD, tmpb->ptr, 0)) { in webdav_linktmp_rename()
2649 const physical_st * const src, in webdav_copytmp_rename() argument
2657 |WEBDAV_FLAG_NO_CLONE)) && src != dst) { in webdav_copytmp_rename()
2658 if (0==clonefile(src->path.ptr,dst->path.ptr,CLONE_NOFOLLOW)) in webdav_copytmp_rename()
2702 if (0 == clonefile(src->path.ptr, tmpb->ptr, CLONE_NOFOLLOW)) in webdav_copytmp_rename()
2726 const int ifd = fdevent_open_cloexec(src->path.ptr, 0, O_RDONLY, 0); in webdav_copytmp_rename()
2749 if (CopyFile((LPTSTR)src->path.ptr, (LPTSTR)tmpb->ptr, TRUE)) { in webdav_copytmp_rename()
2844 if (src == dst && 0 == rc) { in webdav_copytmp_rename()
2865 if (src == dst) { in webdav_copytmp_rename()
2912 const physical_st * const src, in webdav_copymove_file() argument
2926 if (0 == rename(src->path.ptr, dst->path.ptr)) in webdav_copymove_file()
2928 if (0 == renameat2(AT_FDCWD, src->path.ptr, in webdav_copymove_file()
2943 if (overwrite) unlink(src->path.ptr); in webdav_copymove_file()
2947 stat_cache_delete_entry(BUF_PTR_LEN(&src->path)); in webdav_copymove_file()
2948 webdav_prop_move_uri(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_file()
2955 if (0 == linkat(AT_FDCWD, src->path.ptr, AT_FDCWD, dst->path.ptr, 0)){ in webdav_copymove_file()
2956 webdav_prop_copy_uri(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_file()
2962 if (0 == webdav_linktmp_rename(pconf, &src->path, &dst->path)) { in webdav_copymove_file()
2963 webdav_prop_copy_uri(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_file()
2974 int status = webdav_copytmp_rename(pconf, src, dst, flags); in webdav_copymove_file()
2976 webdav_prop_copy_uri(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_file()
2978 webdav_delete_file(pconf, src); in webdav_copymove_file()
3048 physical_st * const src, in webdav_copymove_dir() argument
3106 webdav_xml_response_status(r, &src->rel_path, 412); in webdav_copymove_dir()
3112 if (0 == rename(src->path.ptr, dst->path.ptr)) in webdav_copymove_dir()
3114 if (0 == renameat2(AT_FDCWD, src->path.ptr, in webdav_copymove_dir()
3119 webdav_prop_move_uri_col(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_dir()
3129 webdav_xml_response_status(r, &src->rel_path, 412); in webdav_copymove_dir()
3136 webdav_xml_response_status(r, &src->rel_path, 409); in webdav_copymove_dir()
3163 webdav_xml_response_status(r, &src->rel_path, status); in webdav_copymove_dir()
3167 if (0 == rename(src->path.ptr, dst->path.ptr)) { in webdav_copymove_dir()
3168 webdav_prop_move_uri_col(pconf, &src->rel_path, in webdav_copymove_dir()
3194 webdav_xml_response_status(r, &src->rel_path, status); in webdav_copymove_dir()
3199 webdav_prop_copy_uri(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_dir()
3205 const uint32_t src_path_used = src->path.used; in webdav_copymove_dir()
3206 const uint32_t src_rel_path_used = src->rel_path.used; in webdav_copymove_dir()
3212 DIR * const srcdir = opendir(src->path.ptr); in webdav_copymove_dir()
3214 dfd = fdevent_open_dirname(src->path.ptr, 0); in webdav_copymove_dir()
3219 webdav_xml_response_status(r, &src->rel_path, 403); in webdav_copymove_dir()
3248 buffer_append_string_len(&src->path, de->d_name, len); in webdav_copymove_dir()
3250 buffer_append_string_len(&src->rel_path, de->d_name, len); in webdav_copymove_dir()
3258 if (0 != stat(src->path.ptr, &st)) { in webdav_copymove_dir()
3259 src->path.ptr[ (src->path.used = src_path_used) -1]='\0'; in webdav_copymove_dir()
3260 src->rel_path.ptr[(src->rel_path.used = src_rel_path_used)-1]='\0'; in webdav_copymove_dir()
3270 buffer_append_char(&src->path, '/'); in webdav_copymove_dir()
3272 buffer_append_char(&src->rel_path, '/'); in webdav_copymove_dir()
3274 status = webdav_copymove_dir(pconf, src, dst, r, flags); in webdav_copymove_dir()
3279 status = webdav_copymove_file(pconf, src, dst, &flags); in webdav_copymove_dir()
3281 webdav_xml_response_status(r, &src->rel_path, status); in webdav_copymove_dir()
3295 src->path.ptr[ (src->path.used = src_path_used) -1] = '\0'; in webdav_copymove_dir()
3296 src->rel_path.ptr[(src->rel_path.used = src_rel_path_used)-1] = '\0'; in webdav_copymove_dir()
3309 status = webdav_delete_dir(pconf, src, r, flags); /* content */ in webdav_copymove_dir()
3311 webdav_xml_response_status(r, &src->rel_path, status); in webdav_copymove_dir()