X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fcommon.h;h=d1815ed41f619f5cef87220e69973353312f882e;hb=64ba4757bc5a2d52652f57d7f6764dbc7ef0a5e3;hp=671e9ead7ff83c0b0f71def3ce9d9955c24ddf6f;hpb=0e45413e1e9d44085bd3fa960a02c86987bd1cab;p=chaz%2Ftar diff --git a/src/common.h b/src/common.h index 671e9ea..d1815ed 100644 --- a/src/common.h +++ b/src/common.h @@ -269,6 +269,12 @@ GLOBAL bool totals_option; GLOBAL bool touch_option; +GLOBAL char *to_command_option; +GLOBAL bool ignore_command_error_option; + +/* Return true if the extracted files are not being written to disk */ +#define EXTRACT_OVER_PIPE (to_stdout_option || to_command_option) + /* Count how many times the option has been set, multiple setting yields more verbose behavior. Value 0 means no verbosity, 1 means file name only, 2 means file name and all attributes. More than 2 is just like 2. */ @@ -692,6 +698,8 @@ pid_t sys_child_open_for_compress (void); pid_t sys_child_open_for_uncompress (void); 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); /* Module compare.c */ void report_difference (struct tar_stat_info *st, const char *message, ...);