aboutsummaryrefslogtreecommitdiff
path: root/include/tar
diff options
context:
space:
mode:
Diffstat (limited to 'include/tar')
-rw-r--r--include/tar/format.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/include/tar/format.h b/include/tar/format.h
index c3e372d..9f60ef3 100644
--- a/include/tar/format.h
+++ b/include/tar/format.h
@@ -10,6 +10,17 @@
#include "sqfs/predef.h"
typedef struct {
+ char offset[12];
+ char numbytes[12];
+} gnu_old_sparse_t;
+
+typedef struct {
+ gnu_old_sparse_t sparse[21];
+ char isextended;
+ char padding[7];
+} gnu_old_sparse_record_t;
+
+typedef struct {
char name[100];
char mode[8];
char uid[8];
@@ -37,10 +48,7 @@ typedef struct {
char offset[12];
char deprecated[4];
char unused;
- struct {
- char offset[12];
- char numbytes[12];
- } sparse[4];
+ gnu_old_sparse_t sparse[4];
char isextended;
char realsize[12];
char padding[17];
@@ -48,15 +56,6 @@ typedef struct {
} tail;
} tar_header_t;
-typedef struct {
- struct {
- char offset[12];
- char numbytes[12];
- } sparse[21];
- char isextended;
- char padding[7];
-} gnu_sparse_t;
-
#define TAR_TYPE_FILE '0'
#define TAR_TYPE_LINK '1'
#define TAR_TYPE_SLINK '2'