diff options
author | Elijah Newren <newren@gmail.com> | 2023-04-22 22:17:12 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-04-24 21:47:31 +0200 |
commit | d5fff46f4025e23ec61b9d74eac2bb19e7a2385d (patch) | |
tree | 223c06ef38786395f30a23006a2fdd71c451a978 /copy.h | |
parent | server-info.h: move declarations for server-info.c functions from cache.h (diff) | |
download | git-d5fff46f4025e23ec61b9d74eac2bb19e7a2385d.tar.xz git-d5fff46f4025e23ec61b9d74eac2bb19e7a2385d.zip |
copy.h: move declarations for copy.c functions from cache.h
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'copy.h')
-rw-r--r-- | copy.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 */ |