From d5fff46f4025e23ec61b9d74eac2bb19e7a2385d Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Sat, 22 Apr 2023 20:17:12 +0000 Subject: copy.h: move declarations for copy.c functions from cache.h Signed-off-by: Elijah Newren Signed-off-by: Junio C Hamano --- copy.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 copy.h (limited to 'copy.h') diff --git a/copy.h b/copy.h new file mode 100644 index 0000000000..2af77cba86 --- /dev/null +++ b/copy.h @@ -0,0 +1,10 @@ +#ifndef COPY_H +#define COPY_H + +#define COPY_READ_ERROR (-2) +#define COPY_WRITE_ERROR (-3) +int copy_fd(int ifd, int ofd); +int copy_file(const char *dst, const char *src, int mode); +int copy_file_with_time(const char *dst, const char *src, int mode); + +#endif /* COPY_H */ -- cgit v1.2.3