X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fcommon.h;h=192cf9e5b64a77c0a7857b0a85f4b3f222187b9d;hb=502abd93bd8bfba15677aceb221c4530d257bbab;hp=e9088543894bea62c92d2a7093a424d92128c143;hpb=8da503cad6e883b30c05749149084d24319063b4;p=chaz%2Ftar diff --git a/src/common.h b/src/common.h index e908854..192cf9e 100644 --- a/src/common.h +++ b/src/common.h @@ -591,6 +591,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,9 +611,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 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); @@ -636,8 +639,8 @@ pid_t xfork (void); void xpipe (int fd[2]); void *page_aligned_alloc (void **ptr, size_t size); -int set_file_atime (int fd, char const *file, - struct timespec const timespec[2]); +int set_file_atime (int fd, int parentfd, char const *file, + struct timespec atime); /* Module names.c. */