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

Function get_mtime

src/test.c:174–181  ·  view source on GitHub ↗

Return the modification time of FILENAME. If unsuccessful, return an invalid timestamp that is less than all valid timestamps. */

Source from the content-addressed store, hash-verified

172 If unsuccessful, return an invalid timestamp that is less
173 than all valid timestamps. */
174static struct timespec
175get_mtime (char const *filename)
176{
177 struct stat finfo;
178 return (stat (filename, &finfo) < 0
179 ? make_timespec (TYPE_MINIMUM (time_t), -1)
180 : get_stat_mtime (&finfo));
181}
182
183/* Return the type of S, one of the test command's binary operators.
184 If S is not a binary operator, return -1. */

Callers 1

binary_operatorFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected