summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-23 13:41:58 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-23 13:55:38 +0100
commitb4e5a24a3031c83ca51b50d34dea1a05aedf7b44 (patch)
tree72c75fc2a0928963c1958900e387bc6c2e01971b /include
parentf92e31c94f953a68309dab7df75f5f9cc67caa7a (diff)
Add libtar.a function to create hardlink records
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/tar.h3
1 files changed, 3 insertions, 0 deletions
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);