]> Dogcows Code - chaz/tar/commitdiff
(orig_file_name,current_file_name)
authorSergey Poznyakoff <gray@gnu.org.ua>
Sun, 31 Aug 2003 22:39:43 +0000 (22:39 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sun, 31 Aug 2003 22:39:43 +0000 (22:39 +0000)
(current_trailing_slash,current_link_name): Removed variables.
(current_stat_info): New variable
(current_stat): Removed
(extended_header): New variable
(decode_header): Changed prototype.

src/common.h

index c8625cc9b0a1af0c1c84589281ad2fd7e65e1ba6..7bdd84fc8d075a7351ada116d9b3cead783f58ce 100644 (file)
@@ -268,18 +268,7 @@ GLOBAL bool dev_null_output;
   GLOBAL time_t start_time;
 #endif
 
-/* Name of file read from the archive header */
-GLOBAL char *orig_file_name;
-
-/* Name of file for the current archive entry after being normalized.  */
-GLOBAL char *current_file_name;
-
-/* Nonzero if the current archive entry had a trailing slash before it
-   was normalized.  */
-GLOBAL int current_trailing_slash;
-
-/* Name of link for the current archive entry.  */
-GLOBAL char *current_link_name;
+GLOBAL struct tar_stat_info current_stat_info;
 
 /* List of tape drive names, number of such tape drives, allocated number,
    and current cursor in list.  */
@@ -420,14 +409,20 @@ enum read_header
   HEADER_FAILURE               /* ill-formed header, or bad checksum */
 };
 
+struct xheader
+{
+  int nblocks;
+  union block *blocks;
+};
+
+GLOBAL struct xheader extended_header;
 extern union block *current_header;
-extern struct stat current_stat;
 extern enum archive_format current_format;
 extern size_t recent_long_name_blocks;
 extern size_t recent_long_link_blocks;
 
-void decode_header (union block *, struct stat *,
-                           enum archive_format *, int);
+void decode_header (union block *, struct tar_stat_info *,
+                   enum archive_format *, int);
 #define STRINGIFY_BIGINT(i, b) \
   stringify_uintmax_t_backwards ((uintmax_t) (i), (b) + UINTMAX_STRSIZE_BOUND)
 char *stringify_uintmax_t_backwards (uintmax_t, char *);
This page took 0.024581 seconds and 4 git commands to generate.