MCPcopy Index your code
hub / github.com/RsyncProject/rsync / same_mtime

Function same_mtime

rsync.c:474–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474static int same_mtime(struct file_struct *file, STRUCT_STAT *st, int extra_accuracy)
475{
476#ifdef ST_MTIME_NSEC
477 uint32 f1_nsec = F_MOD_NSEC_or_0(file);
478 uint32 f2_nsec = (uint32)st->ST_MTIME_NSEC;
479#else
480 uint32 f1_nsec = 0, f2_nsec = 0;
481#endif
482
483 if (extra_accuracy) /* ignore modify_window when setting the time after a transfer or checksum check */
484 return file->modtime == st->st_mtime && f1_nsec == f2_nsec;
485
486 return same_time(file->modtime, f1_nsec, st->st_mtime , f2_nsec);
487}
488
489int set_file_attrs(const char *fname, struct file_struct *file, stat_x *sxp,
490 const char *fnamecmp, int flags)

Callers 1

set_file_attrsFunction · 0.85

Calls 1

same_timeFunction · 0.85

Tested by

no test coverage detected