MCPcopy Create free account
hub / github.com/coreutils/coreutils / cmp_mtime

Function cmp_mtime

src/ls.c:3802–3809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3800}
3801
3802static int
3803cmp_mtime (struct fileinfo const *a, struct fileinfo const *b,
3804 int (*cmp) (char const *, char const *))
3805{
3806 int diff = timespec_cmp (get_stat_mtime (&b->stat),
3807 get_stat_mtime (&a->stat));
3808 return diff ? diff : cmp (a->name, b->name);
3809}
3810
3811static int
3812cmp_atime (struct fileinfo const *a, struct fileinfo const *b,

Callers

nothing calls this directly

Calls 1

cmpFunction · 0.85

Tested by

no test coverage detected