X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fshared%2Fcopy.h;h=da084b66f299e8925499a928c6bf31300c8960a1;hb=00df55e360e7f509dabad6703088f0a84d92468c;hp=b02fb946943818ca431b1c3a1736a21ec682232f;hpb=ab645e0a903c56923ac477cccd7a12c765b94606;p=thirdparty%2Fsystemd.git diff --git a/src/shared/copy.h b/src/shared/copy.h index b02fb946943..da084b66f29 100644 --- a/src/shared/copy.h +++ b/src/shared/copy.h @@ -83,14 +83,9 @@ static inline int copy_tree(const char *from, const char *to, uid_t override_uid return copy_tree_at_full(AT_FDCWD, from, AT_FDCWD, to, override_uid, override_gid, copy_flags, denylist, NULL, NULL, NULL); } -int copy_directory_fd_full(int dirfd, const char *to, CopyFlags copy_flags, copy_progress_path_t progress_path, copy_progress_bytes_t progress_bytes, void *userdata); -static inline int copy_directory_fd(int dirfd, const char *to, CopyFlags copy_flags) { - return copy_directory_fd_full(dirfd, to, copy_flags, NULL, NULL, NULL); -} - -int copy_directory_full(const char *from, const char *to, CopyFlags copy_flags, copy_progress_path_t progress_path, copy_progress_bytes_t progress_bytes, void *userdata); -static inline int copy_directory(const char *from, const char *to, CopyFlags copy_flags) { - return copy_directory_full(from, to, copy_flags, NULL, NULL, NULL); +int copy_directory_at_full(int dir_fdf, const char *from, int dir_fdt, const char *to, CopyFlags copy_flags, copy_progress_path_t progress_path, copy_progress_bytes_t progress_bytes, void *userdata); +static inline int copy_directory_at(int dir_fdf, const char *from, int dir_fdt, const char *to, CopyFlags copy_flags) { + return copy_directory_at_full(dir_fdf, from, dir_fdt, to, copy_flags, NULL, NULL, NULL); } int copy_bytes_full(int fdf, int fdt, uint64_t max_bytes, CopyFlags copy_flags, void **ret_remains, size_t *ret_remains_size, copy_progress_bytes_t progress, void *userdata);