]> Dogcows Code - chaz/tar/blobdiff - src/common.h
Use TAR_VOLUME instead of reading volno file.
[chaz/tar] / src / common.h
index cbcd2c735d5f9995325b01d5fd1b4c48e9d9ddfb..2d48dbbe0040d62ae7102efe78a893ec709e8d0b 100644 (file)
@@ -114,7 +114,13 @@ GLOBAL bool utc_option;
    than newer_mtime_option.  */
 GLOBAL int after_date_option;
 
-GLOBAL bool atime_preserve_option;
+enum atime_preserve
+{
+  no_atime_preserve,
+  replace_atime_preserve,
+  system_atime_preserve
+};
+GLOBAL enum atime_preserve atime_preserve_option;
 
 GLOBAL bool backup_option;
 
@@ -348,8 +354,8 @@ off_t current_block_ordinal (void);
 void close_archive (void);
 void closeout_volume_number (void);
 union block *find_next_block (void);
-void (*flush_read) (void);
-void (*flush_write) (void);
+void flush_read (void);
+void flush_write (void);
 void flush_archive (void);
 void init_volume_number (void);
 void open_archive (enum access_mode);
@@ -386,7 +392,7 @@ void dump_file (char *, int, dev_t);
 union block *start_header (struct tar_stat_info *st);
 void finish_header (struct tar_stat_info *, union block *, off_t);
 void simple_finish_header (union block *header);
-union block * write_extended (char type, struct tar_stat_info *st,
+union block * write_extended (bool global, struct tar_stat_info *st,
                              union block *old_header);
 union block *start_private_header (const char *name, size_t size);
 void write_eot (void);
@@ -611,6 +617,8 @@ void tar_stat_init (struct tar_stat_info *st);
 void tar_stat_destroy (struct tar_stat_info *st);
 void usage (int) __attribute__ ((noreturn));
 int tar_timespec_cmp (struct timespec a, struct timespec b);
+const char *archive_format_string (enum archive_format fmt);
+const char *subcommand_string (enum subcommand c);
 
 /* Module update.c.  */
 
@@ -637,6 +645,8 @@ void xheader_string_begin (void);
 void xheader_string_add (char const *s);
 void xheader_string_end (char const *keyword);
 bool xheader_keyword_deleted_p (const char *kw);
+char *xheader_format_name (struct tar_stat_info *st, const char *fmt,
+                          size_t n);
 
 /* Module system.c */
 
@@ -656,6 +666,7 @@ size_t sys_write_archive_buffer (void);
 bool sys_get_archive_stat (void);
 int sys_exec_command (char *file_name, int typechar, struct tar_stat_info *st);
 void sys_wait_command (void);
+int sys_exec_info_script (const char *archive_name, int volume_number);
 
 /* Module compare.c */
 void report_difference (struct tar_stat_info *st, const char *message, ...);
This page took 0.021983 seconds and 4 git commands to generate.