summaryrefslogtreecommitdiff
path: root/src/basic/copy.h
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-04-11 17:05:07 +0200
committerSven Eden <yamakuzure@gmx.net>2017-04-26 12:59:13 +0200
commit2705eaf36d46539397571886ba6ccd0045ef3e9b (patch)
treecd6e5e0a08aedf5373fd13f3f7c98616f7009856 /src/basic/copy.h
parent0d8d17b410396e92d931465768b22349aa6679e4 (diff)
Prep v228: Substitute declaration masks (1/4)
Although it looks very ugly, substitute all declaration masks of the form: // UNNEEDED type foo(...); with: /// UNNEEDED by elogind #if 0 type foo(...); #endif // 0 to make future merging of upstream pathes easier, as the relevant lines themselves are not changed any more.
Diffstat (limited to 'src/basic/copy.h')
-rw-r--r--src/basic/copy.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/basic/copy.h b/src/basic/copy.h
index f5d8a1dd8..2cc7ad146 100644
--- a/src/basic/copy.h
+++ b/src/basic/copy.h
@@ -25,12 +25,18 @@
#include <stdbool.h>
#include <sys/types.h>
-// 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);
+/// UNNEEDED by elogind
+#if 0
+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);
+#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);
+/// UNNEEDED by elogind
+#if 0
+int copy_times(int fdf, int fdt);
+int copy_xattr(int fdf, int fdt);
+#endif // 0