X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fcommon.h;h=77c353bc46a25a5124bf18bb99e2d0577afa7af3;hb=b84053c7be7d45fc35dff1297d70f4ff2a037142;hp=cbcd2c735d5f9995325b01d5fd1b4c48e9d9ddfb;hpb=7200f4f5f715ff558da63258b7cdc6b489078cf6;p=chaz%2Ftar diff --git a/src/common.h b/src/common.h index cbcd2c7..77c353b 100644 --- a/src/common.h +++ b/src/common.h @@ -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); @@ -637,6 +643,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 */