X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Fcopy.h;h=41aad741c9aa5fb1aeaf864dde97945bd2a9590c;hb=084937b3d7c4da3e3c48d05779f8cfbdc39a2ce6;hp=0cb8cf766cf4027a8affc4db7dc0e9292e02767b;hpb=d2338db3145922b1dfcb3b458e5bce2568a9347a;p=elogind.git diff --git a/src/basic/copy.h b/src/basic/copy.h index 0cb8cf766..41aad741c 100644 --- a/src/basic/copy.h +++ b/src/basic/copy.h @@ -1,5 +1,3 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - #pragma once /*** @@ -21,15 +19,22 @@ along with systemd; If not, see . ***/ +#include #include +#include #include -// UNNEEDED int copy_file_fd(const char *from, int to, bool try_reflink); -// UNNEEDED int copy_file(const char *from, const char *to, int flags, mode_t mode, unsigned chattr_flags); -// UNNEEDED int copy_file_atomic(const char *from, const char *to, mode_t mode, bool replace, unsigned chattr_flags); -// UNNEEDED int copy_tree(const char *from, const char *to, bool merge); -// UNNEEDED int copy_tree_at(int fdf, const char *from, int fdt, const char *to, bool merge); -// UNNEEDED int copy_directory_fd(int dirfd, const char *to, bool merge); +#if 0 /// UNNEEDED by elogind +int copy_file_fd(const char *from, int to, bool try_reflink); +int copy_file(const char *from, const char *to, int flags, mode_t mode, unsigned chattr_flags); +int copy_file_atomic(const char *from, const char *to, mode_t mode, bool replace, unsigned chattr_flags); +int copy_tree(const char *from, const char *to, bool merge); +int copy_tree_at(int fdf, const char *from, int fdt, const char *to, bool merge); +int copy_directory_fd(int dirfd, const char *to, bool merge); +int copy_directory(const char *from, const char *to, bool merge); +#endif // 0 int copy_bytes(int fdf, int fdt, uint64_t max_bytes, bool try_reflink); -// UNNEEDED int copy_times(int fdf, int fdt); -// UNNEEDED int copy_xattr(int fdf, int fdt); +#if 0 /// UNNEEDED by elogind +int copy_times(int fdf, int fdt); +int copy_xattr(int fdf, int fdt); +#endif // 0