X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fcommon.h;h=4a638240c5f5cb93c064bd1dfbd8700c23253718;hb=3913675640f65bb4774429d369681957b528996e;hp=e0d8eb7a8aa90280620f82d7960e6ee89c88f614;hpb=d9458886432a92230e432e8e8492703c7afb8272;p=chaz%2Ftar diff --git a/src/common.h b/src/common.h index e0d8eb7..4a63824 100644 --- a/src/common.h +++ b/src/common.h @@ -550,6 +550,7 @@ extern size_t recent_long_link_blocks; void decode_header (union block *header, struct tar_stat_info *stat_info, enum archive_format *format_pointer, int do_user_group); +void transform_stat_info (int typeflag, struct tar_stat_info *stat_info); char const *tartime (struct timespec t, bool full_time); #define OFF_FROM_HEADER(where) off_from_header (where, sizeof (where)) @@ -591,6 +592,8 @@ enum { BILLION = 1000000000, LOG10_BILLION = 9 }; enum { TIMESPEC_STRSIZE_BOUND = UINTMAX_STRSIZE_BOUND + LOG10_BILLION + sizeof "-." - 1 }; +bool must_be_dot_or_slash (char const *); + enum remove_option { ORDINARY_REMOVE_OPTION, @@ -609,11 +612,10 @@ int remove_any_file (const char *file_name, enum remove_option option); bool maybe_backup_file (const char *file_name, bool this_is_the_archive); void undo_last_backup (void); -int deref_stat (bool deref, char const *name, struct stat *buf); -int fd_utimensat (int fd, int parentfd, char const *file, - struct timespec const ts[2], int atflag); +int deref_stat (char const *name, struct stat *buf); extern int chdir_current; +extern int chdir_fd; int chdir_arg (char const *dir); void chdir_do (int dir); int chdir_count (void); @@ -639,7 +641,7 @@ void xpipe (int fd[2]); void *page_aligned_alloc (void **ptr, size_t size); int set_file_atime (int fd, int parentfd, char const *file, - struct timespec atime, int atflag); + struct timespec atime); /* Module names.c. */