From b4e5a24a3031c83ca51b50d34dea1a05aedf7b44 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 23 Dec 2019 13:41:58 +0100 Subject: Add libtar.a function to create hardlink records Signed-off-by: David Oberhollenzer --- include/tar.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/tar.h b/include/tar.h index 617148f..def36be 100644 --- a/include/tar.h +++ b/include/tar.h @@ -125,6 +125,9 @@ int write_tar_header(FILE *fp, const struct stat *sb, const char *name, const char *slink_target, const tar_xattr_t *xattr, unsigned int counter); +int write_hard_link(FILE *fp, const struct stat *sb, const char *name, + const char *target, unsigned int counter); + /* calcuate and skip the zero padding */ int skip_padding(FILE *fp, sqfs_u64 size); -- cgit v1.2.3