X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fcommon.h;h=2bc1d712ba22e6875e9d886b59982e9c31dec874;hb=098ad10c71e87f8003227aa10ad8c88ae43dce12;hp=8bd86407dbfda3c8b24a726a7f76724fc0b517dd;hpb=ecbcb7b6d74c2d69386c8d7e435486a4690c9993;p=chaz%2Ftar diff --git a/src/common.h b/src/common.h index 8bd8640..2bc1d71 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, @@ -610,8 +612,6 @@ 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); extern int chdir_current; int chdir_arg (char const *dir); @@ -638,8 +638,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 atime, - int atflag); +int set_file_atime (int fd, int parentfd, char const *file, + struct timespec atime, int atflag); /* Module names.c. */