aboutsummaryrefslogtreecommitdiff
path: root/lib/tar/src/internal.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-01-31 11:21:30 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-01-31 13:51:49 +0100
commitcdccc69c62579b0c13b35fad0728079652b8f3c9 (patch)
tree9fa54c710f73c5e08a9c8466e7a712eb63ee07ac /lib/tar/src/internal.h
parent2182129c8f359c4fa1390eaba7a65b595ccd4182 (diff)
Move library source into src sub-directory
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/tar/src/internal.h')
-rw-r--r--lib/tar/src/internal.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/tar/src/internal.h b/lib/tar/src/internal.h
new file mode 100644
index 0000000..c5483fe
--- /dev/null
+++ b/lib/tar/src/internal.h
@@ -0,0 +1,46 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/*
+ * internal.h
+ *
+ * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
+ */
+#ifndef INTERNAL_H
+#define INTERNAL_H
+
+#include "config.h"
+
+#include "tar/tar.h"
+#include "tar/format.h"
+#include "util/util.h"
+
+enum {
+ PAX_SIZE = 0x001,
+ PAX_UID = 0x002,
+ PAX_GID = 0x004,
+ PAX_DEV_MAJ = 0x008,
+ PAX_DEV_MIN = 0x010,
+ PAX_NAME = 0x020,
+ PAX_SLINK_TARGET = 0x040,
+ PAX_MTIME = 0x100,
+ PAX_SPARSE_SIZE = 0x400,
+
+ PAX_SPARSE_GNU_1_X = 0x800,
+};
+
+enum {
+ ETV_UNKNOWN = 0,
+ ETV_V7_UNIX,
+ ETV_PRE_POSIX,
+ ETV_POSIX,
+};
+
+sparse_map_t *read_gnu_old_sparse(istream_t *fp, tar_header_t *hdr);
+
+sparse_map_t *read_gnu_new_sparse(istream_t *fp, tar_header_decoded_t *out);
+
+char *record_to_memory(istream_t *fp, size_t size);
+
+int read_pax_header(istream_t *fp, sqfs_u64 entsize, unsigned int *set_by_pax,
+ tar_header_decoded_t *out);
+
+#endif /* INTERNAL_H */