summaryrefslogtreecommitdiff
path: root/include/tar.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/tar.h')
-rw-r--r--include/tar.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/tar.h b/include/tar.h
index a39d7c9..3b7c8eb 100644
--- a/include/tar.h
+++ b/include/tar.h
@@ -6,6 +6,13 @@
#include <stdbool.h>
#include <stdint.h>
+typedef enum {
+ ETV_UNKNOWN = 0,
+ ETV_V7_UNIX,
+ ETV_PRE_POSIX,
+ ETV_POSIX,
+} E_TAR_VERSION;
+
typedef struct {
char name[100];
char mode[8];
@@ -46,6 +53,9 @@ typedef struct {
#define TAR_MAGIC "ustar"
#define TAR_VERSION "00"
+#define TAR_MAGIC_OLD "ustar "
+#define TAR_VERSION_OLD " "
+
/*
Returns < 0 on failure, > 0 if cannot encode, 0 on success.
Prints error/warning messages to stderr.