aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/bb_archive.h17
-rw-r--r--include/libbb.h4
2 files changed, 13 insertions, 8 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h
index 2182fcc3c..ace9c8e23 100644
--- a/include/bb_archive.h
+++ b/include/bb_archive.h
@@ -74,8 +74,8 @@ typedef struct archive_handle_t {
74 /* Currently processed file's header */ 74 /* Currently processed file's header */
75 file_header_t *file_header; 75 file_header_t *file_header;
76 76
77 /* List of symlink placeholders */ 77 /* List of link placeholders */
78 llist_t *symlink_placeholders; 78 llist_t *link_placeholders;
79 79
80 /* Process the header component, e.g. tar -t */ 80 /* Process the header component, e.g. tar -t */
81 void FAST_FUNC (*action_header)(const file_header_t *); 81 void FAST_FUNC (*action_header)(const file_header_t *);
@@ -126,10 +126,10 @@ typedef struct archive_handle_t {
126#if ENABLE_FEATURE_AR_CREATE 126#if ENABLE_FEATURE_AR_CREATE
127 const char *ar__name; 127 const char *ar__name;
128 struct archive_handle_t *ar__out; 128 struct archive_handle_t *ar__out;
129# if ENABLE_FEATURE_AR_LONG_FILENAMES 129#endif
130#if ENABLE_FEATURE_AR_LONG_FILENAMES
130 char *ar__long_names; 131 char *ar__long_names;
131 unsigned ar__long_name_size; 132 unsigned ar__long_name_size;
132# endif
133#endif 133#endif
134} archive_handle_t; 134} archive_handle_t;
135/* bits in ah_flags */ 135/* bits in ah_flags */
@@ -213,13 +213,14 @@ void seek_by_jump(int fd, off_t amount) FAST_FUNC;
213void seek_by_read(int fd, off_t amount) FAST_FUNC; 213void seek_by_read(int fd, off_t amount) FAST_FUNC;
214 214
215const char *strip_unsafe_prefix(const char *str) FAST_FUNC; 215const char *strip_unsafe_prefix(const char *str) FAST_FUNC;
216void create_or_remember_symlink(llist_t **symlink_placeholders, 216void create_or_remember_link(llist_t **link_placeholders,
217 const char *target, 217 const char *target,
218 const char *linkname) FAST_FUNC; 218 const char *linkname,
219 int hard_link) FAST_FUNC;
219#if !ENABLE_PLATFORM_MINGW32 220#if !ENABLE_PLATFORM_MINGW32
220void create_symlinks_from_list(llist_t *list) FAST_FUNC; 221void create_links_from_list(llist_t *list) FAST_FUNC;
221#else 222#else
222#define create_symlinks_from_list(l) (void)0 223#define create_links_from_list(l) (void)0
223#endif 224#endif
224 225
225void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC; 226void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC;
diff --git a/include/libbb.h b/include/libbb.h
index fb9167ce3..0264282dd 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -428,6 +428,9 @@ enum { /* cp.c, mv.c, install.c depend on these values. CAREFUL when changing th
428 FILEUTILS_PRESERVE_SECURITY_CONTEXT = 1 << 15, /* -c */ 428 FILEUTILS_PRESERVE_SECURITY_CONTEXT = 1 << 15, /* -c */
429#endif 429#endif
430 FILEUTILS_RMDEST = 1 << (16 - !ENABLE_SELINUX), /* --remove-destination */ 430 FILEUTILS_RMDEST = 1 << (16 - !ENABLE_SELINUX), /* --remove-destination */
431 /* bit 17 skipped for "cp --parents" */
432 FILEUTILS_REFLINK = 1 << (18 - !ENABLE_SELINUX), /* cp --reflink=auto */
433 FILEUTILS_REFLINK_ALWAYS = 1 << (19 - !ENABLE_SELINUX), /* cp --reflink[=always] */
431 /* 434 /*
432 * Hole. cp may have some bits set here, 435 * Hole. cp may have some bits set here,
433 * they should not affect remove_file()/copy_file() 436 * they should not affect remove_file()/copy_file()
@@ -503,6 +506,7 @@ DIR *xopendir(const char *path) FAST_FUNC;
503DIR *warn_opendir(const char *path) FAST_FUNC; 506DIR *warn_opendir(const char *path) FAST_FUNC;
504 507
505char *xmalloc_realpath(const char *path) FAST_FUNC RETURNS_MALLOC; 508char *xmalloc_realpath(const char *path) FAST_FUNC RETURNS_MALLOC;
509char *xmalloc_realpath_coreutils(const char *path) FAST_FUNC RETURNS_MALLOC;
506char *xmalloc_readlink(const char *path) FAST_FUNC RETURNS_MALLOC; 510char *xmalloc_readlink(const char *path) FAST_FUNC RETURNS_MALLOC;
507char *xmalloc_readlink_or_warn(const char *path) FAST_FUNC RETURNS_MALLOC; 511char *xmalloc_readlink_or_warn(const char *path) FAST_FUNC RETURNS_MALLOC;
508/* !RETURNS_MALLOC: it's a realloc-like function */ 512/* !RETURNS_MALLOC: it's a realloc-like function */