X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fcommon.h;h=365379ae25039999783df14fa36083697cb168d4;hb=2af87fa2776c8125a587a9b0c2c4fae3bf921ff7;hp=28d6d61924cc5d8ceaa8d17d3bb9d4445585b0ac;hpb=f0a1f78196f75678424712ac36f0a4a46e3e5658;p=chaz%2Ftar diff --git a/src/common.h b/src/common.h index 28d6d61..365379a 100644 --- a/src/common.h +++ b/src/common.h @@ -235,6 +235,10 @@ GLOBAL bool numeric_owner_option; GLOBAL bool one_file_system_option; +/* Create a top-level directory for extracting based on the archive name. */ +GLOBAL bool one_top_level_option; +GLOBAL char *one_top_level; + /* Specified value to be put into tar file in place of stat () results, or just null and -1 if such an override should not take place. */ GLOBAL char const *owner_name_option; @@ -447,7 +451,7 @@ void set_start_time (void); #define TF_READ 0 #define TF_WRITE 1 #define TF_DELETED 2 -int format_total_stats (FILE *fp, char **formats, int eor, int eol); +int format_total_stats (FILE *fp, const char **formats, int eor, int eol); void print_total_stats (void); void mv_begin_write (const char *file_name, off_t totsize, off_t sizeleft); @@ -861,6 +865,8 @@ void set_compression_program_by_suffix (const char *name, const char *defprog); void checkpoint_compile_action (const char *str); void checkpoint_finish_compile (void); void checkpoint_run (bool do_write); +void checkpoint_finish (void); +void checkpoint_flush_actions (void); /* Module warning.c */ #define WARN_ALONE_ZERO_BLOCK 0x00000001