summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_private.h
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2009-12-28 02:58:14 +0000
committerkientzle <kientzle@FreeBSD.org>2009-12-28 02:58:14 +0000
commitb1d1d36a226d1eb449da0728a90e9aaadcf5a109 (patch)
tree0b1a4cd0bb1f958cdbe07f9411a01f50bef72e1f /lib/libarchive/archive_private.h
parentcd7df27c58c7c91d2f890a7ed45bb6f9db3ea5ca (diff)
downloadFreeBSD-src-b1d1d36a226d1eb449da0728a90e9aaadcf5a109.zip
FreeBSD-src-b1d1d36a226d1eb449da0728a90e9aaadcf5a109.tar.gz
New archive_file_count() utility.
Diffstat (limited to 'lib/libarchive/archive_private.h')
-rw-r--r--lib/libarchive/archive_private.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/libarchive/archive_private.h b/lib/libarchive/archive_private.h
index 1b03133..e09ddce 100644
--- a/lib/libarchive/archive_private.h
+++ b/lib/libarchive/archive_private.h
@@ -25,6 +25,10 @@
* $FreeBSD$
*/
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
#ifndef ARCHIVE_PRIVATE_H_INCLUDED
#define ARCHIVE_PRIVATE_H_INCLUDED
@@ -87,9 +91,11 @@ struct archive {
const char *compression_name;
/* Position in UNCOMPRESSED data stream. */
- off_t file_position;
+ int64_t file_position;
/* Position in COMPRESSED data stream. */
- off_t raw_position;
+ int64_t raw_position;
+ /* Number of file entries processed. */
+ int file_count;
int archive_error_number;
const char *error;
@@ -107,4 +113,12 @@ int __archive_parse_options(const char *p, const char *fn,
#define err_combine(a,b) ((a) < (b) ? (a) : (b))
+#if defined(__BORLANDC__) || (defined(_MSC_VER) && _MSC_VER <= 1300)
+# define ARCHIVE_LITERAL_LL(x) x##i64
+# define ARCHIVE_LITERAL_ULL(x) x##ui64
+#else
+# define ARCHIVE_LITERAL_LL(x) x##ll
+# define ARCHIVE_LITERAL_ULL(x) x##ull
+#endif
+
#endif
OpenPOWER on IntegriCloud