X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fcommon.h;h=723ad9028748506468e4dd57c8036e89509a155b;hb=751b61ab25ddc03510a695d55a916943aea2f6f0;hp=4f7c19f55ef47abb77c692de4aa7e2e0928dd575;hpb=cd7bdd4076ca154575bbef85eb2157e59befcfe2;p=chaz%2Ftar diff --git a/src/common.h b/src/common.h index 4f7c19f..723ad90 100644 --- a/src/common.h +++ b/src/common.h @@ -96,11 +96,6 @@ enum subcommand GLOBAL enum subcommand subcommand_option; -#define READ_LIKE_SUBCOMMAND \ - (subcommand_option == EXTRACT_SUBCOMMAND \ - || subcommand_option == DIFF_SUBCOMMAND \ - || subcommand_option == LIST_SUBCOMMAND) - /* Selected format for output archive. */ GLOBAL enum archive_format archive_format; @@ -529,6 +524,7 @@ void rebase_directory (struct directory *dir, const char *repl, size_t rlen); void append_incremental_renames (struct directory *dir); +void show_snapshot_field_ranges (void); void read_directory_file (void); void write_directory_file (void); void purge_directory (char const *directory_name); @@ -601,6 +597,7 @@ char *zap_slashes (char *name); char *normalize_filename (const char *name); void replace_prefix (char **pname, const char *samp, size_t slen, const char *repl, size_t rlen); +char *tar_savedir (const char *name, int must_exist); typedef struct namebuf *namebuf_t; namebuf_t namebuf_create (const char *dir); @@ -709,6 +706,7 @@ int uname_to_uid (char const *uname, uid_t *puid); void name_init (void); void name_add_name (const char *name, int matching_flags); void name_add_dir (const char *name); +void name_add_file (const char *name, int term); void name_term (void); const char *name_next (int change_dirs); void name_gather (void); @@ -753,6 +751,9 @@ const char *archive_format_string (enum archive_format fmt); const char *subcommand_string (enum subcommand c); void set_exit_status (int val); +void request_stdin (const char *option); +void more_options (int argc, char **argv); + /* Module update.c. */ extern char *output_start;